From 855eba3b6fa3996c0c9cf49fac10ac80de16624e Mon Sep 17 00:00:00 2001 From: Jan Stevens Date: Mon, 24 Aug 2015 08:57:57 +0200 Subject: Updated to latest dev version --- assets/stylesheets/bootstrap/_alert.scss | 1 - assets/stylesheets/bootstrap/_card.scss | 2 +- assets/stylesheets/bootstrap/_custom-forms.scss | 33 ++++++++------- assets/stylesheets/bootstrap/_dropdown.scss | 21 +++++++--- assets/stylesheets/bootstrap/_forms.scss | 2 +- assets/stylesheets/bootstrap/_input-group.scss | 2 +- assets/stylesheets/bootstrap/_labels.scss | 2 +- assets/stylesheets/bootstrap/_list-group.scss | 2 +- assets/stylesheets/bootstrap/_modal.scss | 2 +- assets/stylesheets/bootstrap/_navbar.scss | 9 ++-- assets/stylesheets/bootstrap/_type.scss | 2 +- .../stylesheets/bootstrap/_utilities-spacing.scss | 2 +- assets/stylesheets/bootstrap/_variables.scss | 48 +++++++++++----------- assets/stylesheets/bootstrap/mixins/_buttons.scss | 32 ++++++++++----- assets/stylesheets/bootstrap/mixins/_clearfix.scss | 19 +-------- assets/stylesheets/bootstrap/mixins/_image.scss | 4 +- .../stylesheets/bootstrap/mixins/_list-group.scss | 6 +-- 17 files changed, 95 insertions(+), 94 deletions(-) (limited to 'assets/stylesheets') diff --git a/assets/stylesheets/bootstrap/_alert.scss b/assets/stylesheets/bootstrap/_alert.scss index aaa2a1d..e52e957 100644 --- a/assets/stylesheets/bootstrap/_alert.scss +++ b/assets/stylesheets/bootstrap/_alert.scss @@ -20,7 +20,6 @@ // Headings for larger alerts .alert-heading { - margin-top: 0; // Specified to prevent conflicts of changing $headings-color color: inherit; } diff --git a/assets/stylesheets/bootstrap/_card.scss b/assets/stylesheets/bootstrap/_card.scss index 0a4f5b6..fc456c0 100644 --- a/assets/stylesheets/bootstrap/_card.scss +++ b/assets/stylesheets/bootstrap/_card.scss @@ -5,6 +5,7 @@ .card { position: relative; margin-bottom: $card-spacer-y; + background-color: #fff; border: $card-border-width solid $card-border-color; @include border-radius($card-border-radius); } @@ -14,7 +15,6 @@ } .card-title { - margin-top: 0; margin-bottom: $card-spacer-y; } diff --git a/assets/stylesheets/bootstrap/_custom-forms.scss b/assets/stylesheets/bootstrap/_custom-forms.scss index ec211ac..0565f2f 100644 --- a/assets/stylesheets/bootstrap/_custom-forms.scss +++ b/assets/stylesheets/bootstrap/_custom-forms.scss @@ -19,16 +19,17 @@ z-index: -1; // Put the input behind the label so it doesn't overlay text opacity: 0; - &:focus ~ .c-indicator { - @include box-shadow(0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9); - } - &:checked ~ .c-indicator { color: #fff; background-color: #0074d9; @include box-shadow(none); } + &:focus ~ .c-indicator { + // the mixin is not used here to make sure there is feedback + box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9; + } + &:active ~ .c-indicator { color: #fff; background-color: #84c6ff; @@ -125,29 +126,27 @@ // // Replaces the browser default select with a custom one, mostly pulled from // http://primercss.io. +// +// Includes IE9-specific hacks (noted by ` \9`). .c-select { display: inline-block; max-width: 100%; padding: .375rem 1.75rem .375rem .75rem; + padding-right: .75rem \9; vertical-align: middle; - background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center; + background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center; + background-image: none \9; background-size: 8px 10px; border: 1px solid $input-border; - - // Have to include vendor prefixes as the `appearance` property isn't part of the CSS spec. - -webkit-appearance: none; + // Use vendor prefixes as `appearance` isn't part of the CSS spec. -moz-appearance: none; - appearance: none; - - // IE9 hacks to hide the background-image and reduce padding - padding-right: .75rem \9; - background-image: none \9; + -webkit-appearance: none; &:focus { - outline: none; border-color: #51a7e8; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5); + outline: none; + @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5)); } // Hides the default caret in IE11 @@ -198,7 +197,7 @@ background-color: #fff; border: .075rem solid #ddd; border-radius: .25rem; - box-shadow: inset 0 .2rem .4rem rgba(0,0,0,.05); + @include box-shadow(inset 0 .2rem .4rem rgba(0,0,0,.05)); } .file-custom:after { content: "Choose file..."; @@ -222,5 +221,5 @@ // Focus state .file input:focus ~ .file-custom { - box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9; + @include box-shadow(0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9); } diff --git a/assets/stylesheets/bootstrap/_dropdown.scss b/assets/stylesheets/bootstrap/_dropdown.scss index d3588d2..3b0df96 100644 --- a/assets/stylesheets/bootstrap/_dropdown.scss +++ b/assets/stylesheets/bootstrap/_dropdown.scss @@ -24,6 +24,15 @@ } } +.dropup { + .dropdown-toggle { + &:after { + border-bottom: $caret-width solid; + border-top: 0; + } + } +} + // The dropdown menu (ul) .dropdown-menu { position: absolute; @@ -51,20 +60,20 @@ } // Links, buttons, and more within the dropdown menu +// +// `