Skip to content

Commit

Permalink
Merge pull request #11 from vantagedesign/dev
Browse files Browse the repository at this point in the history
v1.0.4 - updated Bootstrap to v4.5
  • Loading branch information
Julian authored May 13, 2020
2 parents b8aab92 + c3e9fed commit 94982f7
Show file tree
Hide file tree
Showing 34 changed files with 227 additions and 105 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Version 1.0.4
- Updated Bootstrap to v4.5

## Version 1.0.3
- [FIX] Typo in readme, added changelog, updated config.toml in exampleSite
- [FIX] Remove source map imports from JS files ([@jhollowe, PR #8](https://github.com/vantagedesign/ace-documentation/pull/8))
Expand Down
2 changes: 1 addition & 1 deletion assets/css/ace.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ACE DOCUMENTATION
* Stylesheet
* @author Vantage Design
* @version 1.0.0
* @version 1.0.4
* @license https://github.com/vantagedesign/ace-documentation/blob/master/LICENSE
* ------------------------------------------------------------------------ */

Expand Down
2 changes: 2 additions & 0 deletions assets/css/bootstrap/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
}

.breadcrumb-item {
display: flex;

// The separator between breadcrumbs (by default, a forward-slash: "/")
+ .breadcrumb-item {
padding-left: $breadcrumb-item-padding;
Expand Down
17 changes: 10 additions & 7 deletions assets/css/bootstrap/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
font-weight: $btn-font-weight;
color: $body-color;
text-align: center;
text-decoration: if($link-decoration == none, null, none);
white-space: $btn-white-space;
vertical-align: middle;
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
user-select: none;
background-color: transparent;
border: $btn-border-width solid transparent;
Expand All @@ -37,12 +37,16 @@
@include box-shadow(none);
}

&:not(:disabled):not(.disabled):active,
&:not(:disabled):not(.disabled).active {
@include box-shadow($btn-active-box-shadow);
&:not(:disabled):not(.disabled) {
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);

&:focus {
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
&:active,
&.active {
@include box-shadow($btn-active-box-shadow);

&:focus {
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
}
}
}
}
Expand Down Expand Up @@ -89,7 +93,6 @@ fieldset:disabled a.btn {
&:focus,
&.focus {
text-decoration: $link-hover-decoration;
box-shadow: none;
}

&:disabled,
Expand Down
18 changes: 11 additions & 7 deletions assets/css/bootstrap/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
margin-left: 0;
}

> .list-group:first-child {
.list-group-item:first-child {
@include border-top-radius($card-border-radius);
> .list-group {
border-top: inherit;
border-bottom: inherit;

&:first-child {
border-top-width: 0;
@include border-top-radius($card-inner-border-radius);
}
}

> .list-group:last-child {
.list-group-item:last-child {
@include border-bottom-radius($card-border-radius);
&:last-child {
border-bottom-width: 0;
@include border-bottom-radius($card-inner-border-radius);
}
}
}
Expand Down Expand Up @@ -90,6 +93,7 @@

.card-footer {
padding: $card-spacer-y $card-spacer-x;
color: $card-cap-color;
background-color: $card-cap-bg;
border-top: $card-border-width solid $card-border-color;

Expand Down
1 change: 0 additions & 1 deletion assets/css/bootstrap/_close.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ button.close {
padding: 0;
background-color: transparent;
border: 0;
appearance: none;
}

// Future-proof disabling of clicks on `<a>` elements
Expand Down
3 changes: 2 additions & 1 deletion assets/css/bootstrap/_custom-forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@
border-color: $custom-select-focus-border-color;
outline: 0;
@if $enable-shadows {
box-shadow: $custom-select-box-shadow, $custom-select-focus-box-shadow;
@include box-shadow($custom-select-box-shadow, $custom-select-focus-box-shadow);
} @else {
// Avoid using mixin so we can pass custom focus shadow properly
box-shadow: $custom-select-focus-box-shadow;
}

Expand Down
3 changes: 2 additions & 1 deletion assets/css/bootstrap/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
font-weight: $font-weight-normal;
color: $dropdown-link-color;
text-align: inherit; // For `<button>`s
text-decoration: if($link-decoration == none, null, none);
white-space: nowrap; // prevent links from randomly breaking onto new lines
background-color: transparent; // For `<button>`s
border: 0; // For `<button>`s
Expand Down Expand Up @@ -176,7 +177,7 @@
// Dropdown section headers
.dropdown-header {
display: block;
padding: $dropdown-padding-y $dropdown-item-padding-x;
padding: $dropdown-header-padding;
margin-bottom: 0; // for use with heading elements
@include font-size($font-size-sm);
color: $dropdown-header-color;
Expand Down
9 changes: 9 additions & 0 deletions assets/css/bootstrap/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@
}
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
&.form-control {
appearance: none; // Fix appearance for date inputs in Safari
}
}

select.form-control {
&:focus::-ms-value {
// Suppress the nested default white text on blue background highlight given to
Expand Down
17 changes: 12 additions & 5 deletions assets/css/bootstrap/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
// Starts at zero
// Used to ensure the min-width of the lowest breakpoint starts at 0.
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
$values: map-values($map);
$first-value: nth($values, 1);
@if $first-value != 0 {
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
@if length($map) > 0 {
$values: map-values($map);
$first-value: nth($values, 1);
@if $first-value != 0 {
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
}
}
}

Expand All @@ -52,7 +54,12 @@
@function escape-svg($string) {
@if str-index($string, "data:image/svg+xml") {
@each $char, $encoded in $escaped-characters {
$string: str-replace($string, $char, $encoded);
// Do not escape the url brackets
@if str-index($string, "url(") == 1 {
$string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
} @else {
$string: str-replace($string, $char, $encoded);
}
}
}

Expand Down
10 changes: 9 additions & 1 deletion assets/css/bootstrap/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,19 @@
max-width: $container-max-width;
}

// Extend each breakpoint which is smaller or equal to the current breakpoint
$extend-breakpoint: true;

@each $name, $width in $grid-breakpoints {
@if ($container-max-width > $width or $breakpoint == $name) {
@if ($extend-breakpoint) {
.container#{breakpoint-infix($name, $grid-breakpoints)} {
@extend %responsive-container-#{$breakpoint};
}

// Once the current breakpoint is reached, stop extending
@if ($breakpoint == $name) {
$extend-breakpoint: false;
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/css/bootstrap/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
> .custom-select,
> .custom-file {
position: relative; // For focus state's z-index
flex: 1 1 0%;
flex: 1 1 auto;
width: 1%;
min-width: 0; // https://stackoverflow.com/questions/36247140/why-dont-flex-items-shrink-past-content-size
margin-bottom: 0;

Expand Down
22 changes: 9 additions & 13 deletions assets/css/bootstrap/_list-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// No need to set list-style: none; since .list-group-item is block level
padding-left: 0; // reset padding because ul and ol
margin-bottom: 0;
@include border-radius($list-group-border-radius);
}


Expand Down Expand Up @@ -46,15 +47,16 @@
display: block;
padding: $list-group-item-padding-y $list-group-item-padding-x;
color: $list-group-color;
text-decoration: if($link-decoration == none, null, none);
background-color: $list-group-bg;
border: $list-group-border-width solid $list-group-border-color;

&:first-child {
@include border-top-radius($list-group-border-radius);
@include border-top-radius(inherit);
}

&:last-child {
@include border-bottom-radius($list-group-border-radius);
@include border-bottom-radius(inherit);
}

&.disabled,
Expand Down Expand Up @@ -94,7 +96,7 @@
.list-group-horizontal#{$infix} {
flex-direction: row;

.list-group-item {
> .list-group-item {
&:first-child {
@include border-bottom-left-radius($list-group-border-radius);
@include border-top-right-radius(0);
Expand Down Expand Up @@ -130,18 +132,12 @@
// useful within other components (e.g., cards).

.list-group-flush {
.list-group-item {
border-right-width: 0;
border-left-width: 0;
@include border-radius(0);
@include border-radius(0);

&:first-child {
border-top-width: 0;
}
}
> .list-group-item {
border-width: 0 0 $list-group-border-width;

&:last-child {
.list-group-item:last-child {
&:last-child {
border-bottom-width: 0;
}
}
Expand Down
2 changes: 2 additions & 0 deletions assets/css/bootstrap/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
&::before {
display: block; // IE10
height: subtract(100vh, $modal-dialog-margin * 2);
height: min-content; // Reset height to 0 except on IE
content: "";
}

Expand Down Expand Up @@ -217,6 +218,7 @@

&::before {
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
height: min-content;
}
}

Expand Down
1 change: 1 addition & 0 deletions assets/css/bootstrap/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.nav-link {
display: block;
padding: $nav-link-padding-y $nav-link-padding-x;
text-decoration: if($link-decoration == none, null, none);

@include hover-focus() {
text-decoration: none;
Expand Down
1 change: 1 addition & 0 deletions assets/css/bootstrap/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
margin-left: -$pagination-border-width;
line-height: $pagination-line-height;
color: $pagination-color;
text-decoration: if($link-decoration == none, null, none);
background-color: $pagination-bg;
border: $pagination-border-width solid $pagination-border-color;

Expand Down
1 change: 1 addition & 0 deletions assets/css/bootstrap/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
display: flex;
height: $progress-height;
overflow: hidden; // force rounded corners by cropping it
line-height: 0;
@include font-size($progress-font-size);
background-color: $progress-bg;
@include border-radius($progress-border-radius);
Expand Down
22 changes: 10 additions & 12 deletions assets/css/bootstrap/_reboot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ pre {
margin-bottom: 1rem;
// Don't allow content to break outside
overflow: auto;
// Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,
// making it impossible to interact with the content
-ms-overflow-style: scrollbar;
}


Expand Down Expand Up @@ -330,6 +333,13 @@ select {
text-transform: none; // Remove the inheritance of text transform in Firefox
}

// Set the cursor for non-`<button>` buttons
//
// Details at https://github.com/twbs/bootstrap/pull/30562
[role="button"] {
cursor: pointer;
}

// Remove the inheritance of word-wrap in Safari.
//
// Details at https://github.com/twbs/bootstrap/issues/24990
Expand Down Expand Up @@ -376,18 +386,6 @@ input[type="checkbox"] {
}


input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
// Remove the default appearance of temporal inputs to avoid a Mobile Safari
// bug where setting a custom line-height prevents text from being vertically
// centered within the input.
// See https://bugs.webkit.org/show_bug.cgi?id=139848
// and https://github.com/twbs/bootstrap/issues/11266
-webkit-appearance: listbox;
}

textarea {
overflow: auto; // Remove the default vertical scrollbar in IE.
// Textareas should really only resize vertically so they don't break their (horizontal) containers.
Expand Down
1 change: 1 addition & 0 deletions assets/css/bootstrap/_spinners.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}
50% {
opacity: 1;
transform: none;
}
}

Expand Down
3 changes: 2 additions & 1 deletion assets/css/bootstrap/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
@import "utilities/embed";
@import "utilities/flex";
@import "utilities/float";
@import "utilities/interactions";
@import "utilities/overflow";
@import "utilities/position";
@import "utilities/screenreaders";
@import "utilities/shadows";
@import "utilities/sizing";
@import "utilities/stretched-link";
@import "utilities/spacing";
@import "utilities/stretched-link";
@import "utilities/text";
@import "utilities/visibility";
Loading

0 comments on commit 94982f7

Please sign in to comment.