.
9 |
10 | .list-group {
11 | // No need to set list-style: none; since .list-group-item is block level
12 | margin-bottom: 20px;
13 | padding-left: 0; // reset padding because ul and ol
14 | }
15 |
16 |
17 | // Individual list items
18 | //
19 | // Use on `li`s or `div`s within the `.list-group` parent.
20 |
21 | .list-group-item {
22 | position: relative;
23 | display: block;
24 | padding: 10px 15px;
25 | // Place the border on the list items and negative margin up for better styling
26 | margin-bottom: -1px;
27 | background-color: $list-group-bg;
28 | border: 1px solid $list-group-border;
29 |
30 | // Round the first and last items
31 | &:first-child {
32 | @include border-top-radius($list-group-border-radius);
33 | }
34 | &:last-child {
35 | margin-bottom: 0;
36 | @include border-bottom-radius($list-group-border-radius);
37 | }
38 | }
39 |
40 |
41 | // Interactive list items
42 | //
43 | // Use anchor or button elements instead of `li`s or `div`s to create interactive items.
44 | // Includes an extra `.active` modifier class for showing selected items.
45 |
46 | a.list-group-item,
47 | button.list-group-item {
48 | color: $list-group-link-color;
49 |
50 | .list-group-item-heading {
51 | color: $list-group-link-heading-color;
52 | }
53 |
54 | // Hover state
55 | &:hover,
56 | &:focus {
57 | text-decoration: none;
58 | color: $list-group-link-hover-color;
59 | background-color: $list-group-hover-bg;
60 | }
61 | }
62 |
63 | button.list-group-item {
64 | width: 100%;
65 | text-align: left;
66 | }
67 |
68 | .list-group-item {
69 | // Disabled state
70 | &.disabled,
71 | &.disabled:hover,
72 | &.disabled:focus {
73 | background-color: $list-group-disabled-bg;
74 | color: $list-group-disabled-color;
75 | cursor: $cursor-disabled;
76 |
77 | // Force color to inherit for custom content
78 | .list-group-item-heading {
79 | color: inherit;
80 | }
81 | .list-group-item-text {
82 | color: $list-group-disabled-text-color;
83 | }
84 | }
85 |
86 | // Active class on item itself, not parent
87 | &.active,
88 | &.active:hover,
89 | &.active:focus {
90 | z-index: 2; // Place active items above their siblings for proper border styling
91 | color: $list-group-active-color;
92 | background-color: $list-group-active-bg;
93 | border-color: $list-group-active-border;
94 |
95 | // Force color to inherit for custom content
96 | .list-group-item-heading,
97 | .list-group-item-heading > small,
98 | .list-group-item-heading > .small {
99 | color: inherit;
100 | }
101 | .list-group-item-text {
102 | color: $list-group-active-text-color;
103 | }
104 | }
105 | }
106 |
107 |
108 | // Contextual variants
109 | //
110 | // Add modifier classes to change text and background color on individual items.
111 | // Organizationally, this must come after the `:hover` states.
112 |
113 | @include list-group-item-variant(success, $state-success-bg, $state-success-text);
114 | @include list-group-item-variant(info, $state-info-bg, $state-info-text);
115 | @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
116 | @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
117 |
118 |
119 | // Custom content options
120 | //
121 | // Extra classes for creating well-formatted content within `.list-group-item`s.
122 |
123 | .list-group-item-heading {
124 | margin-top: 0;
125 | margin-bottom: 5px;
126 | }
127 | .list-group-item-text {
128 | margin-bottom: 0;
129 | line-height: 1.3;
130 | }
131 |
--------------------------------------------------------------------------------
/css/bootstrap/_scaffolding.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Scaffolding
3 | // --------------------------------------------------
4 |
5 |
6 | // Reset the box-sizing
7 | //
8 | // Heads up! This reset may cause conflicts with some third-party widgets.
9 | // For recommendations on resolving such conflicts, see
10 | // http://getbootstrap.com/getting-started/#third-box-sizing
11 | * {
12 | @include box-sizing(border-box);
13 | }
14 | *:before,
15 | *:after {
16 | @include box-sizing(border-box);
17 | }
18 |
19 |
20 | // Body reset
21 |
22 | html {
23 | font-size: 10px;
24 | -webkit-tap-highlight-color: rgba(0,0,0,0);
25 | }
26 |
27 | body {
28 | font-family: $font-family-base;
29 | font-size: $font-size-base;
30 | line-height: $line-height-base;
31 | color: $text-color;
32 | background-color: $body-bg;
33 | }
34 |
35 | // Reset fonts for relevant elements
36 | input,
37 | button,
38 | select,
39 | textarea {
40 | font-family: inherit;
41 | font-size: inherit;
42 | line-height: inherit;
43 | }
44 |
45 |
46 | // Links
47 |
48 | a {
49 | color: $link-color;
50 | text-decoration: none;
51 |
52 | &:hover,
53 | &:focus {
54 | color: $link-hover-color;
55 | text-decoration: $link-hover-decoration;
56 | }
57 |
58 | &:focus {
59 | @include tab-focus;
60 | }
61 | }
62 |
63 |
64 | // Figures
65 | //
66 | // We reset this here because previously Normalize had no `figure` margins. This
67 | // ensures we don't break anyone's use of the element.
68 |
69 | figure {
70 | margin: 0;
71 | }
72 |
73 |
74 | // Images
75 |
76 | img {
77 | vertical-align: middle;
78 | }
79 |
80 | // Responsive images (ensure images don't scale beyond their parents)
81 | .img-responsive {
82 | @include img-responsive;
83 | }
84 |
85 | // Rounded corners
86 | .img-rounded {
87 | border-radius: $border-radius-large;
88 | }
89 |
90 | // Image thumbnails
91 | //
92 | // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
93 | .img-thumbnail {
94 | padding: $thumbnail-padding;
95 | line-height: $line-height-base;
96 | background-color: $thumbnail-bg;
97 | border: 1px solid $thumbnail-border;
98 | border-radius: $thumbnail-border-radius;
99 | @include transition(all .2s ease-in-out);
100 |
101 | // Keep them at most 100% wide
102 | @include img-responsive(inline-block);
103 | }
104 |
105 | // Perfect circle
106 | .img-circle {
107 | border-radius: 50%; // set radius in percents
108 | }
109 |
110 |
111 | // Horizontal rules
112 |
113 | hr {
114 | margin-top: $line-height-computed;
115 | margin-bottom: $line-height-computed;
116 | border: 0;
117 | border-top: 1px solid $hr-border;
118 | }
119 |
120 |
121 | // Only display content to screen readers
122 | //
123 | // See: http://a11yproject.com/posts/how-to-hide-content/
124 |
125 | .sr-only {
126 | position: absolute;
127 | width: 1px;
128 | height: 1px;
129 | margin: -1px;
130 | padding: 0;
131 | overflow: hidden;
132 | clip: rect(0,0,0,0);
133 | border: 0;
134 | }
135 |
136 | // Use in conjunction with .sr-only to only display content when it's focused.
137 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
138 | // Credit: HTML5 Boilerplate
139 |
140 | .sr-only-focusable {
141 | &:active,
142 | &:focus {
143 | position: static;
144 | width: auto;
145 | height: auto;
146 | margin: 0;
147 | overflow: visible;
148 | clip: auto;
149 | }
150 | }
151 |
152 |
153 | // iOS "clickable elements" fix for role="button"
154 | //
155 | // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156 | // for traditionally non-focusable elements with role="button"
157 | // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158 |
159 | [role="button"] {
160 | cursor: pointer;
161 | }
162 |
--------------------------------------------------------------------------------
/css/bootstrap/_popovers.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Popovers
3 | // --------------------------------------------------
4 |
5 |
6 | .popover {
7 | position: absolute;
8 | top: 0;
9 | left: 0;
10 | z-index: $zindex-popover;
11 | display: none;
12 | max-width: $popover-max-width;
13 | padding: 1px;
14 | // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
15 | // So reset our font and text properties to avoid inheriting weird values.
16 | @include reset-text;
17 | font-size: $font-size-base;
18 |
19 | background-color: $popover-bg;
20 | background-clip: padding-box;
21 | border: 1px solid $popover-fallback-border-color;
22 | border: 1px solid $popover-border-color;
23 | border-radius: $border-radius-large;
24 | @include box-shadow(0 5px 10px rgba(0,0,0,.2));
25 |
26 | // Offset the popover to account for the popover arrow
27 | &.top { margin-top: -$popover-arrow-width; }
28 | &.right { margin-left: $popover-arrow-width; }
29 | &.bottom { margin-top: $popover-arrow-width; }
30 | &.left { margin-left: -$popover-arrow-width; }
31 | }
32 |
33 | .popover-title {
34 | margin: 0; // reset heading margin
35 | padding: 8px 14px;
36 | font-size: $font-size-base;
37 | background-color: $popover-title-bg;
38 | border-bottom: 1px solid darken($popover-title-bg, 5%);
39 | border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
40 | }
41 |
42 | .popover-content {
43 | padding: 9px 14px;
44 | }
45 |
46 | // Arrows
47 | //
48 | // .arrow is outer, .arrow:after is inner
49 |
50 | .popover > .arrow {
51 | &,
52 | &:after {
53 | position: absolute;
54 | display: block;
55 | width: 0;
56 | height: 0;
57 | border-color: transparent;
58 | border-style: solid;
59 | }
60 | }
61 | .popover > .arrow {
62 | border-width: $popover-arrow-outer-width;
63 | }
64 | .popover > .arrow:after {
65 | border-width: $popover-arrow-width;
66 | content: "";
67 | }
68 |
69 | .popover {
70 | &.top > .arrow {
71 | left: 50%;
72 | margin-left: -$popover-arrow-outer-width;
73 | border-bottom-width: 0;
74 | border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
75 | border-top-color: $popover-arrow-outer-color;
76 | bottom: -$popover-arrow-outer-width;
77 | &:after {
78 | content: " ";
79 | bottom: 1px;
80 | margin-left: -$popover-arrow-width;
81 | border-bottom-width: 0;
82 | border-top-color: $popover-arrow-color;
83 | }
84 | }
85 | &.right > .arrow {
86 | top: 50%;
87 | left: -$popover-arrow-outer-width;
88 | margin-top: -$popover-arrow-outer-width;
89 | border-left-width: 0;
90 | border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
91 | border-right-color: $popover-arrow-outer-color;
92 | &:after {
93 | content: " ";
94 | left: 1px;
95 | bottom: -$popover-arrow-width;
96 | border-left-width: 0;
97 | border-right-color: $popover-arrow-color;
98 | }
99 | }
100 | &.bottom > .arrow {
101 | left: 50%;
102 | margin-left: -$popover-arrow-outer-width;
103 | border-top-width: 0;
104 | border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
105 | border-bottom-color: $popover-arrow-outer-color;
106 | top: -$popover-arrow-outer-width;
107 | &:after {
108 | content: " ";
109 | top: 1px;
110 | margin-left: -$popover-arrow-width;
111 | border-top-width: 0;
112 | border-bottom-color: $popover-arrow-color;
113 | }
114 | }
115 |
116 | &.left > .arrow {
117 | top: 50%;
118 | right: -$popover-arrow-outer-width;
119 | margin-top: -$popover-arrow-outer-width;
120 | border-right-width: 0;
121 | border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
122 | border-left-color: $popover-arrow-outer-color;
123 | &:after {
124 | content: " ";
125 | right: 1px;
126 | border-right-width: 0;
127 | border-left-color: $popover-arrow-color;
128 | bottom: -$popover-arrow-width;
129 | }
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/css/bootstrap/_modals.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Modals
3 | // --------------------------------------------------
4 |
5 | // .modal-open - body class for killing the scroll
6 | // .modal - container to scroll within
7 | // .modal-dialog - positioning shell for the actual modal
8 | // .modal-content - actual modal w/ bg and corners and shit
9 |
10 | // Kill the scroll on the body
11 | .modal-open {
12 | overflow: hidden;
13 | }
14 |
15 | // Container that the modal scrolls within
16 | .modal {
17 | display: none;
18 | overflow: hidden;
19 | position: fixed;
20 | top: 0;
21 | right: 0;
22 | bottom: 0;
23 | left: 0;
24 | z-index: $zindex-modal;
25 | -webkit-overflow-scrolling: touch;
26 |
27 | // Prevent Chrome on Windows from adding a focus outline. For details, see
28 | // https://github.com/twbs/bootstrap/pull/10951.
29 | outline: 0;
30 |
31 | // When fading in the modal, animate it to slide down
32 | &.fade .modal-dialog {
33 | @include translate(0, -25%);
34 | @include transition-transform(0.3s ease-out);
35 | }
36 | &.in .modal-dialog { @include translate(0, 0) }
37 | }
38 | .modal-open .modal {
39 | overflow-x: hidden;
40 | overflow-y: auto;
41 | }
42 |
43 | // Shell div to position the modal with bottom padding
44 | .modal-dialog {
45 | position: relative;
46 | width: auto;
47 | margin: 10px;
48 | }
49 |
50 | // Actual modal
51 | .modal-content {
52 | position: relative;
53 | background-color: $modal-content-bg;
54 | border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
55 | border: 1px solid $modal-content-border-color;
56 | border-radius: $border-radius-large;
57 | @include box-shadow(0 3px 9px rgba(0,0,0,.5));
58 | background-clip: padding-box;
59 | // Remove focus outline from opened modal
60 | outline: 0;
61 | }
62 |
63 | // Modal background
64 | .modal-backdrop {
65 | position: fixed;
66 | top: 0;
67 | right: 0;
68 | bottom: 0;
69 | left: 0;
70 | z-index: $zindex-modal-background;
71 | background-color: $modal-backdrop-bg;
72 | // Fade for backdrop
73 | &.fade { @include opacity(0); }
74 | &.in { @include opacity($modal-backdrop-opacity); }
75 | }
76 |
77 | // Modal header
78 | // Top section of the modal w/ title and dismiss
79 | .modal-header {
80 | padding: $modal-title-padding;
81 | border-bottom: 1px solid $modal-header-border-color;
82 | @include clearfix;
83 | }
84 | // Close icon
85 | .modal-header .close {
86 | margin-top: -2px;
87 | }
88 |
89 | // Title text within header
90 | .modal-title {
91 | margin: 0;
92 | line-height: $modal-title-line-height;
93 | }
94 |
95 | // Modal body
96 | // Where all modal content resides (sibling of .modal-header and .modal-footer)
97 | .modal-body {
98 | position: relative;
99 | padding: $modal-inner-padding;
100 | }
101 |
102 | // Footer (for actions)
103 | .modal-footer {
104 | padding: $modal-inner-padding;
105 | text-align: right; // right align buttons
106 | border-top: 1px solid $modal-footer-border-color;
107 | @include clearfix; // clear it in case folks use .pull-* classes on buttons
108 |
109 | // Properly space out buttons
110 | .btn + .btn {
111 | margin-left: 5px;
112 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
113 | }
114 | // but override that for button groups
115 | .btn-group .btn + .btn {
116 | margin-left: -1px;
117 | }
118 | // and override it for block buttons as well
119 | .btn-block + .btn-block {
120 | margin-left: 0;
121 | }
122 | }
123 |
124 | // Measure scrollbar width for padding body during modal show/hide
125 | .modal-scrollbar-measure {
126 | position: absolute;
127 | top: -9999px;
128 | width: 50px;
129 | height: 50px;
130 | overflow: scroll;
131 | }
132 |
133 | // Scale up the modal
134 | @media (min-width: $screen-sm-min) {
135 | // Automatically set modal's width for larger viewports
136 | .modal-dialog {
137 | width: $modal-md;
138 | margin: 30px auto;
139 | }
140 | .modal-content {
141 | @include box-shadow(0 5px 15px rgba(0,0,0,.5));
142 | }
143 |
144 | // Modal sizes
145 | .modal-sm { width: $modal-sm; }
146 | }
147 |
148 | @media (min-width: $screen-md-min) {
149 | .modal-lg { width: $modal-lg; }
150 | }
151 |
--------------------------------------------------------------------------------
/css/bootstrap/mixins/_gradients.scss:
--------------------------------------------------------------------------------
1 | // Gradients
2 |
3 |
4 |
5 | // Horizontal gradient, from left to right
6 | //
7 | // Creates two color stops, start and end, by specifying a color and position for each color stop.
8 | // Color stops are not available in IE9 and below.
9 | @mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
10 | background-image: -webkit-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
11 | background-image: -o-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // Opera 12
12 | background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
13 | background-repeat: repeat-x;
14 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
15 | }
16 |
17 | // Vertical gradient, from top to bottom
18 | //
19 | // Creates two color stops, start and end, by specifying a color and position for each color stop.
20 | // Color stops are not available in IE9 and below.
21 | @mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
22 | background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
23 | background-image: -o-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Opera 12
24 | background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
25 | background-repeat: repeat-x;
26 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
27 | }
28 |
29 | @mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
30 | background-repeat: repeat-x;
31 | background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
32 | background-image: -o-linear-gradient($deg, $start-color, $end-color); // Opera 12
33 | background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
34 | }
35 | @mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
36 | background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
37 | background-image: -o-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
38 | background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
39 | background-repeat: no-repeat;
40 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
41 | }
42 | @mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
43 | background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
44 | background-image: -o-linear-gradient($start-color, $mid-color $color-stop, $end-color);
45 | background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
46 | background-repeat: no-repeat;
47 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
48 | }
49 | @mixin gradient-radial($inner-color: #555, $outer-color: #333) {
50 | background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
51 | background-image: radial-gradient(circle, $inner-color, $outer-color);
52 | background-repeat: no-repeat;
53 | }
54 | @mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
55 | background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
56 | background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
57 | background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
58 | }
59 |
--------------------------------------------------------------------------------
/css/bootstrap/_buttons.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Buttons
3 | // --------------------------------------------------
4 |
5 |
6 | // Base styles
7 | // --------------------------------------------------
8 |
9 | .btn {
10 | display: inline-block;
11 | margin-bottom: 0; // For input.btn
12 | font-weight: $btn-font-weight;
13 | text-align: center;
14 | vertical-align: middle;
15 | touch-action: manipulation;
16 | cursor: pointer;
17 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
18 | border: 1px solid transparent;
19 | white-space: nowrap;
20 | @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $btn-border-radius-base);
21 | @include user-select(none);
22 |
23 | &,
24 | &:active,
25 | &.active {
26 | &:focus,
27 | &.focus {
28 | @include tab-focus;
29 | }
30 | }
31 |
32 | &:hover,
33 | &:focus,
34 | &.focus {
35 | color: $btn-default-color;
36 | text-decoration: none;
37 | }
38 |
39 | &:active,
40 | &.active {
41 | outline: 0;
42 | background-image: none;
43 | @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
44 | }
45 |
46 | &.disabled,
47 | &[disabled],
48 | fieldset[disabled] & {
49 | cursor: $cursor-disabled;
50 | @include opacity(.65);
51 | @include box-shadow(none);
52 | }
53 |
54 | // [converter] extracted a& to a.btn
55 | }
56 |
57 | a.btn {
58 | &.disabled,
59 | fieldset[disabled] & {
60 | pointer-events: none; // Future-proof disabling of clicks on `
` elements
61 | }
62 | }
63 |
64 |
65 | // Alternate buttons
66 | // --------------------------------------------------
67 |
68 | .btn-default {
69 | @include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
70 | }
71 | .btn-primary {
72 | @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
73 | }
74 | // Success appears as green
75 | .btn-success {
76 | @include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
77 | }
78 | // Info appears as blue-green
79 | .btn-info {
80 | @include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
81 | }
82 | // Warning appears as orange
83 | .btn-warning {
84 | @include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
85 | }
86 | // Danger and error appear as red
87 | .btn-danger {
88 | @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
89 | }
90 |
91 |
92 | // Link buttons
93 | // -------------------------
94 |
95 | // Make a button look and behave like a link
96 | .btn-link {
97 | color: $link-color;
98 | font-weight: normal;
99 | border-radius: 0;
100 |
101 | &,
102 | &:active,
103 | &.active,
104 | &[disabled],
105 | fieldset[disabled] & {
106 | background-color: transparent;
107 | @include box-shadow(none);
108 | }
109 | &,
110 | &:hover,
111 | &:focus,
112 | &:active {
113 | border-color: transparent;
114 | }
115 | &:hover,
116 | &:focus {
117 | color: $link-hover-color;
118 | text-decoration: $link-hover-decoration;
119 | background-color: transparent;
120 | }
121 | &[disabled],
122 | fieldset[disabled] & {
123 | &:hover,
124 | &:focus {
125 | color: $btn-link-disabled-color;
126 | text-decoration: none;
127 | }
128 | }
129 | }
130 |
131 |
132 | // Button Sizes
133 | // --------------------------------------------------
134 |
135 | .btn-lg {
136 | // line-height: ensure even-numbered height of button next to large input
137 | @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large);
138 | }
139 | .btn-sm {
140 | // line-height: ensure proper height of button next to small input
141 | @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
142 | }
143 | .btn-xs {
144 | @include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small);
145 | }
146 |
147 |
148 | // Block button
149 | // --------------------------------------------------
150 |
151 | .btn-block {
152 | display: block;
153 | width: 100%;
154 | }
155 |
156 | // Vertically space out multiple block buttons
157 | .btn-block + .btn-block {
158 | margin-top: 5px;
159 | }
160 |
161 | // Specificity overrides
162 | input[type="submit"],
163 | input[type="reset"],
164 | input[type="button"] {
165 | &.btn-block {
166 | width: 100%;
167 | }
168 | }
169 |
--------------------------------------------------------------------------------
/css/bootstrap/_input-groups.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Input groups
3 | // --------------------------------------------------
4 |
5 | // Base styles
6 | // -------------------------
7 | .input-group {
8 | position: relative; // For dropdowns
9 | display: table;
10 | border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11 |
12 | // Undo padding and float of grid classes
13 | &[class*="col-"] {
14 | float: none;
15 | padding-left: 0;
16 | padding-right: 0;
17 | }
18 |
19 | .form-control {
20 | // Ensure that the input is always above the *appended* addon button for
21 | // proper border colors.
22 | position: relative;
23 | z-index: 2;
24 |
25 | // IE9 fubars the placeholder attribute in text inputs and the arrows on
26 | // select elements in input groups. To fix it, we float the input. Details:
27 | // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
28 | float: left;
29 |
30 | width: 100%;
31 | margin-bottom: 0;
32 |
33 | &:focus {
34 | z-index: 3;
35 | }
36 | }
37 | }
38 |
39 | // Sizing options
40 | //
41 | // Remix the default form control sizing classes into new ones for easier
42 | // manipulation.
43 |
44 | .input-group-lg > .form-control,
45 | .input-group-lg > .input-group-addon,
46 | .input-group-lg > .input-group-btn > .btn {
47 | @extend .input-lg;
48 | }
49 | .input-group-sm > .form-control,
50 | .input-group-sm > .input-group-addon,
51 | .input-group-sm > .input-group-btn > .btn {
52 | @extend .input-sm;
53 | }
54 |
55 |
56 | // Display as table-cell
57 | // -------------------------
58 | .input-group-addon,
59 | .input-group-btn,
60 | .input-group .form-control {
61 | display: table-cell;
62 |
63 | &:not(:first-child):not(:last-child) {
64 | border-radius: 0;
65 | }
66 | }
67 | // Addon and addon wrapper for buttons
68 | .input-group-addon,
69 | .input-group-btn {
70 | width: 1%;
71 | white-space: nowrap;
72 | vertical-align: middle; // Match the inputs
73 | }
74 |
75 | // Text input groups
76 | // -------------------------
77 | .input-group-addon {
78 | padding: $padding-base-vertical $padding-base-horizontal;
79 | font-size: $font-size-base;
80 | font-weight: normal;
81 | line-height: 1;
82 | color: $input-color;
83 | text-align: center;
84 | background-color: $input-group-addon-bg;
85 | border: 1px solid $input-group-addon-border-color;
86 | border-radius: $input-border-radius;
87 |
88 | // Sizing
89 | &.input-sm {
90 | padding: $padding-small-vertical $padding-small-horizontal;
91 | font-size: $font-size-small;
92 | border-radius: $input-border-radius-small;
93 | }
94 | &.input-lg {
95 | padding: $padding-large-vertical $padding-large-horizontal;
96 | font-size: $font-size-large;
97 | border-radius: $input-border-radius-large;
98 | }
99 |
100 | // Nuke default margins from checkboxes and radios to vertically center within.
101 | input[type="radio"],
102 | input[type="checkbox"] {
103 | margin-top: 0;
104 | }
105 | }
106 |
107 | // Reset rounded corners
108 | .input-group .form-control:first-child,
109 | .input-group-addon:first-child,
110 | .input-group-btn:first-child > .btn,
111 | .input-group-btn:first-child > .btn-group > .btn,
112 | .input-group-btn:first-child > .dropdown-toggle,
113 | .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
114 | .input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
115 | @include border-right-radius(0);
116 | }
117 | .input-group-addon:first-child {
118 | border-right: 0;
119 | }
120 | .input-group .form-control:last-child,
121 | .input-group-addon:last-child,
122 | .input-group-btn:last-child > .btn,
123 | .input-group-btn:last-child > .btn-group > .btn,
124 | .input-group-btn:last-child > .dropdown-toggle,
125 | .input-group-btn:first-child > .btn:not(:first-child),
126 | .input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
127 | @include border-left-radius(0);
128 | }
129 | .input-group-addon:last-child {
130 | border-left: 0;
131 | }
132 |
133 | // Button input groups
134 | // -------------------------
135 | .input-group-btn {
136 | position: relative;
137 | // Jankily prevent input button groups from wrapping with `white-space` and
138 | // `font-size` in combination with `inline-block` on buttons.
139 | font-size: 0;
140 | white-space: nowrap;
141 |
142 | // Negative margin for spacing, position for bringing hovered/focused/actived
143 | // element above the siblings.
144 | > .btn {
145 | position: relative;
146 | + .btn {
147 | margin-left: -1px;
148 | }
149 | // Bring the "active" button to the front
150 | &:hover,
151 | &:focus,
152 | &:active {
153 | z-index: 2;
154 | }
155 | }
156 |
157 | // Negative margin to only have a 1px border between the two
158 | &:first-child {
159 | > .btn,
160 | > .btn-group {
161 | margin-right: -1px;
162 | }
163 | }
164 | &:last-child {
165 | > .btn,
166 | > .btn-group {
167 | z-index: 2;
168 | margin-left: -1px;
169 | }
170 | }
171 | }
172 |
--------------------------------------------------------------------------------
/css/bootstrap/_responsive-utilities.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Responsive: Utility classes
3 | // --------------------------------------------------
4 |
5 |
6 | // IE10 in Windows (Phone) 8
7 | //
8 | // Support for responsive views via media queries is kind of borked in IE10, for
9 | // Surface/desktop in split view and for Windows Phone 8. This particular fix
10 | // must be accompanied by a snippet of JavaScript to sniff the user agent and
11 | // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
12 | // our Getting Started page for more information on this bug.
13 | //
14 | // For more information, see the following:
15 | //
16 | // Issue: https://github.com/twbs/bootstrap/issues/10497
17 | // Docs: http://getbootstrap.com/getting-started/#support-ie10-width
18 | // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
19 | // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
20 |
21 | @at-root {
22 | @-ms-viewport {
23 | width: device-width;
24 | }
25 | }
26 |
27 |
28 | // Visibility utilities
29 | // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
30 |
31 | @include responsive-invisibility('.visible-xs');
32 | @include responsive-invisibility('.visible-sm');
33 | @include responsive-invisibility('.visible-md');
34 | @include responsive-invisibility('.visible-lg');
35 |
36 | .visible-xs-block,
37 | .visible-xs-inline,
38 | .visible-xs-inline-block,
39 | .visible-sm-block,
40 | .visible-sm-inline,
41 | .visible-sm-inline-block,
42 | .visible-md-block,
43 | .visible-md-inline,
44 | .visible-md-inline-block,
45 | .visible-lg-block,
46 | .visible-lg-inline,
47 | .visible-lg-inline-block {
48 | display: none !important;
49 | }
50 |
51 | @media (max-width: $screen-xs-max) {
52 | @include responsive-visibility('.visible-xs');
53 | }
54 | .visible-xs-block {
55 | @media (max-width: $screen-xs-max) {
56 | display: block !important;
57 | }
58 | }
59 | .visible-xs-inline {
60 | @media (max-width: $screen-xs-max) {
61 | display: inline !important;
62 | }
63 | }
64 | .visible-xs-inline-block {
65 | @media (max-width: $screen-xs-max) {
66 | display: inline-block !important;
67 | }
68 | }
69 |
70 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
71 | @include responsive-visibility('.visible-sm');
72 | }
73 | .visible-sm-block {
74 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
75 | display: block !important;
76 | }
77 | }
78 | .visible-sm-inline {
79 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
80 | display: inline !important;
81 | }
82 | }
83 | .visible-sm-inline-block {
84 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
85 | display: inline-block !important;
86 | }
87 | }
88 |
89 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
90 | @include responsive-visibility('.visible-md');
91 | }
92 | .visible-md-block {
93 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
94 | display: block !important;
95 | }
96 | }
97 | .visible-md-inline {
98 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
99 | display: inline !important;
100 | }
101 | }
102 | .visible-md-inline-block {
103 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
104 | display: inline-block !important;
105 | }
106 | }
107 |
108 | @media (min-width: $screen-lg-min) {
109 | @include responsive-visibility('.visible-lg');
110 | }
111 | .visible-lg-block {
112 | @media (min-width: $screen-lg-min) {
113 | display: block !important;
114 | }
115 | }
116 | .visible-lg-inline {
117 | @media (min-width: $screen-lg-min) {
118 | display: inline !important;
119 | }
120 | }
121 | .visible-lg-inline-block {
122 | @media (min-width: $screen-lg-min) {
123 | display: inline-block !important;
124 | }
125 | }
126 |
127 | @media (max-width: $screen-xs-max) {
128 | @include responsive-invisibility('.hidden-xs');
129 | }
130 |
131 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
132 | @include responsive-invisibility('.hidden-sm');
133 | }
134 |
135 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
136 | @include responsive-invisibility('.hidden-md');
137 | }
138 |
139 | @media (min-width: $screen-lg-min) {
140 | @include responsive-invisibility('.hidden-lg');
141 | }
142 |
143 |
144 | // Print utilities
145 | //
146 | // Media queries are placed on the inside to be mixin-friendly.
147 |
148 | // Note: Deprecated .visible-print as of v3.2.0
149 |
150 | @include responsive-invisibility('.visible-print');
151 |
152 | @media print {
153 | @include responsive-visibility('.visible-print');
154 | }
155 | .visible-print-block {
156 | display: none !important;
157 |
158 | @media print {
159 | display: block !important;
160 | }
161 | }
162 | .visible-print-inline {
163 | display: none !important;
164 |
165 | @media print {
166 | display: inline !important;
167 | }
168 | }
169 | .visible-print-inline-block {
170 | display: none !important;
171 |
172 | @media print {
173 | display: inline-block !important;
174 | }
175 | }
176 |
177 | @media print {
178 | @include responsive-invisibility('.hidden-print');
179 | }
180 |
--------------------------------------------------------------------------------
/css/bootstrap/_tables.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Tables
3 | // --------------------------------------------------
4 |
5 |
6 | table {
7 | background-color: $table-bg;
8 | }
9 | caption {
10 | padding-top: $table-cell-padding;
11 | padding-bottom: $table-cell-padding;
12 | color: $text-muted;
13 | text-align: left;
14 | }
15 | th {
16 | text-align: left;
17 | }
18 |
19 |
20 | // Baseline styles
21 |
22 | .table {
23 | width: 100%;
24 | max-width: 100%;
25 | margin-bottom: $line-height-computed;
26 | // Cells
27 | > thead,
28 | > tbody,
29 | > tfoot {
30 | > tr {
31 | > th,
32 | > td {
33 | padding: $table-cell-padding;
34 | line-height: $line-height-base;
35 | vertical-align: top;
36 | border-top: 1px solid $table-border-color;
37 | }
38 | }
39 | }
40 | // Bottom align for column headings
41 | > thead > tr > th {
42 | vertical-align: bottom;
43 | border-bottom: 2px solid $table-border-color;
44 | }
45 | // Remove top border from thead by default
46 | > caption + thead,
47 | > colgroup + thead,
48 | > thead:first-child {
49 | > tr:first-child {
50 | > th,
51 | > td {
52 | border-top: 0;
53 | }
54 | }
55 | }
56 | // Account for multiple tbody instances
57 | > tbody + tbody {
58 | border-top: 2px solid $table-border-color;
59 | }
60 |
61 | // Nesting
62 | .table {
63 | background-color: $body-bg;
64 | }
65 | }
66 |
67 |
68 | // Condensed table w/ half padding
69 |
70 | .table-condensed {
71 | > thead,
72 | > tbody,
73 | > tfoot {
74 | > tr {
75 | > th,
76 | > td {
77 | padding: $table-condensed-cell-padding;
78 | }
79 | }
80 | }
81 | }
82 |
83 |
84 | // Bordered version
85 | //
86 | // Add borders all around the table and between all the columns.
87 |
88 | .table-bordered {
89 | border: 1px solid $table-border-color;
90 | > thead,
91 | > tbody,
92 | > tfoot {
93 | > tr {
94 | > th,
95 | > td {
96 | border: 1px solid $table-border-color;
97 | }
98 | }
99 | }
100 | > thead > tr {
101 | > th,
102 | > td {
103 | border-bottom-width: 2px;
104 | }
105 | }
106 | }
107 |
108 |
109 | // Zebra-striping
110 | //
111 | // Default zebra-stripe styles (alternating gray and transparent backgrounds)
112 |
113 | .table-striped {
114 | > tbody > tr:nth-of-type(odd) {
115 | background-color: $table-bg-accent;
116 | }
117 | }
118 |
119 |
120 | // Hover effect
121 | //
122 | // Placed here since it has to come after the potential zebra striping
123 |
124 | .table-hover {
125 | > tbody > tr:hover {
126 | background-color: $table-bg-hover;
127 | }
128 | }
129 |
130 |
131 | // Table cell sizing
132 | //
133 | // Reset default table behavior
134 |
135 | table col[class*="col-"] {
136 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
137 | float: none;
138 | display: table-column;
139 | }
140 | table {
141 | td,
142 | th {
143 | &[class*="col-"] {
144 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
145 | float: none;
146 | display: table-cell;
147 | }
148 | }
149 | }
150 |
151 |
152 | // Table backgrounds
153 | //
154 | // Exact selectors below required to override `.table-striped` and prevent
155 | // inheritance to nested tables.
156 |
157 | // Generate the contextual variants
158 | @include table-row-variant('active', $table-bg-active);
159 | @include table-row-variant('success', $state-success-bg);
160 | @include table-row-variant('info', $state-info-bg);
161 | @include table-row-variant('warning', $state-warning-bg);
162 | @include table-row-variant('danger', $state-danger-bg);
163 |
164 |
165 | // Responsive tables
166 | //
167 | // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
168 | // by enabling horizontal scrolling. Only applies <768px. Everything above that
169 | // will display normally.
170 |
171 | .table-responsive {
172 | overflow-x: auto;
173 | min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
174 |
175 | @media screen and (max-width: $screen-xs-max) {
176 | width: 100%;
177 | margin-bottom: ($line-height-computed * 0.75);
178 | overflow-y: hidden;
179 | -ms-overflow-style: -ms-autohiding-scrollbar;
180 | border: 1px solid $table-border-color;
181 |
182 | // Tighten up spacing
183 | > .table {
184 | margin-bottom: 0;
185 |
186 | // Ensure the content doesn't wrap
187 | > thead,
188 | > tbody,
189 | > tfoot {
190 | > tr {
191 | > th,
192 | > td {
193 | white-space: nowrap;
194 | }
195 | }
196 | }
197 | }
198 |
199 | // Special overrides for the bordered tables
200 | > .table-bordered {
201 | border: 0;
202 |
203 | // Nuke the appropriate borders so that the parent can handle them
204 | > thead,
205 | > tbody,
206 | > tfoot {
207 | > tr {
208 | > th:first-child,
209 | > td:first-child {
210 | border-left: 0;
211 | }
212 | > th:last-child,
213 | > td:last-child {
214 | border-right: 0;
215 | }
216 | }
217 | }
218 |
219 | // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
220 | // chances are there will be only one `tr` in a `thead` and that would
221 | // remove the border altogether.
222 | > tbody,
223 | > tfoot {
224 | > tr:last-child {
225 | > th,
226 | > td {
227 | border-bottom: 0;
228 | }
229 | }
230 | }
231 |
232 | }
233 | }
234 | }
235 |
--------------------------------------------------------------------------------
/css/bootstrap/_dropdowns.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Dropdown menus
3 | // --------------------------------------------------
4 |
5 |
6 | // Dropdown arrow/caret
7 | .caret {
8 | display: inline-block;
9 | width: 0;
10 | height: 0;
11 | margin-left: 2px;
12 | vertical-align: middle;
13 | border-top: $caret-width-base dashed;
14 | border-top: $caret-width-base solid \9; // IE8
15 | border-right: $caret-width-base solid transparent;
16 | border-left: $caret-width-base solid transparent;
17 | }
18 |
19 | // The dropdown wrapper (div)
20 | .dropup,
21 | .dropdown {
22 | position: relative;
23 | }
24 |
25 | // Prevent the focus on the dropdown toggle when closing dropdowns
26 | .dropdown-toggle:focus {
27 | outline: 0;
28 | }
29 |
30 | // The dropdown menu (ul)
31 | .dropdown-menu {
32 | position: absolute;
33 | top: 100%;
34 | left: 0;
35 | z-index: $zindex-dropdown;
36 | display: none; // none by default, but block on "open" of the menu
37 | float: left;
38 | min-width: 160px;
39 | padding: 5px 0;
40 | margin: 2px 0 0; // override default ul
41 | list-style: none;
42 | font-size: $font-size-base;
43 | text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
44 | background-color: $dropdown-bg;
45 | border: 1px solid $dropdown-fallback-border; // IE8 fallback
46 | border: 1px solid $dropdown-border;
47 | border-radius: $border-radius-base;
48 | @include box-shadow(0 6px 12px rgba(0,0,0,.175));
49 | background-clip: padding-box;
50 |
51 | // Aligns the dropdown menu to right
52 | //
53 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
54 | &.pull-right {
55 | right: 0;
56 | left: auto;
57 | }
58 |
59 | // Dividers (basically an hr) within the dropdown
60 | .divider {
61 | @include nav-divider($dropdown-divider-bg);
62 | }
63 |
64 | // Links within the dropdown menu
65 | > li > a {
66 | display: block;
67 | padding: 3px 20px;
68 | clear: both;
69 | font-weight: normal;
70 | line-height: $line-height-base;
71 | color: $dropdown-link-color;
72 | white-space: nowrap; // prevent links from randomly breaking onto new lines
73 | }
74 | }
75 |
76 | // Hover/Focus state
77 | .dropdown-menu > li > a {
78 | &:hover,
79 | &:focus {
80 | text-decoration: none;
81 | color: $dropdown-link-hover-color;
82 | background-color: $dropdown-link-hover-bg;
83 | }
84 | }
85 |
86 | // Active state
87 | .dropdown-menu > .active > a {
88 | &,
89 | &:hover,
90 | &:focus {
91 | color: $dropdown-link-active-color;
92 | text-decoration: none;
93 | outline: 0;
94 | background-color: $dropdown-link-active-bg;
95 | }
96 | }
97 |
98 | // Disabled state
99 | //
100 | // Gray out text and ensure the hover/focus state remains gray
101 |
102 | .dropdown-menu > .disabled > a {
103 | &,
104 | &:hover,
105 | &:focus {
106 | color: $dropdown-link-disabled-color;
107 | }
108 |
109 | // Nuke hover/focus effects
110 | &:hover,
111 | &:focus {
112 | text-decoration: none;
113 | background-color: transparent;
114 | background-image: none; // Remove CSS gradient
115 | @include reset-filter;
116 | cursor: $cursor-disabled;
117 | }
118 | }
119 |
120 | // Open state for the dropdown
121 | .open {
122 | // Show the menu
123 | > .dropdown-menu {
124 | display: block;
125 | }
126 |
127 | // Remove the outline when :focus is triggered
128 | > a {
129 | outline: 0;
130 | }
131 | }
132 |
133 | // Menu positioning
134 | //
135 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
136 | // menu with the parent.
137 | .dropdown-menu-right {
138 | left: auto; // Reset the default from `.dropdown-menu`
139 | right: 0;
140 | }
141 | // With v3, we enabled auto-flipping if you have a dropdown within a right
142 | // aligned nav component. To enable the undoing of that, we provide an override
143 | // to restore the default dropdown menu alignment.
144 | //
145 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or
146 | // `.pull-right` nav component.
147 | .dropdown-menu-left {
148 | left: 0;
149 | right: auto;
150 | }
151 |
152 | // Dropdown section headers
153 | .dropdown-header {
154 | display: block;
155 | padding: 3px 20px;
156 | font-size: $font-size-small;
157 | line-height: $line-height-base;
158 | color: $dropdown-header-color;
159 | white-space: nowrap; // as with > li > a
160 | }
161 |
162 | // Backdrop to catch body clicks on mobile, etc.
163 | .dropdown-backdrop {
164 | position: fixed;
165 | left: 0;
166 | right: 0;
167 | bottom: 0;
168 | top: 0;
169 | z-index: ($zindex-dropdown - 10);
170 | }
171 |
172 | // Right aligned dropdowns
173 | .pull-right > .dropdown-menu {
174 | right: 0;
175 | left: auto;
176 | }
177 |
178 | // Allow for dropdowns to go bottom up (aka, dropup-menu)
179 | //
180 | // Just add .dropup after the standard .dropdown class and you're set, bro.
181 | // TODO: abstract this so that the navbar fixed styles are not placed here?
182 |
183 | .dropup,
184 | .navbar-fixed-bottom .dropdown {
185 | // Reverse the caret
186 | .caret {
187 | border-top: 0;
188 | border-bottom: $caret-width-base dashed;
189 | border-bottom: $caret-width-base solid \9; // IE8
190 | content: "";
191 | }
192 | // Different positioning for bottom up menu
193 | .dropdown-menu {
194 | top: auto;
195 | bottom: 100%;
196 | margin-bottom: 2px;
197 | }
198 | }
199 |
200 |
201 | // Component alignment
202 | //
203 | // Reiterate per navbar.less and the modified component alignment there.
204 |
205 | @media (min-width: $grid-float-breakpoint) {
206 | .navbar-right {
207 | .dropdown-menu {
208 | right: 0; left: auto;
209 | }
210 | // Necessary for overrides of the default right aligned menu.
211 | // Will remove come v4 in all likelihood.
212 | .dropdown-menu-left {
213 | left: 0; right: auto;
214 | }
215 | }
216 | }
217 |
--------------------------------------------------------------------------------
/css/bootstrap/_navs.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Navs
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | // --------------------------------------------------
8 |
9 | .nav {
10 | margin-bottom: 0;
11 | padding-left: 0; // Override default ul/ol
12 | list-style: none;
13 | @include clearfix;
14 |
15 | > li {
16 | position: relative;
17 | display: block;
18 |
19 | > a {
20 | position: relative;
21 | display: block;
22 | padding: $nav-link-padding;
23 | &:hover,
24 | &:focus {
25 | text-decoration: none;
26 | background-color: $nav-link-hover-bg;
27 | }
28 | }
29 |
30 | // Disabled state sets text to gray and nukes hover/tab effects
31 | &.disabled > a {
32 | color: $nav-disabled-link-color;
33 |
34 | &:hover,
35 | &:focus {
36 | color: $nav-disabled-link-hover-color;
37 | text-decoration: none;
38 | background-color: transparent;
39 | cursor: $cursor-disabled;
40 | }
41 | }
42 | }
43 |
44 | // Open dropdowns
45 | .open > a {
46 | &,
47 | &:hover,
48 | &:focus {
49 | background-color: $nav-link-hover-bg;
50 | border-color: $link-color;
51 | }
52 | }
53 |
54 | // Nav dividers (deprecated with v3.0.1)
55 | //
56 | // This should have been removed in v3 with the dropping of `.nav-list`, but
57 | // we missed it. We don't currently support this anywhere, but in the interest
58 | // of maintaining backward compatibility in case you use it, it's deprecated.
59 | .nav-divider {
60 | @include nav-divider;
61 | }
62 |
63 | // Prevent IE8 from misplacing imgs
64 | //
65 | // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
66 | > li > a > img {
67 | max-width: none;
68 | }
69 | }
70 |
71 |
72 | // Tabs
73 | // -------------------------
74 |
75 | // Give the tabs something to sit on
76 | .nav-tabs {
77 | border-bottom: 1px solid $nav-tabs-border-color;
78 | > li {
79 | float: left;
80 | // Make the list-items overlay the bottom border
81 | margin-bottom: -1px;
82 |
83 | // Actual tabs (as links)
84 | > a {
85 | margin-right: 2px;
86 | line-height: $line-height-base;
87 | border: 1px solid transparent;
88 | border-radius: $border-radius-base $border-radius-base 0 0;
89 | &:hover {
90 | border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
91 | }
92 | }
93 |
94 | // Active state, and its :hover to override normal :hover
95 | &.active > a {
96 | &,
97 | &:hover,
98 | &:focus {
99 | color: $nav-tabs-active-link-hover-color;
100 | background-color: $nav-tabs-active-link-hover-bg;
101 | border: 1px solid $nav-tabs-active-link-hover-border-color;
102 | border-bottom-color: transparent;
103 | cursor: default;
104 | }
105 | }
106 | }
107 | // pulling this in mainly for less shorthand
108 | &.nav-justified {
109 | @extend .nav-justified;
110 | @extend .nav-tabs-justified;
111 | }
112 | }
113 |
114 |
115 | // Pills
116 | // -------------------------
117 | .nav-pills {
118 | > li {
119 | float: left;
120 |
121 | // Links rendered as pills
122 | > a {
123 | border-radius: $nav-pills-border-radius;
124 | }
125 | + li {
126 | margin-left: 2px;
127 | }
128 |
129 | // Active state
130 | &.active > a {
131 | &,
132 | &:hover,
133 | &:focus {
134 | color: $nav-pills-active-link-hover-color;
135 | background-color: $nav-pills-active-link-hover-bg;
136 | }
137 | }
138 | }
139 | }
140 |
141 |
142 | // Stacked pills
143 | .nav-stacked {
144 | > li {
145 | float: none;
146 | + li {
147 | margin-top: 2px;
148 | margin-left: 0; // no need for this gap between nav items
149 | }
150 | }
151 | }
152 |
153 |
154 | // Nav variations
155 | // --------------------------------------------------
156 |
157 | // Justified nav links
158 | // -------------------------
159 |
160 | .nav-justified {
161 | width: 100%;
162 |
163 | > li {
164 | float: none;
165 | > a {
166 | text-align: center;
167 | margin-bottom: 5px;
168 | }
169 | }
170 |
171 | > .dropdown .dropdown-menu {
172 | top: auto;
173 | left: auto;
174 | }
175 |
176 | @media (min-width: $screen-sm-min) {
177 | > li {
178 | display: table-cell;
179 | width: 1%;
180 | > a {
181 | margin-bottom: 0;
182 | }
183 | }
184 | }
185 | }
186 |
187 | // Move borders to anchors instead of bottom of list
188 | //
189 | // Mixin for adding on top the shared `.nav-justified` styles for our tabs
190 | .nav-tabs-justified {
191 | border-bottom: 0;
192 |
193 | > li > a {
194 | // Override margin from .nav-tabs
195 | margin-right: 0;
196 | border-radius: $border-radius-base;
197 | }
198 |
199 | > .active > a,
200 | > .active > a:hover,
201 | > .active > a:focus {
202 | border: 1px solid $nav-tabs-justified-link-border-color;
203 | }
204 |
205 | @media (min-width: $screen-sm-min) {
206 | > li > a {
207 | border-bottom: 1px solid $nav-tabs-justified-link-border-color;
208 | border-radius: $border-radius-base $border-radius-base 0 0;
209 | }
210 | > .active > a,
211 | > .active > a:hover,
212 | > .active > a:focus {
213 | border-bottom-color: $nav-tabs-justified-active-link-border-color;
214 | }
215 | }
216 | }
217 |
218 |
219 | // Tabbable tabs
220 | // -------------------------
221 |
222 | // Hide tabbable panes to start, show them when `.active`
223 | .tab-content {
224 | > .tab-pane {
225 | display: none;
226 | }
227 | > .active {
228 | display: block;
229 | }
230 | }
231 |
232 |
233 | // Dropdowns
234 | // -------------------------
235 |
236 | // Specific dropdowns
237 | .nav-tabs .dropdown-menu {
238 | // make dropdown border overlap tab border
239 | margin-top: -1px;
240 | // Remove the top rounded corners here since there is a hard edge above the menu
241 | @include border-top-radius(0);
242 | }
243 |
--------------------------------------------------------------------------------
/src/components/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by Raphson on 7/16/16.
3 | * Main Component of the application
4 | *
5 | */
6 | import React, {Component} from 'react';
7 | import ReactDOM from 'react-dom';
8 | import DonationForm from './DonationForm';
9 | import PaymentForm from './PaymentForm';
10 | import ThanksPage from './ThanksPage';
11 | import AppConstants from '../constants/AppConstants';
12 | import Auth from '../auth/auth';
13 | import $ from 'jquery';
14 |
15 |
16 |
17 | class App extends Component {
18 | constructor(props){
19 | super(props);
20 | this.state = {
21 | canSubmit: false,
22 | amount: 0,
23 | currency: 'USD',
24 | checkOutData : [],
25 | page: undefined,
26 | donationData: JSON.parse(Auth.getPaymentData()),
27 | };
28 | }
29 |
30 | /**
31 | * Prepare Checkout from PAYON API
32 | * using Jquery Ajax to make ajax call to PAYON API
33 | */
34 | getCheckout(){
35 | //Set All Parameter/ Data needed for checkout
36 | var data = {
37 | 'authentication.userId' : AppConstants.USER_ID,
38 | 'authentication.password' : AppConstants.PASSWORD,
39 | 'authentication.entityId' : AppConstants.ENTITY_ID,
40 | 'amount' : this.state.amount,
41 | 'currency' : this.state.currency,
42 | 'paymentType' : 'DB'
43 | };
44 |
45 | $.ajax({
46 | method: 'post',
47 | url: 'https://test.oppwa.com/v1/checkouts',
48 | data: data,
49 | dataType: 'json',
50 | cache: false,
51 | success: function(data){
52 | if(/^(000\.200)/.test(data.result.code)){
53 | data.amount = parseFloat(this.state.amount);
54 | data.currency = this.state.currency;
55 | Auth.storeCheckOutData(data);
56 | this.setState({checkOutData: data, page: 'payment'});
57 | }
58 | }.bind(this),
59 | error : function(xhr, status, err){
60 | alert(err);
61 | }.bind(this)
62 | });
63 | }
64 |
65 | /**
66 | * Get Payment status from PAYON API
67 | * using jquery to make the magic ajax call to PAYON API
68 | * @param resourcePath
69 | */
70 | getPaymentStatus(resourcePath){
71 | var data = {
72 | 'authentication.userId' : AppConstants.USER_ID,
73 | 'authentication.password' : AppConstants.PASSWORD,
74 | 'authentication.entityId' : AppConstants.ENTITY_ID,
75 | }
76 |
77 | $.ajax({
78 | url: 'https://test.oppwa.com' + resourcePath,
79 | data: data,
80 | dataType: 'json',
81 | success: function(data){
82 | this.verifyPayment(data);
83 | }.bind(this),
84 | error : function(xhr, status, err){
85 | this.setState({page: 'home'});
86 | }.bind(this)
87 | });
88 | }
89 |
90 | /**
91 | * make payment verification to check if payment is clean
92 | * if so, redirect to "thankyou" page
93 | * @param data
94 | */
95 | verifyPayment(data){
96 | if(/^(000\.000\.|000\.100\.1|000\.[36])/.test(data.result.code)){
97 | var checkOutObject = JSON.parse(Auth.getCheckOutData());
98 | if(checkOutObject.amount != data.amount){
99 | this.setState({page: 'home'});
100 | alert("Invalid Transaction!!");
101 | return;
102 | }
103 |
104 | if(checkOutObject.ndc != data.ndc){
105 | this.setState({page: 'home'});
106 | alert("Invalid Transaction!!");
107 | return;
108 | }
109 |
110 | if(checkOutObject.buildNumber != data.buildNumber){
111 | this.setState({page: 'home'});
112 | alert("Invalid Transaction!!");
113 | return;
114 | }
115 |
116 | if(checkOutObject.currency != data.currency){
117 | this.setState({page: 'home'});
118 | alert("Invalid Transaction!!");
119 | return;
120 | }
121 | Auth.storePaymentData(data);
122 | this.setState({page: 'thanksPage'});
123 |
124 | }
125 | }
126 |
127 | /**
128 | * Operations to be performed before mounting component to user's browser
129 | */
130 | componentWillMount(){
131 | console.log(this.state.donationData);
132 | if(Auth.canUserDonate(this.state.donationData)){
133 | this.getRequestOrigin();
134 | } else {
135 | this.setState({page: 'thanksPage'});
136 | }
137 | }
138 |
139 | /**
140 | * Process donation form and prepare checkout for payemtn
141 | * @param amount
142 | * @param currency
143 | */
144 | handleFormSubmit(amount, currency){
145 | this.setState({amount: amount, currency: currency}, function () {
146 | this.getCheckout();
147 | });
148 | }
149 |
150 | render() {
151 | if(this.state.page == "home"){
152 | var displayResult = ;
153 | } else if(this.state.page == 'payment'){
154 | var displayResult = ;
155 | } else if(this.state.page == 'thanksPage'){
156 | var displayResult = ;
157 | }
158 | return (
159 |
160 | { displayResult }
161 |
162 | )
163 | }
164 |
165 | /**
166 | * Get where request is coming from(User or from PAYON API)
167 | */
168 | getRequestOrigin(){
169 | var resourcePath = Auth.getParameterByName('resourcePath');
170 | var paymentId = Auth.getParameterByName('id');
171 | if(paymentId != null && resourcePath != null){
172 | //Request is from PAYON API
173 | this.getPaymentStatus(resourcePath);
174 | } else {
175 | //Request is from user
176 | this.setState({page: 'home'});
177 | }
178 | }
179 | }
180 |
181 | export default App;
--------------------------------------------------------------------------------
/css/bootstrap/_button-groups.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Button groups
3 | // --------------------------------------------------
4 |
5 | // Make the div behave like a button
6 | .btn-group,
7 | .btn-group-vertical {
8 | position: relative;
9 | display: inline-block;
10 | vertical-align: middle; // match .btn alignment given font-size hack above
11 | > .btn {
12 | position: relative;
13 | float: left;
14 | // Bring the "active" button to the front
15 | &:hover,
16 | &:focus,
17 | &:active,
18 | &.active {
19 | z-index: 2;
20 | }
21 | }
22 | }
23 |
24 | // Prevent double borders when buttons are next to each other
25 | .btn-group {
26 | .btn + .btn,
27 | .btn + .btn-group,
28 | .btn-group + .btn,
29 | .btn-group + .btn-group {
30 | margin-left: -1px;
31 | }
32 | }
33 |
34 | // Optional: Group multiple button groups together for a toolbar
35 | .btn-toolbar {
36 | margin-left: -5px; // Offset the first child's margin
37 | @include clearfix;
38 |
39 | .btn,
40 | .btn-group,
41 | .input-group {
42 | float: left;
43 | }
44 | > .btn,
45 | > .btn-group,
46 | > .input-group {
47 | margin-left: 5px;
48 | }
49 | }
50 |
51 | .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
52 | border-radius: 0;
53 | }
54 |
55 | // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
56 | .btn-group > .btn:first-child {
57 | margin-left: 0;
58 | &:not(:last-child):not(.dropdown-toggle) {
59 | @include border-right-radius(0);
60 | }
61 | }
62 | // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
63 | .btn-group > .btn:last-child:not(:first-child),
64 | .btn-group > .dropdown-toggle:not(:first-child) {
65 | @include border-left-radius(0);
66 | }
67 |
68 | // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
69 | .btn-group > .btn-group {
70 | float: left;
71 | }
72 | .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
73 | border-radius: 0;
74 | }
75 | .btn-group > .btn-group:first-child:not(:last-child) {
76 | > .btn:last-child,
77 | > .dropdown-toggle {
78 | @include border-right-radius(0);
79 | }
80 | }
81 | .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
82 | @include border-left-radius(0);
83 | }
84 |
85 | // On active and open, don't show outline
86 | .btn-group .dropdown-toggle:active,
87 | .btn-group.open .dropdown-toggle {
88 | outline: 0;
89 | }
90 |
91 |
92 | // Sizing
93 | //
94 | // Remix the default button sizing classes into new ones for easier manipulation.
95 |
96 | .btn-group-xs > .btn { @extend .btn-xs; }
97 | .btn-group-sm > .btn { @extend .btn-sm; }
98 | .btn-group-lg > .btn { @extend .btn-lg; }
99 |
100 |
101 | // Split button dropdowns
102 | // ----------------------
103 |
104 | // Give the line between buttons some depth
105 | .btn-group > .btn + .dropdown-toggle {
106 | padding-left: 8px;
107 | padding-right: 8px;
108 | }
109 | .btn-group > .btn-lg + .dropdown-toggle {
110 | padding-left: 12px;
111 | padding-right: 12px;
112 | }
113 |
114 | // The clickable button for toggling the menu
115 | // Remove the gradient and set the same inset shadow as the :active state
116 | .btn-group.open .dropdown-toggle {
117 | @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
118 |
119 | // Show no shadow for `.btn-link` since it has no other button styles.
120 | &.btn-link {
121 | @include box-shadow(none);
122 | }
123 | }
124 |
125 |
126 | // Reposition the caret
127 | .btn .caret {
128 | margin-left: 0;
129 | }
130 | // Carets in other button sizes
131 | .btn-lg .caret {
132 | border-width: $caret-width-large $caret-width-large 0;
133 | border-bottom-width: 0;
134 | }
135 | // Upside down carets for .dropup
136 | .dropup .btn-lg .caret {
137 | border-width: 0 $caret-width-large $caret-width-large;
138 | }
139 |
140 |
141 | // Vertical button groups
142 | // ----------------------
143 |
144 | .btn-group-vertical {
145 | > .btn,
146 | > .btn-group,
147 | > .btn-group > .btn {
148 | display: block;
149 | float: none;
150 | width: 100%;
151 | max-width: 100%;
152 | }
153 |
154 | // Clear floats so dropdown menus can be properly placed
155 | > .btn-group {
156 | @include clearfix;
157 | > .btn {
158 | float: none;
159 | }
160 | }
161 |
162 | > .btn + .btn,
163 | > .btn + .btn-group,
164 | > .btn-group + .btn,
165 | > .btn-group + .btn-group {
166 | margin-top: -1px;
167 | margin-left: 0;
168 | }
169 | }
170 |
171 | .btn-group-vertical > .btn {
172 | &:not(:first-child):not(:last-child) {
173 | border-radius: 0;
174 | }
175 | &:first-child:not(:last-child) {
176 | @include border-top-radius($btn-border-radius-base);
177 | @include border-bottom-radius(0);
178 | }
179 | &:last-child:not(:first-child) {
180 | @include border-top-radius(0);
181 | @include border-bottom-radius($btn-border-radius-base);
182 | }
183 | }
184 | .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
185 | border-radius: 0;
186 | }
187 | .btn-group-vertical > .btn-group:first-child:not(:last-child) {
188 | > .btn:last-child,
189 | > .dropdown-toggle {
190 | @include border-bottom-radius(0);
191 | }
192 | }
193 | .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
194 | @include border-top-radius(0);
195 | }
196 |
197 |
198 | // Justified button groups
199 | // ----------------------
200 |
201 | .btn-group-justified {
202 | display: table;
203 | width: 100%;
204 | table-layout: fixed;
205 | border-collapse: separate;
206 | > .btn,
207 | > .btn-group {
208 | float: none;
209 | display: table-cell;
210 | width: 1%;
211 | }
212 | > .btn-group .btn {
213 | width: 100%;
214 | }
215 |
216 | > .btn-group .dropdown-menu {
217 | left: auto;
218 | }
219 | }
220 |
221 |
222 | // Checkbox and radio options
223 | //
224 | // In order to support the browser's form validation feedback, powered by the
225 | // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
226 | // `display: none;` or `visibility: hidden;` as that also hides the popover.
227 | // Simply visually hiding the inputs via `opacity` would leave them clickable in
228 | // certain cases which is prevented by using `clip` and `pointer-events`.
229 | // This way, we ensure a DOM element is visible to position the popover from.
230 | //
231 | // See https://github.com/twbs/bootstrap/pull/12794 and
232 | // https://github.com/twbs/bootstrap/pull/14559 for more information.
233 |
234 | [data-toggle="buttons"] {
235 | > .btn,
236 | > .btn-group > .btn {
237 | input[type="radio"],
238 | input[type="checkbox"] {
239 | position: absolute;
240 | clip: rect(0,0,0,0);
241 | pointer-events: none;
242 | }
243 | }
244 | }
245 |
--------------------------------------------------------------------------------
/css/bootstrap/_carousel.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Carousel
3 | // --------------------------------------------------
4 |
5 |
6 | // Wrapper for the slide container and indicators
7 | .carousel {
8 | position: relative;
9 | }
10 |
11 | .carousel-inner {
12 | position: relative;
13 | overflow: hidden;
14 | width: 100%;
15 |
16 | > .item {
17 | display: none;
18 | position: relative;
19 | @include transition(.6s ease-in-out left);
20 |
21 | // Account for jankitude on images
22 | > img,
23 | > a > img {
24 | @include img-responsive;
25 | line-height: 1;
26 | }
27 |
28 | // WebKit CSS3 transforms for supported devices
29 | @media all and (transform-3d), (-webkit-transform-3d) {
30 | @include transition-transform(0.6s ease-in-out);
31 | @include backface-visibility(hidden);
32 | @include perspective(1000px);
33 |
34 | &.next,
35 | &.active.right {
36 | @include translate3d(100%, 0, 0);
37 | left: 0;
38 | }
39 | &.prev,
40 | &.active.left {
41 | @include translate3d(-100%, 0, 0);
42 | left: 0;
43 | }
44 | &.next.left,
45 | &.prev.right,
46 | &.active {
47 | @include translate3d(0, 0, 0);
48 | left: 0;
49 | }
50 | }
51 | }
52 |
53 | > .active,
54 | > .next,
55 | > .prev {
56 | display: block;
57 | }
58 |
59 | > .active {
60 | left: 0;
61 | }
62 |
63 | > .next,
64 | > .prev {
65 | position: absolute;
66 | top: 0;
67 | width: 100%;
68 | }
69 |
70 | > .next {
71 | left: 100%;
72 | }
73 | > .prev {
74 | left: -100%;
75 | }
76 | > .next.left,
77 | > .prev.right {
78 | left: 0;
79 | }
80 |
81 | > .active.left {
82 | left: -100%;
83 | }
84 | > .active.right {
85 | left: 100%;
86 | }
87 |
88 | }
89 |
90 | // Left/right controls for nav
91 | // ---------------------------
92 |
93 | .carousel-control {
94 | position: absolute;
95 | top: 0;
96 | left: 0;
97 | bottom: 0;
98 | width: $carousel-control-width;
99 | @include opacity($carousel-control-opacity);
100 | font-size: $carousel-control-font-size;
101 | color: $carousel-control-color;
102 | text-align: center;
103 | text-shadow: $carousel-text-shadow;
104 | background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug
105 | // We can't have this transition here because WebKit cancels the carousel
106 | // animation if you trip this while in the middle of another animation.
107 |
108 | // Set gradients for backgrounds
109 | &.left {
110 | @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
111 | }
112 | &.right {
113 | left: auto;
114 | right: 0;
115 | @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
116 | }
117 |
118 | // Hover/focus state
119 | &:hover,
120 | &:focus {
121 | outline: 0;
122 | color: $carousel-control-color;
123 | text-decoration: none;
124 | @include opacity(.9);
125 | }
126 |
127 | // Toggles
128 | .icon-prev,
129 | .icon-next,
130 | .glyphicon-chevron-left,
131 | .glyphicon-chevron-right {
132 | position: absolute;
133 | top: 50%;
134 | margin-top: -10px;
135 | z-index: 5;
136 | display: inline-block;
137 | }
138 | .icon-prev,
139 | .glyphicon-chevron-left {
140 | left: 50%;
141 | margin-left: -10px;
142 | }
143 | .icon-next,
144 | .glyphicon-chevron-right {
145 | right: 50%;
146 | margin-right: -10px;
147 | }
148 | .icon-prev,
149 | .icon-next {
150 | width: 20px;
151 | height: 20px;
152 | line-height: 1;
153 | font-family: serif;
154 | }
155 |
156 |
157 | .icon-prev {
158 | &:before {
159 | content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
160 | }
161 | }
162 | .icon-next {
163 | &:before {
164 | content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
165 | }
166 | }
167 | }
168 |
169 | // Optional indicator pips
170 | //
171 | // Add an unordered list with the following class and add a list item for each
172 | // slide your carousel holds.
173 |
174 | .carousel-indicators {
175 | position: absolute;
176 | bottom: 10px;
177 | left: 50%;
178 | z-index: 15;
179 | width: 60%;
180 | margin-left: -30%;
181 | padding-left: 0;
182 | list-style: none;
183 | text-align: center;
184 |
185 | li {
186 | display: inline-block;
187 | width: 10px;
188 | height: 10px;
189 | margin: 1px;
190 | text-indent: -999px;
191 | border: 1px solid $carousel-indicator-border-color;
192 | border-radius: 10px;
193 | cursor: pointer;
194 |
195 | // IE8-9 hack for event handling
196 | //
197 | // Internet Explorer 8-9 does not support clicks on elements without a set
198 | // `background-color`. We cannot use `filter` since that's not viewed as a
199 | // background color by the browser. Thus, a hack is needed.
200 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
201 | //
202 | // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
203 | // set alpha transparency for the best results possible.
204 | background-color: #000 \9; // IE8
205 | background-color: rgba(0,0,0,0); // IE9
206 | }
207 | .active {
208 | margin: 0;
209 | width: 12px;
210 | height: 12px;
211 | background-color: $carousel-indicator-active-bg;
212 | }
213 | }
214 |
215 | // Optional captions
216 | // -----------------------------
217 | // Hidden by default for smaller viewports
218 | .carousel-caption {
219 | position: absolute;
220 | left: 15%;
221 | right: 15%;
222 | bottom: 20px;
223 | z-index: 10;
224 | padding-top: 20px;
225 | padding-bottom: 20px;
226 | color: $carousel-caption-color;
227 | text-align: center;
228 | text-shadow: $carousel-text-shadow;
229 | & .btn {
230 | text-shadow: none; // No shadow for button elements in carousel-caption
231 | }
232 | }
233 |
234 |
235 | // Scale up controls for tablets and up
236 | @media screen and (min-width: $screen-sm-min) {
237 |
238 | // Scale up the controls a smidge
239 | .carousel-control {
240 | .glyphicon-chevron-left,
241 | .glyphicon-chevron-right,
242 | .icon-prev,
243 | .icon-next {
244 | width: ($carousel-control-font-size * 1.5);
245 | height: ($carousel-control-font-size * 1.5);
246 | margin-top: ($carousel-control-font-size / -2);
247 | font-size: ($carousel-control-font-size * 1.5);
248 | }
249 | .glyphicon-chevron-left,
250 | .icon-prev {
251 | margin-left: ($carousel-control-font-size / -2);
252 | }
253 | .glyphicon-chevron-right,
254 | .icon-next {
255 | margin-right: ($carousel-control-font-size / -2);
256 | }
257 | }
258 |
259 | // Show and left align the captions
260 | .carousel-caption {
261 | left: 20%;
262 | right: 20%;
263 | padding-bottom: 30px;
264 | }
265 |
266 | // Move up the indicators
267 | .carousel-indicators {
268 | bottom: 20px;
269 | }
270 | }
271 |
--------------------------------------------------------------------------------
/css/bootstrap/_type.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Typography
3 | // --------------------------------------------------
4 |
5 |
6 | // Headings
7 | // -------------------------
8 |
9 | h1, h2, h3, h4, h5, h6,
10 | .h1, .h2, .h3, .h4, .h5, .h6 {
11 | font-family: $headings-font-family;
12 | font-weight: $headings-font-weight;
13 | line-height: $headings-line-height;
14 | color: $headings-color;
15 |
16 | small,
17 | .small {
18 | font-weight: normal;
19 | line-height: 1;
20 | color: $headings-small-color;
21 | }
22 | }
23 |
24 | h1, .h1,
25 | h2, .h2,
26 | h3, .h3 {
27 | margin-top: $line-height-computed;
28 | margin-bottom: ($line-height-computed / 2);
29 |
30 | small,
31 | .small {
32 | font-size: 65%;
33 | }
34 | }
35 | h4, .h4,
36 | h5, .h5,
37 | h6, .h6 {
38 | margin-top: ($line-height-computed / 2);
39 | margin-bottom: ($line-height-computed / 2);
40 |
41 | small,
42 | .small {
43 | font-size: 75%;
44 | }
45 | }
46 |
47 | h1, .h1 { font-size: $font-size-h1; }
48 | h2, .h2 { font-size: $font-size-h2; }
49 | h3, .h3 { font-size: $font-size-h3; }
50 | h4, .h4 { font-size: $font-size-h4; }
51 | h5, .h5 { font-size: $font-size-h5; }
52 | h6, .h6 { font-size: $font-size-h6; }
53 |
54 |
55 | // Body text
56 | // -------------------------
57 |
58 | p {
59 | margin: 0 0 ($line-height-computed / 2);
60 | }
61 |
62 | .lead {
63 | margin-bottom: $line-height-computed;
64 | font-size: floor(($font-size-base * 1.15));
65 | font-weight: 300;
66 | line-height: 1.4;
67 |
68 | @media (min-width: $screen-sm-min) {
69 | font-size: ($font-size-base * 1.5);
70 | }
71 | }
72 |
73 |
74 | // Emphasis & misc
75 | // -------------------------
76 |
77 | // Ex: (12px small font / 14px base font) * 100% = about 85%
78 | small,
79 | .small {
80 | font-size: floor((100% * $font-size-small / $font-size-base));
81 | }
82 |
83 | mark,
84 | .mark {
85 | background-color: $state-warning-bg;
86 | padding: .2em;
87 | }
88 |
89 | // Alignment
90 | .text-left { text-align: left; }
91 | .text-right { text-align: right; }
92 | .text-center { text-align: center; }
93 | .text-justify { text-align: justify; }
94 | .text-nowrap { white-space: nowrap; }
95 |
96 | // Transformation
97 | .text-lowercase { text-transform: lowercase; }
98 | .text-uppercase { text-transform: uppercase; }
99 | .text-capitalize { text-transform: capitalize; }
100 |
101 | // Contextual colors
102 | .text-muted {
103 | color: $text-muted;
104 | }
105 |
106 | @include text-emphasis-variant('.text-primary', $brand-primary);
107 |
108 | @include text-emphasis-variant('.text-success', $state-success-text);
109 |
110 | @include text-emphasis-variant('.text-info', $state-info-text);
111 |
112 | @include text-emphasis-variant('.text-warning', $state-warning-text);
113 |
114 | @include text-emphasis-variant('.text-danger', $state-danger-text);
115 |
116 | // Contextual backgrounds
117 | // For now we'll leave these alongside the text classes until v4 when we can
118 | // safely shift things around (per SemVer rules).
119 | .bg-primary {
120 | // Given the contrast here, this is the only class to have its color inverted
121 | // automatically.
122 | color: #fff;
123 | }
124 | @include bg-variant('.bg-primary', $brand-primary);
125 |
126 | @include bg-variant('.bg-success', $state-success-bg);
127 |
128 | @include bg-variant('.bg-info', $state-info-bg);
129 |
130 | @include bg-variant('.bg-warning', $state-warning-bg);
131 |
132 | @include bg-variant('.bg-danger', $state-danger-bg);
133 |
134 |
135 | // Page header
136 | // -------------------------
137 |
138 | .page-header {
139 | padding-bottom: (($line-height-computed / 2) - 1);
140 | margin: ($line-height-computed * 2) 0 $line-height-computed;
141 | border-bottom: 1px solid $page-header-border-color;
142 | }
143 |
144 |
145 | // Lists
146 | // -------------------------
147 |
148 | // Unordered and Ordered lists
149 | ul,
150 | ol {
151 | margin-top: 0;
152 | margin-bottom: ($line-height-computed / 2);
153 | ul,
154 | ol {
155 | margin-bottom: 0;
156 | }
157 | }
158 |
159 | // List options
160 |
161 | // [converter] extracted from `.list-unstyled` for libsass compatibility
162 | @mixin list-unstyled {
163 | padding-left: 0;
164 | list-style: none;
165 | }
166 | // [converter] extracted as `@mixin list-unstyled` for libsass compatibility
167 | .list-unstyled {
168 | @include list-unstyled;
169 | }
170 |
171 |
172 | // Inline turns list items into inline-block
173 | .list-inline {
174 | @include list-unstyled;
175 | margin-left: -5px;
176 |
177 | > li {
178 | display: inline-block;
179 | padding-left: 5px;
180 | padding-right: 5px;
181 | }
182 | }
183 |
184 | // Description Lists
185 | dl {
186 | margin-top: 0; // Remove browser default
187 | margin-bottom: $line-height-computed;
188 | }
189 | dt,
190 | dd {
191 | line-height: $line-height-base;
192 | }
193 | dt {
194 | font-weight: bold;
195 | }
196 | dd {
197 | margin-left: 0; // Undo browser default
198 | }
199 |
200 | // Horizontal description lists
201 | //
202 | // Defaults to being stacked without any of the below styles applied, until the
203 | // grid breakpoint is reached (default of ~768px).
204 |
205 | .dl-horizontal {
206 | dd {
207 | @include clearfix; // Clear the floated `dt` if an empty `dd` is present
208 | }
209 |
210 | @media (min-width: $dl-horizontal-breakpoint) {
211 | dt {
212 | float: left;
213 | width: ($dl-horizontal-offset - 20);
214 | clear: left;
215 | text-align: right;
216 | @include text-overflow;
217 | }
218 | dd {
219 | margin-left: $dl-horizontal-offset;
220 | }
221 | }
222 | }
223 |
224 |
225 | // Misc
226 | // -------------------------
227 |
228 | // Abbreviations and acronyms
229 | abbr[title],
230 | // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
231 | abbr[data-original-title] {
232 | cursor: help;
233 | border-bottom: 1px dotted $abbr-border-color;
234 | }
235 | .initialism {
236 | font-size: 90%;
237 | @extend .text-uppercase;
238 | }
239 |
240 | // Blockquotes
241 | blockquote {
242 | padding: ($line-height-computed / 2) $line-height-computed;
243 | margin: 0 0 $line-height-computed;
244 | font-size: $blockquote-font-size;
245 | border-left: 5px solid $blockquote-border-color;
246 |
247 | p,
248 | ul,
249 | ol {
250 | &:last-child {
251 | margin-bottom: 0;
252 | }
253 | }
254 |
255 | // Note: Deprecated small and .small as of v3.1.0
256 | // Context: https://github.com/twbs/bootstrap/issues/11660
257 | footer,
258 | small,
259 | .small {
260 | display: block;
261 | font-size: 80%; // back to default font-size
262 | line-height: $line-height-base;
263 | color: $blockquote-small-color;
264 |
265 | &:before {
266 | content: '\2014 \00A0'; // em dash, nbsp
267 | }
268 | }
269 | }
270 |
271 | // Opposite alignment of blockquote
272 | //
273 | // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
274 | .blockquote-reverse,
275 | blockquote.pull-right {
276 | padding-right: 15px;
277 | padding-left: 0;
278 | border-right: 5px solid $blockquote-border-color;
279 | border-left: 0;
280 | text-align: right;
281 |
282 | // Account for citation
283 | footer,
284 | small,
285 | .small {
286 | &:before { content: ''; }
287 | &:after {
288 | content: '\00A0 \2014'; // nbsp, em dash
289 | }
290 | }
291 | }
292 |
293 | // Addresses
294 | address {
295 | margin-bottom: $line-height-computed;
296 | font-style: normal;
297 | line-height: $line-height-base;
298 | }
299 |
--------------------------------------------------------------------------------
/css/bootstrap/mixins/_vendor-prefixes.scss:
--------------------------------------------------------------------------------
1 | // Vendor Prefixes
2 | //
3 | // All vendor mixins are deprecated as of v3.2.0 due to the introduction of
4 | // Autoprefixer in our Gruntfile. They have been removed in v4.
5 |
6 | // - Animations
7 | // - Backface visibility
8 | // - Box shadow
9 | // - Box sizing
10 | // - Content columns
11 | // - Hyphens
12 | // - Placeholder text
13 | // - Transformations
14 | // - Transitions
15 | // - User Select
16 |
17 |
18 | // Animations
19 | @mixin animation($animation) {
20 | -webkit-animation: $animation;
21 | -o-animation: $animation;
22 | animation: $animation;
23 | }
24 | @mixin animation-name($name) {
25 | -webkit-animation-name: $name;
26 | animation-name: $name;
27 | }
28 | @mixin animation-duration($duration) {
29 | -webkit-animation-duration: $duration;
30 | animation-duration: $duration;
31 | }
32 | @mixin animation-timing-function($timing-function) {
33 | -webkit-animation-timing-function: $timing-function;
34 | animation-timing-function: $timing-function;
35 | }
36 | @mixin animation-delay($delay) {
37 | -webkit-animation-delay: $delay;
38 | animation-delay: $delay;
39 | }
40 | @mixin animation-iteration-count($iteration-count) {
41 | -webkit-animation-iteration-count: $iteration-count;
42 | animation-iteration-count: $iteration-count;
43 | }
44 | @mixin animation-direction($direction) {
45 | -webkit-animation-direction: $direction;
46 | animation-direction: $direction;
47 | }
48 | @mixin animation-fill-mode($fill-mode) {
49 | -webkit-animation-fill-mode: $fill-mode;
50 | animation-fill-mode: $fill-mode;
51 | }
52 |
53 | // Backface visibility
54 | // Prevent browsers from flickering when using CSS 3D transforms.
55 | // Default value is `visible`, but can be changed to `hidden`
56 |
57 | @mixin backface-visibility($visibility) {
58 | -webkit-backface-visibility: $visibility;
59 | -moz-backface-visibility: $visibility;
60 | backface-visibility: $visibility;
61 | }
62 |
63 | // Drop shadows
64 | //
65 | // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
66 | // supported browsers that have box shadow capabilities now support it.
67 |
68 | @mixin box-shadow($shadow...) {
69 | -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
70 | box-shadow: $shadow;
71 | }
72 |
73 | // Box sizing
74 | @mixin box-sizing($boxmodel) {
75 | -webkit-box-sizing: $boxmodel;
76 | -moz-box-sizing: $boxmodel;
77 | box-sizing: $boxmodel;
78 | }
79 |
80 | // CSS3 Content Columns
81 | @mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
82 | -webkit-column-count: $column-count;
83 | -moz-column-count: $column-count;
84 | column-count: $column-count;
85 | -webkit-column-gap: $column-gap;
86 | -moz-column-gap: $column-gap;
87 | column-gap: $column-gap;
88 | }
89 |
90 | // Optional hyphenation
91 | @mixin hyphens($mode: auto) {
92 | word-wrap: break-word;
93 | -webkit-hyphens: $mode;
94 | -moz-hyphens: $mode;
95 | -ms-hyphens: $mode; // IE10+
96 | -o-hyphens: $mode;
97 | hyphens: $mode;
98 | }
99 |
100 | // Placeholder text
101 | @mixin placeholder($color: $input-color-placeholder) {
102 | // Firefox
103 | &::-moz-placeholder {
104 | color: $color;
105 | opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
106 | }
107 | &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
108 | &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
109 | }
110 |
111 | // Transformations
112 | @mixin scale($ratio...) {
113 | -webkit-transform: scale($ratio);
114 | -ms-transform: scale($ratio); // IE9 only
115 | -o-transform: scale($ratio);
116 | transform: scale($ratio);
117 | }
118 |
119 | @mixin scaleX($ratio) {
120 | -webkit-transform: scaleX($ratio);
121 | -ms-transform: scaleX($ratio); // IE9 only
122 | -o-transform: scaleX($ratio);
123 | transform: scaleX($ratio);
124 | }
125 | @mixin scaleY($ratio) {
126 | -webkit-transform: scaleY($ratio);
127 | -ms-transform: scaleY($ratio); // IE9 only
128 | -o-transform: scaleY($ratio);
129 | transform: scaleY($ratio);
130 | }
131 | @mixin skew($x, $y) {
132 | -webkit-transform: skewX($x) skewY($y);
133 | -ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
134 | -o-transform: skewX($x) skewY($y);
135 | transform: skewX($x) skewY($y);
136 | }
137 | @mixin translate($x, $y) {
138 | -webkit-transform: translate($x, $y);
139 | -ms-transform: translate($x, $y); // IE9 only
140 | -o-transform: translate($x, $y);
141 | transform: translate($x, $y);
142 | }
143 | @mixin translate3d($x, $y, $z) {
144 | -webkit-transform: translate3d($x, $y, $z);
145 | transform: translate3d($x, $y, $z);
146 | }
147 | @mixin rotate($degrees) {
148 | -webkit-transform: rotate($degrees);
149 | -ms-transform: rotate($degrees); // IE9 only
150 | -o-transform: rotate($degrees);
151 | transform: rotate($degrees);
152 | }
153 | @mixin rotateX($degrees) {
154 | -webkit-transform: rotateX($degrees);
155 | -ms-transform: rotateX($degrees); // IE9 only
156 | -o-transform: rotateX($degrees);
157 | transform: rotateX($degrees);
158 | }
159 | @mixin rotateY($degrees) {
160 | -webkit-transform: rotateY($degrees);
161 | -ms-transform: rotateY($degrees); // IE9 only
162 | -o-transform: rotateY($degrees);
163 | transform: rotateY($degrees);
164 | }
165 | @mixin perspective($perspective) {
166 | -webkit-perspective: $perspective;
167 | -moz-perspective: $perspective;
168 | perspective: $perspective;
169 | }
170 | @mixin perspective-origin($perspective) {
171 | -webkit-perspective-origin: $perspective;
172 | -moz-perspective-origin: $perspective;
173 | perspective-origin: $perspective;
174 | }
175 | @mixin transform-origin($origin) {
176 | -webkit-transform-origin: $origin;
177 | -moz-transform-origin: $origin;
178 | -ms-transform-origin: $origin; // IE9 only
179 | transform-origin: $origin;
180 | }
181 |
182 |
183 | // Transitions
184 |
185 | @mixin transition($transition...) {
186 | -webkit-transition: $transition;
187 | -o-transition: $transition;
188 | transition: $transition;
189 | }
190 | @mixin transition-property($transition-property...) {
191 | -webkit-transition-property: $transition-property;
192 | transition-property: $transition-property;
193 | }
194 | @mixin transition-delay($transition-delay) {
195 | -webkit-transition-delay: $transition-delay;
196 | transition-delay: $transition-delay;
197 | }
198 | @mixin transition-duration($transition-duration...) {
199 | -webkit-transition-duration: $transition-duration;
200 | transition-duration: $transition-duration;
201 | }
202 | @mixin transition-timing-function($timing-function) {
203 | -webkit-transition-timing-function: $timing-function;
204 | transition-timing-function: $timing-function;
205 | }
206 | @mixin transition-transform($transition...) {
207 | -webkit-transition: -webkit-transform $transition;
208 | -moz-transition: -moz-transform $transition;
209 | -o-transition: -o-transform $transition;
210 | transition: transform $transition;
211 | }
212 |
213 |
214 | // User select
215 | // For selecting text on the page
216 |
217 | @mixin user-select($select) {
218 | -webkit-user-select: $select;
219 | -moz-user-select: $select;
220 | -ms-user-select: $select; // IE10+
221 | user-select: $select;
222 | }
223 |
--------------------------------------------------------------------------------
/css/bootstrap/_panels.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Panels
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .panel {
8 | margin-bottom: $line-height-computed;
9 | background-color: $panel-bg;
10 | border: 1px solid transparent;
11 | border-radius: $panel-border-radius;
12 | @include box-shadow(0 1px 1px rgba(0,0,0,.05));
13 | }
14 |
15 | // Panel contents
16 | .panel-body {
17 | padding: $panel-body-padding;
18 | @include clearfix;
19 | }
20 |
21 | // Optional heading
22 | .panel-heading {
23 | padding: $panel-heading-padding;
24 | border-bottom: 1px solid transparent;
25 | @include border-top-radius(($panel-border-radius - 1));
26 |
27 | > .dropdown .dropdown-toggle {
28 | color: inherit;
29 | }
30 | }
31 |
32 | // Within heading, strip any `h*` tag of its default margins for spacing.
33 | .panel-title {
34 | margin-top: 0;
35 | margin-bottom: 0;
36 | font-size: ceil(($font-size-base * 1.125));
37 | color: inherit;
38 |
39 | > a,
40 | > small,
41 | > .small,
42 | > small > a,
43 | > .small > a {
44 | color: inherit;
45 | }
46 | }
47 |
48 | // Optional footer (stays gray in every modifier class)
49 | .panel-footer {
50 | padding: $panel-footer-padding;
51 | background-color: $panel-footer-bg;
52 | border-top: 1px solid $panel-inner-border;
53 | @include border-bottom-radius(($panel-border-radius - 1));
54 | }
55 |
56 |
57 | // List groups in panels
58 | //
59 | // By default, space out list group content from panel headings to account for
60 | // any kind of custom content between the two.
61 |
62 | .panel {
63 | > .list-group,
64 | > .panel-collapse > .list-group {
65 | margin-bottom: 0;
66 |
67 | .list-group-item {
68 | border-width: 1px 0;
69 | border-radius: 0;
70 | }
71 |
72 | // Add border top radius for first one
73 | &:first-child {
74 | .list-group-item:first-child {
75 | border-top: 0;
76 | @include border-top-radius(($panel-border-radius - 1));
77 | }
78 | }
79 |
80 | // Add border bottom radius for last one
81 | &:last-child {
82 | .list-group-item:last-child {
83 | border-bottom: 0;
84 | @include border-bottom-radius(($panel-border-radius - 1));
85 | }
86 | }
87 | }
88 | > .panel-heading + .panel-collapse > .list-group {
89 | .list-group-item:first-child {
90 | @include border-top-radius(0);
91 | }
92 | }
93 | }
94 | // Collapse space between when there's no additional content.
95 | .panel-heading + .list-group {
96 | .list-group-item:first-child {
97 | border-top-width: 0;
98 | }
99 | }
100 | .list-group + .panel-footer {
101 | border-top-width: 0;
102 | }
103 |
104 | // Tables in panels
105 | //
106 | // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
107 | // watch it go full width.
108 |
109 | .panel {
110 | > .table,
111 | > .table-responsive > .table,
112 | > .panel-collapse > .table {
113 | margin-bottom: 0;
114 |
115 | caption {
116 | padding-left: $panel-body-padding;
117 | padding-right: $panel-body-padding;
118 | }
119 | }
120 | // Add border top radius for first one
121 | > .table:first-child,
122 | > .table-responsive:first-child > .table:first-child {
123 | @include border-top-radius(($panel-border-radius - 1));
124 |
125 | > thead:first-child,
126 | > tbody:first-child {
127 | > tr:first-child {
128 | border-top-left-radius: ($panel-border-radius - 1);
129 | border-top-right-radius: ($panel-border-radius - 1);
130 |
131 | td:first-child,
132 | th:first-child {
133 | border-top-left-radius: ($panel-border-radius - 1);
134 | }
135 | td:last-child,
136 | th:last-child {
137 | border-top-right-radius: ($panel-border-radius - 1);
138 | }
139 | }
140 | }
141 | }
142 | // Add border bottom radius for last one
143 | > .table:last-child,
144 | > .table-responsive:last-child > .table:last-child {
145 | @include border-bottom-radius(($panel-border-radius - 1));
146 |
147 | > tbody:last-child,
148 | > tfoot:last-child {
149 | > tr:last-child {
150 | border-bottom-left-radius: ($panel-border-radius - 1);
151 | border-bottom-right-radius: ($panel-border-radius - 1);
152 |
153 | td:first-child,
154 | th:first-child {
155 | border-bottom-left-radius: ($panel-border-radius - 1);
156 | }
157 | td:last-child,
158 | th:last-child {
159 | border-bottom-right-radius: ($panel-border-radius - 1);
160 | }
161 | }
162 | }
163 | }
164 | > .panel-body + .table,
165 | > .panel-body + .table-responsive,
166 | > .table + .panel-body,
167 | > .table-responsive + .panel-body {
168 | border-top: 1px solid $table-border-color;
169 | }
170 | > .table > tbody:first-child > tr:first-child th,
171 | > .table > tbody:first-child > tr:first-child td {
172 | border-top: 0;
173 | }
174 | > .table-bordered,
175 | > .table-responsive > .table-bordered {
176 | border: 0;
177 | > thead,
178 | > tbody,
179 | > tfoot {
180 | > tr {
181 | > th:first-child,
182 | > td:first-child {
183 | border-left: 0;
184 | }
185 | > th:last-child,
186 | > td:last-child {
187 | border-right: 0;
188 | }
189 | }
190 | }
191 | > thead,
192 | > tbody {
193 | > tr:first-child {
194 | > td,
195 | > th {
196 | border-bottom: 0;
197 | }
198 | }
199 | }
200 | > tbody,
201 | > tfoot {
202 | > tr:last-child {
203 | > td,
204 | > th {
205 | border-bottom: 0;
206 | }
207 | }
208 | }
209 | }
210 | > .table-responsive {
211 | border: 0;
212 | margin-bottom: 0;
213 | }
214 | }
215 |
216 |
217 | // Collapsable panels (aka, accordion)
218 | //
219 | // Wrap a series of panels in `.panel-group` to turn them into an accordion with
220 | // the help of our collapse JavaScript plugin.
221 |
222 | .panel-group {
223 | margin-bottom: $line-height-computed;
224 |
225 | // Tighten up margin so it's only between panels
226 | .panel {
227 | margin-bottom: 0;
228 | border-radius: $panel-border-radius;
229 |
230 | + .panel {
231 | margin-top: 5px;
232 | }
233 | }
234 |
235 | .panel-heading {
236 | border-bottom: 0;
237 |
238 | + .panel-collapse > .panel-body,
239 | + .panel-collapse > .list-group {
240 | border-top: 1px solid $panel-inner-border;
241 | }
242 | }
243 |
244 | .panel-footer {
245 | border-top: 0;
246 | + .panel-collapse .panel-body {
247 | border-bottom: 1px solid $panel-inner-border;
248 | }
249 | }
250 | }
251 |
252 |
253 | // Contextual variations
254 | .panel-default {
255 | @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
256 | }
257 | .panel-primary {
258 | @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
259 | }
260 | .panel-success {
261 | @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
262 | }
263 | .panel-info {
264 | @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
265 | }
266 | .panel-warning {
267 | @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
268 | }
269 | .panel-danger {
270 | @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
271 | }
272 |
--------------------------------------------------------------------------------
/css/bootstrap/_normalize.scss:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2 |
3 | //
4 | // 1. Set default font family to sans-serif.
5 | // 2. Prevent iOS and IE text size adjust after device orientation change,
6 | // without disabling user zoom.
7 | //
8 |
9 | html {
10 | font-family: sans-serif; // 1
11 | -ms-text-size-adjust: 100%; // 2
12 | -webkit-text-size-adjust: 100%; // 2
13 | }
14 |
15 | //
16 | // Remove default margin.
17 | //
18 |
19 | body {
20 | margin: 0;
21 | }
22 |
23 | // HTML5 display definitions
24 | // ==========================================================================
25 |
26 | //
27 | // Correct `block` display not defined for any HTML5 element in IE 8/9.
28 | // Correct `block` display not defined for `details` or `summary` in IE 10/11
29 | // and Firefox.
30 | // Correct `block` display not defined for `main` in IE 11.
31 | //
32 |
33 | article,
34 | aside,
35 | details,
36 | figcaption,
37 | figure,
38 | footer,
39 | header,
40 | hgroup,
41 | main,
42 | menu,
43 | nav,
44 | section,
45 | summary {
46 | display: block;
47 | }
48 |
49 | //
50 | // 1. Correct `inline-block` display not defined in IE 8/9.
51 | // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
52 | //
53 |
54 | audio,
55 | canvas,
56 | progress,
57 | video {
58 | display: inline-block; // 1
59 | vertical-align: baseline; // 2
60 | }
61 |
62 | //
63 | // Prevent modern browsers from displaying `audio` without controls.
64 | // Remove excess height in iOS 5 devices.
65 | //
66 |
67 | audio:not([controls]) {
68 | display: none;
69 | height: 0;
70 | }
71 |
72 | //
73 | // Address `[hidden]` styling not present in IE 8/9/10.
74 | // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75 | //
76 |
77 | [hidden],
78 | template {
79 | display: none;
80 | }
81 |
82 | // Links
83 | // ==========================================================================
84 |
85 | //
86 | // Remove the gray background color from active links in IE 10.
87 | //
88 |
89 | a {
90 | background-color: transparent;
91 | }
92 |
93 | //
94 | // Improve readability of focused elements when they are also in an
95 | // active/hover state.
96 | //
97 |
98 | a:active,
99 | a:hover {
100 | outline: 0;
101 | }
102 |
103 | // Text-level semantics
104 | // ==========================================================================
105 |
106 | //
107 | // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
108 | //
109 |
110 | abbr[title] {
111 | border-bottom: 1px dotted;
112 | }
113 |
114 | //
115 | // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
116 | //
117 |
118 | b,
119 | strong {
120 | font-weight: bold;
121 | }
122 |
123 | //
124 | // Address styling not present in Safari and Chrome.
125 | //
126 |
127 | dfn {
128 | font-style: italic;
129 | }
130 |
131 | //
132 | // Address variable `h1` font-size and margin within `section` and `article`
133 | // contexts in Firefox 4+, Safari, and Chrome.
134 | //
135 |
136 | h1 {
137 | font-size: 2em;
138 | margin: 0.67em 0;
139 | }
140 |
141 | //
142 | // Address styling not present in IE 8/9.
143 | //
144 |
145 | mark {
146 | background: #ff0;
147 | color: #000;
148 | }
149 |
150 | //
151 | // Address inconsistent and variable font size in all browsers.
152 | //
153 |
154 | small {
155 | font-size: 80%;
156 | }
157 |
158 | //
159 | // Prevent `sub` and `sup` affecting `line-height` in all browsers.
160 | //
161 |
162 | sub,
163 | sup {
164 | font-size: 75%;
165 | line-height: 0;
166 | position: relative;
167 | vertical-align: baseline;
168 | }
169 |
170 | sup {
171 | top: -0.5em;
172 | }
173 |
174 | sub {
175 | bottom: -0.25em;
176 | }
177 |
178 | // Embedded content
179 | // ==========================================================================
180 |
181 | //
182 | // Remove border when inside `a` element in IE 8/9/10.
183 | //
184 |
185 | img {
186 | border: 0;
187 | }
188 |
189 | //
190 | // Correct overflow not hidden in IE 9/10/11.
191 | //
192 |
193 | svg:not(:root) {
194 | overflow: hidden;
195 | }
196 |
197 | // Grouping content
198 | // ==========================================================================
199 |
200 | //
201 | // Address margin not present in IE 8/9 and Safari.
202 | //
203 |
204 | figure {
205 | margin: 1em 40px;
206 | }
207 |
208 | //
209 | // Address differences between Firefox and other browsers.
210 | //
211 |
212 | hr {
213 | box-sizing: content-box;
214 | height: 0;
215 | }
216 |
217 | //
218 | // Contain overflow in all browsers.
219 | //
220 |
221 | pre {
222 | overflow: auto;
223 | }
224 |
225 | //
226 | // Address odd `em`-unit font size rendering in all browsers.
227 | //
228 |
229 | code,
230 | kbd,
231 | pre,
232 | samp {
233 | font-family: monospace, monospace;
234 | font-size: 1em;
235 | }
236 |
237 | // Forms
238 | // ==========================================================================
239 |
240 | //
241 | // Known limitation: by default, Chrome and Safari on OS X allow very limited
242 | // styling of `select`, unless a `border` property is set.
243 | //
244 |
245 | //
246 | // 1. Correct color not being inherited.
247 | // Known issue: affects color of disabled elements.
248 | // 2. Correct font properties not being inherited.
249 | // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
250 | //
251 |
252 | button,
253 | input,
254 | optgroup,
255 | select,
256 | textarea {
257 | color: inherit; // 1
258 | font: inherit; // 2
259 | margin: 0; // 3
260 | }
261 |
262 | //
263 | // Address `overflow` set to `hidden` in IE 8/9/10/11.
264 | //
265 |
266 | button {
267 | overflow: visible;
268 | }
269 |
270 | //
271 | // Address inconsistent `text-transform` inheritance for `button` and `select`.
272 | // All other form control elements do not inherit `text-transform` values.
273 | // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
274 | // Correct `select` style inheritance in Firefox.
275 | //
276 |
277 | button,
278 | select {
279 | text-transform: none;
280 | }
281 |
282 | //
283 | // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
284 | // and `video` controls.
285 | // 2. Correct inability to style clickable `input` types in iOS.
286 | // 3. Improve usability and consistency of cursor style between image-type
287 | // `input` and others.
288 | //
289 |
290 | button,
291 | html input[type="button"], // 1
292 | input[type="reset"],
293 | input[type="submit"] {
294 | -webkit-appearance: button; // 2
295 | cursor: pointer; // 3
296 | }
297 |
298 | //
299 | // Re-set default cursor for disabled elements.
300 | //
301 |
302 | button[disabled],
303 | html input[disabled] {
304 | cursor: default;
305 | }
306 |
307 | //
308 | // Remove inner padding and border in Firefox 4+.
309 | //
310 |
311 | button::-moz-focus-inner,
312 | input::-moz-focus-inner {
313 | border: 0;
314 | padding: 0;
315 | }
316 |
317 | //
318 | // Address Firefox 4+ setting `line-height` on `input` using `!important` in
319 | // the UA stylesheet.
320 | //
321 |
322 | input {
323 | line-height: normal;
324 | }
325 |
326 | //
327 | // It's recommended that you don't attempt to style these elements.
328 | // Firefox's implementation doesn't respect box-sizing, padding, or width.
329 | //
330 | // 1. Address box sizing set to `content-box` in IE 8/9/10.
331 | // 2. Remove excess padding in IE 8/9/10.
332 | //
333 |
334 | input[type="checkbox"],
335 | input[type="radio"] {
336 | box-sizing: border-box; // 1
337 | padding: 0; // 2
338 | }
339 |
340 | //
341 | // Fix the cursor style for Chrome's increment/decrement buttons. For certain
342 | // `font-size` values of the `input`, it causes the cursor style of the
343 | // decrement button to change from `default` to `text`.
344 | //
345 |
346 | input[type="number"]::-webkit-inner-spin-button,
347 | input[type="number"]::-webkit-outer-spin-button {
348 | height: auto;
349 | }
350 |
351 | //
352 | // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353 | // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
354 | //
355 |
356 | input[type="search"] {
357 | -webkit-appearance: textfield; // 1
358 | box-sizing: content-box; //2
359 | }
360 |
361 | //
362 | // Remove inner padding and search cancel button in Safari and Chrome on OS X.
363 | // Safari (but not Chrome) clips the cancel button when the search input has
364 | // padding (and `textfield` appearance).
365 | //
366 |
367 | input[type="search"]::-webkit-search-cancel-button,
368 | input[type="search"]::-webkit-search-decoration {
369 | -webkit-appearance: none;
370 | }
371 |
372 | //
373 | // Define consistent border, margin, and padding.
374 | //
375 |
376 | fieldset {
377 | border: 1px solid #c0c0c0;
378 | margin: 0 2px;
379 | padding: 0.35em 0.625em 0.75em;
380 | }
381 |
382 | //
383 | // 1. Correct `color` not being inherited in IE 8/9/10/11.
384 | // 2. Remove padding so people aren't caught out if they zero out fieldsets.
385 | //
386 |
387 | legend {
388 | border: 0; // 1
389 | padding: 0; // 2
390 | }
391 |
392 | //
393 | // Remove default vertical scrollbar in IE 8/9/10/11.
394 | //
395 |
396 | textarea {
397 | overflow: auto;
398 | }
399 |
400 | //
401 | // Don't inherit the `font-weight` (applied by a rule above).
402 | // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
403 | //
404 |
405 | optgroup {
406 | font-weight: bold;
407 | }
408 |
409 | // Tables
410 | // ==========================================================================
411 |
412 | //
413 | // Remove most spacing between table cells.
414 | //
415 |
416 | table {
417 | border-collapse: collapse;
418 | border-spacing: 0;
419 | }
420 |
421 | td,
422 | th {
423 | padding: 0;
424 | }
425 |
--------------------------------------------------------------------------------
/css/bootstrap/_theme.scss:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v3.3.6 (http://getbootstrap.com)
3 | * Copyright 2011-2015 Twitter, Inc.
4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 | */
6 |
7 | //
8 | // Load core variables and mixins
9 | // --------------------------------------------------
10 |
11 | @import "variables";
12 | @import "mixins";
13 |
14 |
15 | //
16 | // Buttons
17 | // --------------------------------------------------
18 |
19 | // Common styles
20 | .btn-default,
21 | .btn-primary,
22 | .btn-success,
23 | .btn-info,
24 | .btn-warning,
25 | .btn-danger {
26 | text-shadow: 0 -1px 0 rgba(0,0,0,.2);
27 | $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
28 | @include box-shadow($shadow);
29 |
30 | // Reset the shadow
31 | &:active,
32 | &.active {
33 | @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
34 | }
35 |
36 | &.disabled,
37 | &[disabled],
38 | fieldset[disabled] & {
39 | @include box-shadow(none);
40 | }
41 |
42 | .badge {
43 | text-shadow: none;
44 | }
45 | }
46 |
47 | // Mixin for generating new styles
48 | @mixin btn-styles($btn-color: #555) {
49 | @include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
50 | @include reset-filter; // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
51 | background-repeat: repeat-x;
52 | border-color: darken($btn-color, 14%);
53 |
54 | &:hover,
55 | &:focus {
56 | background-color: darken($btn-color, 12%);
57 | background-position: 0 -15px;
58 | }
59 |
60 | &:active,
61 | &.active {
62 | background-color: darken($btn-color, 12%);
63 | border-color: darken($btn-color, 14%);
64 | }
65 |
66 | &.disabled,
67 | &[disabled],
68 | fieldset[disabled] & {
69 | &,
70 | &:hover,
71 | &:focus,
72 | &.focus,
73 | &:active,
74 | &.active {
75 | background-color: darken($btn-color, 12%);
76 | background-image: none;
77 | }
78 | }
79 | }
80 |
81 | // Common styles
82 | .btn {
83 | // Remove the gradient for the pressed/active state
84 | &:active,
85 | &.active {
86 | background-image: none;
87 | }
88 | }
89 |
90 | // Apply the mixin to the buttons
91 | .btn-default { @include btn-styles($btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
92 | .btn-primary { @include btn-styles($btn-primary-bg); }
93 | .btn-success { @include btn-styles($btn-success-bg); }
94 | .btn-info { @include btn-styles($btn-info-bg); }
95 | .btn-warning { @include btn-styles($btn-warning-bg); }
96 | .btn-danger { @include btn-styles($btn-danger-bg); }
97 |
98 |
99 | //
100 | // Images
101 | // --------------------------------------------------
102 |
103 | .thumbnail,
104 | .img-thumbnail {
105 | @include box-shadow(0 1px 2px rgba(0,0,0,.075));
106 | }
107 |
108 |
109 | //
110 | // Dropdowns
111 | // --------------------------------------------------
112 |
113 | .dropdown-menu > li > a:hover,
114 | .dropdown-menu > li > a:focus {
115 | @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
116 | background-color: darken($dropdown-link-hover-bg, 5%);
117 | }
118 | .dropdown-menu > .active > a,
119 | .dropdown-menu > .active > a:hover,
120 | .dropdown-menu > .active > a:focus {
121 | @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
122 | background-color: darken($dropdown-link-active-bg, 5%);
123 | }
124 |
125 |
126 | //
127 | // Navbar
128 | // --------------------------------------------------
129 |
130 | // Default navbar
131 | .navbar-default {
132 | @include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
133 | @include reset-filter; // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
134 | border-radius: $navbar-border-radius;
135 | $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
136 | @include box-shadow($shadow);
137 |
138 | .navbar-nav > .open > a,
139 | .navbar-nav > .active > a {
140 | @include gradient-vertical($start-color: darken($navbar-default-link-active-bg, 5%), $end-color: darken($navbar-default-link-active-bg, 2%));
141 | @include box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
142 | }
143 | }
144 | .navbar-brand,
145 | .navbar-nav > li > a {
146 | text-shadow: 0 1px 0 rgba(255,255,255,.25);
147 | }
148 |
149 | // Inverted navbar
150 | .navbar-inverse {
151 | @include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
152 | @include reset-filter; // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
153 | border-radius: $navbar-border-radius;
154 | .navbar-nav > .open > a,
155 | .navbar-nav > .active > a {
156 | @include gradient-vertical($start-color: $navbar-inverse-link-active-bg, $end-color: lighten($navbar-inverse-link-active-bg, 2.5%));
157 | @include box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
158 | }
159 |
160 | .navbar-brand,
161 | .navbar-nav > li > a {
162 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
163 | }
164 | }
165 |
166 | // Undo rounded corners in static and fixed navbars
167 | .navbar-static-top,
168 | .navbar-fixed-top,
169 | .navbar-fixed-bottom {
170 | border-radius: 0;
171 | }
172 |
173 | // Fix active state of dropdown items in collapsed mode
174 | @media (max-width: $grid-float-breakpoint-max) {
175 | .navbar .navbar-nav .open .dropdown-menu > .active > a {
176 | &,
177 | &:hover,
178 | &:focus {
179 | color: #fff;
180 | @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
181 | }
182 | }
183 | }
184 |
185 |
186 | //
187 | // Alerts
188 | // --------------------------------------------------
189 |
190 | // Common styles
191 | .alert {
192 | text-shadow: 0 1px 0 rgba(255,255,255,.2);
193 | $shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
194 | @include box-shadow($shadow);
195 | }
196 |
197 | // Mixin for generating new styles
198 | @mixin alert-styles($color) {
199 | @include gradient-vertical($start-color: $color, $end-color: darken($color, 7.5%));
200 | border-color: darken($color, 15%);
201 | }
202 |
203 | // Apply the mixin to the alerts
204 | .alert-success { @include alert-styles($alert-success-bg); }
205 | .alert-info { @include alert-styles($alert-info-bg); }
206 | .alert-warning { @include alert-styles($alert-warning-bg); }
207 | .alert-danger { @include alert-styles($alert-danger-bg); }
208 |
209 |
210 | //
211 | // Progress bars
212 | // --------------------------------------------------
213 |
214 | // Give the progress background some depth
215 | .progress {
216 | @include gradient-vertical($start-color: darken($progress-bg, 4%), $end-color: $progress-bg)
217 | }
218 |
219 | // Mixin for generating new styles
220 | @mixin progress-bar-styles($color) {
221 | @include gradient-vertical($start-color: $color, $end-color: darken($color, 10%));
222 | }
223 |
224 | // Apply the mixin to the progress bars
225 | .progress-bar { @include progress-bar-styles($progress-bar-bg); }
226 | .progress-bar-success { @include progress-bar-styles($progress-bar-success-bg); }
227 | .progress-bar-info { @include progress-bar-styles($progress-bar-info-bg); }
228 | .progress-bar-warning { @include progress-bar-styles($progress-bar-warning-bg); }
229 | .progress-bar-danger { @include progress-bar-styles($progress-bar-danger-bg); }
230 |
231 | // Reset the striped class because our mixins don't do multiple gradients and
232 | // the above custom styles override the new `.progress-bar-striped` in v3.2.0.
233 | .progress-bar-striped {
234 | @include gradient-striped;
235 | }
236 |
237 |
238 | //
239 | // List groups
240 | // --------------------------------------------------
241 |
242 | .list-group {
243 | border-radius: $border-radius-base;
244 | @include box-shadow(0 1px 2px rgba(0,0,0,.075));
245 | }
246 | .list-group-item.active,
247 | .list-group-item.active:hover,
248 | .list-group-item.active:focus {
249 | text-shadow: 0 -1px 0 darken($list-group-active-bg, 10%);
250 | @include gradient-vertical($start-color: $list-group-active-bg, $end-color: darken($list-group-active-bg, 7.5%));
251 | border-color: darken($list-group-active-border, 7.5%);
252 |
253 | .badge {
254 | text-shadow: none;
255 | }
256 | }
257 |
258 |
259 | //
260 | // Panels
261 | // --------------------------------------------------
262 |
263 | // Common styles
264 | .panel {
265 | @include box-shadow(0 1px 2px rgba(0,0,0,.05));
266 | }
267 |
268 | // Mixin for generating new styles
269 | @mixin panel-heading-styles($color) {
270 | @include gradient-vertical($start-color: $color, $end-color: darken($color, 5%));
271 | }
272 |
273 | // Apply the mixin to the panel headings only
274 | .panel-default > .panel-heading { @include panel-heading-styles($panel-default-heading-bg); }
275 | .panel-primary > .panel-heading { @include panel-heading-styles($panel-primary-heading-bg); }
276 | .panel-success > .panel-heading { @include panel-heading-styles($panel-success-heading-bg); }
277 | .panel-info > .panel-heading { @include panel-heading-styles($panel-info-heading-bg); }
278 | .panel-warning > .panel-heading { @include panel-heading-styles($panel-warning-heading-bg); }
279 | .panel-danger > .panel-heading { @include panel-heading-styles($panel-danger-heading-bg); }
280 |
281 |
282 | //
283 | // Wells
284 | // --------------------------------------------------
285 |
286 | .well {
287 | @include gradient-vertical($start-color: darken($well-bg, 5%), $end-color: $well-bg);
288 | border-color: darken($well-bg, 10%);
289 | $shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
290 | @include box-shadow($shadow);
291 | }
292 |
--------------------------------------------------------------------------------
/css/bootstrap/_navbar.scss:
--------------------------------------------------------------------------------
1 | //
2 | // Navbars
3 | // --------------------------------------------------
4 |
5 |
6 | // Wrapper and base class
7 | //
8 | // Provide a static navbar from which we expand to create full-width, fixed, and
9 | // other navbar variations.
10 |
11 | .navbar {
12 | position: relative;
13 | min-height: $navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
14 | margin-bottom: $navbar-margin-bottom;
15 | border: 1px solid transparent;
16 |
17 | // Prevent floats from breaking the navbar
18 | @include clearfix;
19 |
20 | @media (min-width: $grid-float-breakpoint) {
21 | border-radius: $navbar-border-radius;
22 | }
23 | }
24 |
25 |
26 | // Navbar heading
27 | //
28 | // Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
29 | // styling of responsive aspects.
30 |
31 | .navbar-header {
32 | @include clearfix;
33 |
34 | @media (min-width: $grid-float-breakpoint) {
35 | float: left;
36 | }
37 | }
38 |
39 |
40 | // Navbar collapse (body)
41 | //
42 | // Group your navbar content into this for easy collapsing and expanding across
43 | // various device sizes. By default, this content is collapsed when <768px, but
44 | // will expand past that for a horizontal display.
45 | //
46 | // To start (on mobile devices) the navbar links, forms, and buttons are stacked
47 | // vertically and include a `max-height` to overflow in case you have too much
48 | // content for the user's viewport.
49 |
50 | .navbar-collapse {
51 | overflow-x: visible;
52 | padding-right: $navbar-padding-horizontal;
53 | padding-left: $navbar-padding-horizontal;
54 | border-top: 1px solid transparent;
55 | box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
56 | @include clearfix;
57 | -webkit-overflow-scrolling: touch;
58 |
59 | &.in {
60 | overflow-y: auto;
61 | }
62 |
63 | @media (min-width: $grid-float-breakpoint) {
64 | width: auto;
65 | border-top: 0;
66 | box-shadow: none;
67 |
68 | &.collapse {
69 | display: block !important;
70 | height: auto !important;
71 | padding-bottom: 0; // Override default setting
72 | overflow: visible !important;
73 | }
74 |
75 | &.in {
76 | overflow-y: visible;
77 | }
78 |
79 | // Undo the collapse side padding for navbars with containers to ensure
80 | // alignment of right-aligned contents.
81 | .navbar-fixed-top &,
82 | .navbar-static-top &,
83 | .navbar-fixed-bottom & {
84 | padding-left: 0;
85 | padding-right: 0;
86 | }
87 | }
88 | }
89 |
90 | .navbar-fixed-top,
91 | .navbar-fixed-bottom {
92 | .navbar-collapse {
93 | max-height: $navbar-collapse-max-height;
94 |
95 | @media (max-device-width: $screen-xs-min) and (orientation: landscape) {
96 | max-height: 200px;
97 | }
98 | }
99 | }
100 |
101 |
102 | // Both navbar header and collapse
103 | //
104 | // When a container is present, change the behavior of the header and collapse.
105 |
106 | .container,
107 | .container-fluid {
108 | > .navbar-header,
109 | > .navbar-collapse {
110 | margin-right: -$navbar-padding-horizontal;
111 | margin-left: -$navbar-padding-horizontal;
112 |
113 | @media (min-width: $grid-float-breakpoint) {
114 | margin-right: 0;
115 | margin-left: 0;
116 | }
117 | }
118 | }
119 |
120 |
121 | //
122 | // Navbar alignment options
123 | //
124 | // Display the navbar across the entirety of the page or fixed it to the top or
125 | // bottom of the page.
126 |
127 | // Static top (unfixed, but 100% wide) navbar
128 | .navbar-static-top {
129 | z-index: $zindex-navbar;
130 | border-width: 0 0 1px;
131 |
132 | @media (min-width: $grid-float-breakpoint) {
133 | border-radius: 0;
134 | }
135 | }
136 |
137 | // Fix the top/bottom navbars when screen real estate supports it
138 | .navbar-fixed-top,
139 | .navbar-fixed-bottom {
140 | position: fixed;
141 | right: 0;
142 | left: 0;
143 | z-index: $zindex-navbar-fixed;
144 |
145 | // Undo the rounded corners
146 | @media (min-width: $grid-float-breakpoint) {
147 | border-radius: 0;
148 | }
149 | }
150 | .navbar-fixed-top {
151 | top: 0;
152 | border-width: 0 0 1px;
153 | }
154 | .navbar-fixed-bottom {
155 | bottom: 0;
156 | margin-bottom: 0; // override .navbar defaults
157 | border-width: 1px 0 0;
158 | }
159 |
160 |
161 | // Brand/project name
162 |
163 | .navbar-brand {
164 | float: left;
165 | padding: $navbar-padding-vertical $navbar-padding-horizontal;
166 | font-size: $font-size-large;
167 | line-height: $line-height-computed;
168 | height: $navbar-height;
169 |
170 | &:hover,
171 | &:focus {
172 | text-decoration: none;
173 | }
174 |
175 | > img {
176 | display: block;
177 | }
178 |
179 | @media (min-width: $grid-float-breakpoint) {
180 | .navbar > .container &,
181 | .navbar > .container-fluid & {
182 | margin-left: -$navbar-padding-horizontal;
183 | }
184 | }
185 | }
186 |
187 |
188 | // Navbar toggle
189 | //
190 | // Custom button for toggling the `.navbar-collapse`, powered by the collapse
191 | // JavaScript plugin.
192 |
193 | .navbar-toggle {
194 | position: relative;
195 | float: right;
196 | margin-right: $navbar-padding-horizontal;
197 | padding: 9px 10px;
198 | @include navbar-vertical-align(34px);
199 | background-color: transparent;
200 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
201 | border: 1px solid transparent;
202 | border-radius: $border-radius-base;
203 |
204 | // We remove the `outline` here, but later compensate by attaching `:hover`
205 | // styles to `:focus`.
206 | &:focus {
207 | outline: 0;
208 | }
209 |
210 | // Bars
211 | .icon-bar {
212 | display: block;
213 | width: 22px;
214 | height: 2px;
215 | border-radius: 1px;
216 | }
217 | .icon-bar + .icon-bar {
218 | margin-top: 4px;
219 | }
220 |
221 | @media (min-width: $grid-float-breakpoint) {
222 | display: none;
223 | }
224 | }
225 |
226 |
227 | // Navbar nav links
228 | //
229 | // Builds on top of the `.nav` components with its own modifier class to make
230 | // the nav the full height of the horizontal nav (above 768px).
231 |
232 | .navbar-nav {
233 | margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
234 |
235 | > li > a {
236 | padding-top: 10px;
237 | padding-bottom: 10px;
238 | line-height: $line-height-computed;
239 | }
240 |
241 | @media (max-width: $grid-float-breakpoint-max) {
242 | // Dropdowns get custom display when collapsed
243 | .open .dropdown-menu {
244 | position: static;
245 | float: none;
246 | width: auto;
247 | margin-top: 0;
248 | background-color: transparent;
249 | border: 0;
250 | box-shadow: none;
251 | > li > a,
252 | .dropdown-header {
253 | padding: 5px 15px 5px 25px;
254 | }
255 | > li > a {
256 | line-height: $line-height-computed;
257 | &:hover,
258 | &:focus {
259 | background-image: none;
260 | }
261 | }
262 | }
263 | }
264 |
265 | // Uncollapse the nav
266 | @media (min-width: $grid-float-breakpoint) {
267 | float: left;
268 | margin: 0;
269 |
270 | > li {
271 | float: left;
272 | > a {
273 | padding-top: $navbar-padding-vertical;
274 | padding-bottom: $navbar-padding-vertical;
275 | }
276 | }
277 | }
278 | }
279 |
280 |
281 | // Navbar form
282 | //
283 | // Extension of the `.form-inline` with some extra flavor for optimum display in
284 | // our navbars.
285 |
286 | .navbar-form {
287 | margin-left: -$navbar-padding-horizontal;
288 | margin-right: -$navbar-padding-horizontal;
289 | padding: 10px $navbar-padding-horizontal;
290 | border-top: 1px solid transparent;
291 | border-bottom: 1px solid transparent;
292 | $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
293 | @include box-shadow($shadow);
294 |
295 | // Mixin behavior for optimum display
296 | @include form-inline;
297 |
298 | .form-group {
299 | @media (max-width: $grid-float-breakpoint-max) {
300 | margin-bottom: 5px;
301 |
302 | &:last-child {
303 | margin-bottom: 0;
304 | }
305 | }
306 | }
307 |
308 | // Vertically center in expanded, horizontal navbar
309 | @include navbar-vertical-align($input-height-base);
310 |
311 | // Undo 100% width for pull classes
312 | @media (min-width: $grid-float-breakpoint) {
313 | width: auto;
314 | border: 0;
315 | margin-left: 0;
316 | margin-right: 0;
317 | padding-top: 0;
318 | padding-bottom: 0;
319 | @include box-shadow(none);
320 | }
321 | }
322 |
323 |
324 | // Dropdown menus
325 |
326 | // Menu position and menu carets
327 | .navbar-nav > li > .dropdown-menu {
328 | margin-top: 0;
329 | @include border-top-radius(0);
330 | }
331 | // Menu position and menu caret support for dropups via extra dropup class
332 | .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
333 | margin-bottom: 0;
334 | @include border-top-radius($navbar-border-radius);
335 | @include border-bottom-radius(0);
336 | }
337 |
338 |
339 | // Buttons in navbars
340 | //
341 | // Vertically center a button within a navbar (when *not* in a form).
342 |
343 | .navbar-btn {
344 | @include navbar-vertical-align($input-height-base);
345 |
346 | &.btn-sm {
347 | @include navbar-vertical-align($input-height-small);
348 | }
349 | &.btn-xs {
350 | @include navbar-vertical-align(22);
351 | }
352 | }
353 |
354 |
355 | // Text in navbars
356 | //
357 | // Add a class to make any element properly align itself vertically within the navbars.
358 |
359 | .navbar-text {
360 | @include navbar-vertical-align($line-height-computed);
361 |
362 | @media (min-width: $grid-float-breakpoint) {
363 | float: left;
364 | margin-left: $navbar-padding-horizontal;
365 | margin-right: $navbar-padding-horizontal;
366 | }
367 | }
368 |
369 |
370 | // Component alignment
371 | //
372 | // Repurpose the pull utilities as their own navbar utilities to avoid specificity
373 | // issues with parents and chaining. Only do this when the navbar is uncollapsed
374 | // though so that navbar contents properly stack and align in mobile.
375 | //
376 | // Declared after the navbar components to ensure more specificity on the margins.
377 |
378 | @media (min-width: $grid-float-breakpoint) {
379 | .navbar-left {
380 | float: left !important;
381 | }
382 | .navbar-right {
383 | float: right !important;
384 | margin-right: -$navbar-padding-horizontal;
385 |
386 | ~ .navbar-right {
387 | margin-right: 0;
388 | }
389 | }
390 | }
391 |
392 |
393 | // Alternate navbars
394 | // --------------------------------------------------
395 |
396 | // Default navbar
397 | .navbar-default {
398 | background-color: $navbar-default-bg;
399 | border-color: $navbar-default-border;
400 |
401 | .navbar-brand {
402 | color: $navbar-default-brand-color;
403 | &:hover,
404 | &:focus {
405 | color: $navbar-default-brand-hover-color;
406 | background-color: $navbar-default-brand-hover-bg;
407 | }
408 | }
409 |
410 | .navbar-text {
411 | color: $navbar-default-color;
412 | }
413 |
414 | .navbar-nav {
415 | > li > a {
416 | color: $navbar-default-link-color;
417 |
418 | &:hover,
419 | &:focus {
420 | color: $navbar-default-link-hover-color;
421 | background-color: $navbar-default-link-hover-bg;
422 | }
423 | }
424 | > .active > a {
425 | &,
426 | &:hover,
427 | &:focus {
428 | color: $navbar-default-link-active-color;
429 | background-color: $navbar-default-link-active-bg;
430 | }
431 | }
432 | > .disabled > a {
433 | &,
434 | &:hover,
435 | &:focus {
436 | color: $navbar-default-link-disabled-color;
437 | background-color: $navbar-default-link-disabled-bg;
438 | }
439 | }
440 | }
441 |
442 | .navbar-toggle {
443 | border-color: $navbar-default-toggle-border-color;
444 | &:hover,
445 | &:focus {
446 | background-color: $navbar-default-toggle-hover-bg;
447 | }
448 | .icon-bar {
449 | background-color: $navbar-default-toggle-icon-bar-bg;
450 | }
451 | }
452 |
453 | .navbar-collapse,
454 | .navbar-form {
455 | border-color: $navbar-default-border;
456 | }
457 |
458 | // Dropdown menu items
459 | .navbar-nav {
460 | // Remove background color from open dropdown
461 | > .open > a {
462 | &,
463 | &:hover,
464 | &:focus {
465 | background-color: $navbar-default-link-active-bg;
466 | color: $navbar-default-link-active-color;
467 | }
468 | }
469 |
470 | @media (max-width: $grid-float-breakpoint-max) {
471 | // Dropdowns get custom display when collapsed
472 | .open .dropdown-menu {
473 | > li > a {
474 | color: $navbar-default-link-color;
475 | &:hover,
476 | &:focus {
477 | color: $navbar-default-link-hover-color;
478 | background-color: $navbar-default-link-hover-bg;
479 | }
480 | }
481 | > .active > a {
482 | &,
483 | &:hover,
484 | &:focus {
485 | color: $navbar-default-link-active-color;
486 | background-color: $navbar-default-link-active-bg;
487 | }
488 | }
489 | > .disabled > a {
490 | &,
491 | &:hover,
492 | &:focus {
493 | color: $navbar-default-link-disabled-color;
494 | background-color: $navbar-default-link-disabled-bg;
495 | }
496 | }
497 | }
498 | }
499 | }
500 |
501 |
502 | // Links in navbars
503 | //
504 | // Add a class to ensure links outside the navbar nav are colored correctly.
505 |
506 | .navbar-link {
507 | color: $navbar-default-link-color;
508 | &:hover {
509 | color: $navbar-default-link-hover-color;
510 | }
511 | }
512 |
513 | .btn-link {
514 | color: $navbar-default-link-color;
515 | &:hover,
516 | &:focus {
517 | color: $navbar-default-link-hover-color;
518 | }
519 | &[disabled],
520 | fieldset[disabled] & {
521 | &:hover,
522 | &:focus {
523 | color: $navbar-default-link-disabled-color;
524 | }
525 | }
526 | }
527 | }
528 |
529 | // Inverse navbar
530 |
531 | .navbar-inverse {
532 | background-color: $navbar-inverse-bg;
533 | border-color: $navbar-inverse-border;
534 |
535 | .navbar-brand {
536 | color: $navbar-inverse-brand-color;
537 | &:hover,
538 | &:focus {
539 | color: $navbar-inverse-brand-hover-color;
540 | background-color: $navbar-inverse-brand-hover-bg;
541 | }
542 | }
543 |
544 | .navbar-text {
545 | color: $navbar-inverse-color;
546 | }
547 |
548 | .navbar-nav {
549 | > li > a {
550 | color: $navbar-inverse-link-color;
551 |
552 | &:hover,
553 | &:focus {
554 | color: $navbar-inverse-link-hover-color;
555 | background-color: $navbar-inverse-link-hover-bg;
556 | }
557 | }
558 | > .active > a {
559 | &,
560 | &:hover,
561 | &:focus {
562 | color: $navbar-inverse-link-active-color;
563 | background-color: $navbar-inverse-link-active-bg;
564 | }
565 | }
566 | > .disabled > a {
567 | &,
568 | &:hover,
569 | &:focus {
570 | color: $navbar-inverse-link-disabled-color;
571 | background-color: $navbar-inverse-link-disabled-bg;
572 | }
573 | }
574 | }
575 |
576 | // Darken the responsive nav toggle
577 | .navbar-toggle {
578 | border-color: $navbar-inverse-toggle-border-color;
579 | &:hover,
580 | &:focus {
581 | background-color: $navbar-inverse-toggle-hover-bg;
582 | }
583 | .icon-bar {
584 | background-color: $navbar-inverse-toggle-icon-bar-bg;
585 | }
586 | }
587 |
588 | .navbar-collapse,
589 | .navbar-form {
590 | border-color: darken($navbar-inverse-bg, 7%);
591 | }
592 |
593 | // Dropdowns
594 | .navbar-nav {
595 | > .open > a {
596 | &,
597 | &:hover,
598 | &:focus {
599 | background-color: $navbar-inverse-link-active-bg;
600 | color: $navbar-inverse-link-active-color;
601 | }
602 | }
603 |
604 | @media (max-width: $grid-float-breakpoint-max) {
605 | // Dropdowns get custom display
606 | .open .dropdown-menu {
607 | > .dropdown-header {
608 | border-color: $navbar-inverse-border;
609 | }
610 | .divider {
611 | background-color: $navbar-inverse-border;
612 | }
613 | > li > a {
614 | color: $navbar-inverse-link-color;
615 | &:hover,
616 | &:focus {
617 | color: $navbar-inverse-link-hover-color;
618 | background-color: $navbar-inverse-link-hover-bg;
619 | }
620 | }
621 | > .active > a {
622 | &,
623 | &:hover,
624 | &:focus {
625 | color: $navbar-inverse-link-active-color;
626 | background-color: $navbar-inverse-link-active-bg;
627 | }
628 | }
629 | > .disabled > a {
630 | &,
631 | &:hover,
632 | &:focus {
633 | color: $navbar-inverse-link-disabled-color;
634 | background-color: $navbar-inverse-link-disabled-bg;
635 | }
636 | }
637 | }
638 | }
639 | }
640 |
641 | .navbar-link {
642 | color: $navbar-inverse-link-color;
643 | &:hover {
644 | color: $navbar-inverse-link-hover-color;
645 | }
646 | }
647 |
648 | .btn-link {
649 | color: $navbar-inverse-link-color;
650 | &:hover,
651 | &:focus {
652 | color: $navbar-inverse-link-hover-color;
653 | }
654 | &[disabled],
655 | fieldset[disabled] & {
656 | &:hover,
657 | &:focus {
658 | color: $navbar-inverse-link-disabled-color;
659 | }
660 | }
661 | }
662 | }
663 |
--------------------------------------------------------------------------------