, or .
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 | .border-top-radius(@list-group-border-radius);
33 | }
34 | &:last-child {
35 | margin-bottom: 0;
36 | .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 | .list-group-item-variant(success; @state-success-bg; @state-success-text);
114 | .list-group-item-variant(info; @state-info-bg; @state-info-text);
115 | .list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
116 | .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 |
--------------------------------------------------------------------------------
/src/less/bootstrap/media.less:
--------------------------------------------------------------------------------
1 | .media {
2 | // Proper spacing between instances of .media
3 | margin-top: 15px;
4 |
5 | &:first-child {
6 | margin-top: 0;
7 | }
8 | }
9 |
10 | .media,
11 | .media-body {
12 | zoom: 1;
13 | overflow: hidden;
14 | }
15 |
16 | .media-body {
17 | width: 10000px;
18 | }
19 |
20 | .media-object {
21 | display: block;
22 |
23 | // Fix collapse in webkit from max-width: 100% and display: table-cell.
24 | &.img-thumbnail {
25 | max-width: none;
26 | }
27 | }
28 |
29 | .media-right,
30 | .media > .pull-right {
31 | padding-left: 10px;
32 | }
33 |
34 | .media-left,
35 | .media > .pull-left {
36 | padding-right: 10px;
37 | }
38 |
39 | .media-left,
40 | .media-right,
41 | .media-body {
42 | display: table-cell;
43 | vertical-align: top;
44 | }
45 |
46 | .media-middle {
47 | vertical-align: middle;
48 | }
49 |
50 | .media-bottom {
51 | vertical-align: bottom;
52 | }
53 |
54 | // Reset margins on headings for tighter default spacing
55 | .media-heading {
56 | margin-top: 0;
57 | margin-bottom: 5px;
58 | }
59 |
60 | // Media list variation
61 | //
62 | // Undo default ul/ol styles
63 | .media-list {
64 | padding-left: 0;
65 | list-style: none;
66 | }
67 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------------------------------
3 |
4 | // Utilities
5 | @import "mixins/hide-text.less";
6 | @import "mixins/opacity.less";
7 | @import "mixins/image.less";
8 | @import "mixins/labels.less";
9 | @import "mixins/reset-filter.less";
10 | @import "mixins/resize.less";
11 | @import "mixins/responsive-visibility.less";
12 | @import "mixins/size.less";
13 | @import "mixins/tab-focus.less";
14 | @import "mixins/reset-text.less";
15 | @import "mixins/text-emphasis.less";
16 | @import "mixins/text-overflow.less";
17 | @import "mixins/vendor-prefixes.less";
18 |
19 | // Components
20 | @import "mixins/alerts.less";
21 | @import "mixins/buttons.less";
22 | @import "mixins/panels.less";
23 | @import "mixins/pagination.less";
24 | @import "mixins/list-group.less";
25 | @import "mixins/nav-divider.less";
26 | @import "mixins/forms.less";
27 | @import "mixins/progress-bar.less";
28 | @import "mixins/table-row.less";
29 |
30 | // Skins
31 | @import "mixins/background-variant.less";
32 | @import "mixins/border-radius.less";
33 | @import "mixins/gradients.less";
34 |
35 | // Layout
36 | @import "mixins/clearfix.less";
37 | @import "mixins/center-block.less";
38 | @import "mixins/nav-vertical-align.less";
39 | @import "mixins/grid-framework.less";
40 | @import "mixins/grid.less";
41 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/alerts.less:
--------------------------------------------------------------------------------
1 | // Alerts
2 |
3 | .alert-variant(@background; @border; @text-color) {
4 | background-color: @background;
5 | border-color: @border;
6 | color: @text-color;
7 |
8 | hr {
9 | border-top-color: darken(@border, 5%);
10 | }
11 | .alert-link {
12 | color: darken(@text-color, 10%);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/background-variant.less:
--------------------------------------------------------------------------------
1 | // Contextual backgrounds
2 |
3 | .bg-variant(@color) {
4 | background-color: @color;
5 | a&:hover,
6 | a&:focus {
7 | background-color: darken(@color, 10%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/border-radius.less:
--------------------------------------------------------------------------------
1 | // Single side border-radius
2 |
3 | .border-top-radius(@radius) {
4 | border-top-right-radius: @radius;
5 | border-top-left-radius: @radius;
6 | }
7 | .border-right-radius(@radius) {
8 | border-bottom-right-radius: @radius;
9 | border-top-right-radius: @radius;
10 | }
11 | .border-bottom-radius(@radius) {
12 | border-bottom-right-radius: @radius;
13 | border-bottom-left-radius: @radius;
14 | }
15 | .border-left-radius(@radius) {
16 | border-bottom-left-radius: @radius;
17 | border-top-left-radius: @radius;
18 | }
19 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/buttons.less:
--------------------------------------------------------------------------------
1 | // Button variants
2 | //
3 | // Easily pump out default styles, as well as :hover, :focus, :active,
4 | // and disabled options for all buttons
5 |
6 | .button-variant(@color; @background; @border) {
7 | color: @color;
8 | background-color: @background;
9 | border-color: @border;
10 | transition: all ease 250ms;
11 |
12 | &:focus,
13 | &.focus {
14 | color: @color;
15 | background-color: darken(@background, 5%);
16 | border-color: darken(@border, 5%);
17 | transition: all ease 250ms;
18 | }
19 | &:hover {
20 | color: @color;
21 | background-color: darken(@background, 5%);
22 | border-color: darken(@border, 5%);
23 | transition: all ease 250ms;
24 | }
25 | &:active,
26 | &.active,
27 | .open > .dropdown-toggle& {
28 | color: @color;
29 | background-color: darken(@background, 5%);
30 | border-color: darken(@border, 5%);
31 | transition: all ease 250ms;
32 |
33 | &:hover,
34 | &:focus,
35 | &.focus {
36 | color: @color;
37 | background-color: darken(@background, 15%);
38 | border-color: darken(@border, 15%);
39 | transition: all ease 250ms;
40 | }
41 | }
42 | &:active,
43 | &.active,
44 | .open > .dropdown-toggle& {
45 | background-image: none;
46 | }
47 | &.disabled,
48 | &[disabled],
49 | fieldset[disabled] & {
50 | &,
51 | &:hover,
52 | &:focus,
53 | &.focus,
54 | &:active,
55 | &.active {
56 | background-color: @background;
57 | border-color: @border;
58 | }
59 | }
60 |
61 | .badge {
62 | color: @background;
63 | background-color: @color;
64 | }
65 | }
66 |
67 | // Button sizes
68 | .button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
69 | padding: @padding-vertical @padding-horizontal;
70 | font-size: @font-size;
71 | line-height: @line-height;
72 | border-radius: @border-radius;
73 | }
74 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/center-block.less:
--------------------------------------------------------------------------------
1 | // Center-align a block level element
2 |
3 | .center-block() {
4 | display: block;
5 | margin-left: auto;
6 | margin-right: auto;
7 | }
8 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/clearfix.less:
--------------------------------------------------------------------------------
1 | // Clearfix
2 | //
3 | // For modern browsers
4 | // 1. The space content is one way to avoid an Opera bug when the
5 | // contenteditable attribute is included anywhere else in the document.
6 | // Otherwise it causes space to appear at the top and bottom of elements
7 | // that are clearfixed.
8 | // 2. The use of `table` rather than `block` is only necessary if using
9 | // `:before` to contain the top-margins of child elements.
10 | //
11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12 |
13 | .clearfix() {
14 | &:before,
15 | &:after {
16 | content: " "; // 1
17 | display: table; // 2
18 | }
19 | &:after {
20 | clear: both;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/forms.less:
--------------------------------------------------------------------------------
1 | // Form validation states
2 | //
3 | // Used in forms.less to generate the form validation CSS for warnings, errors,
4 | // and successes.
5 |
6 | .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
7 | // Color the label and help text
8 | .help-block,
9 | .control-label,
10 | .radio,
11 | .checkbox,
12 | .radio-inline,
13 | .checkbox-inline,
14 | &.radio label,
15 | &.checkbox label,
16 | &.radio-inline label,
17 | &.checkbox-inline label {
18 | color: @text-color;
19 | }
20 | // Set the border and box shadow on specific inputs to match
21 | .form-control {
22 | border-color: @border-color;
23 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
24 | &:focus {
25 | border-color: darken(@border-color, 10%);
26 | @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
27 | .box-shadow(@shadow);
28 | }
29 | }
30 | // Set validation states also for addons
31 | .input-group-addon {
32 | color: @text-color;
33 | border-color: @border-color;
34 | background-color: @background-color;
35 | }
36 | // Optional feedback icon
37 | .form-control-feedback {
38 | color: @text-color;
39 | }
40 | }
41 |
42 |
43 | // Form control focus state
44 | //
45 | // Generate a customized focus state and for any input with the specified color,
46 | // which defaults to the `@input-border-focus` variable.
47 | //
48 | // We highly encourage you to not customize the default value, but instead use
49 | // this to tweak colors on an as-needed basis. This aesthetic change is based on
50 | // WebKit's default styles, but applicable to a wider range of browsers. Its
51 | // usability and accessibility should be taken into account with any change.
52 | //
53 | // Example usage: change the default blue border and shadow to white for better
54 | // contrast against a dark gray background.
55 | .form-control-focus(@color: @input-border-focus) {
56 | @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
57 | &:focus {
58 | border-color: @color;
59 | outline: 0;
60 | .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
61 | }
62 | }
63 |
64 | // Form control sizing
65 | //
66 | // Relative text size, padding, and border-radii changes for form controls. For
67 | // horizontal sizing, wrap controls in the predefined grid classes. ``
68 | // element gets special love because it's special, and that's a fact!
69 | .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
70 | height: @input-height;
71 | padding: @padding-vertical @padding-horizontal;
72 | font-size: @font-size;
73 | line-height: @line-height;
74 | border-radius: @border-radius;
75 |
76 | select& {
77 | height: @input-height;
78 | line-height: @input-height;
79 | }
80 |
81 | textarea&,
82 | select[multiple]& {
83 | height: auto;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/gradients.less:
--------------------------------------------------------------------------------
1 | // Gradients
2 |
3 | #gradient {
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 | .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: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // 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 | .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: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
27 | }
28 |
29 | .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 | .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: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
41 | }
42 | .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: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
48 | }
49 | .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 | .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 | }
60 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/grid-framework.less:
--------------------------------------------------------------------------------
1 | // Framework grid generation
2 | //
3 | // Used only by Bootstrap to generate the correct number of grid classes given
4 | // any value of `@grid-columns`.
5 |
6 | .make-grid-columns() {
7 | // Common styles for all sizes of grid columns, widths 1-12
8 | .col(@index) { // initial
9 | @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
10 | .col((@index + 1), @item);
11 | }
12 | .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
13 | @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
14 | .col((@index + 1), ~"@{list}, @{item}");
15 | }
16 | .col(@index, @list) when (@index > @grid-columns) { // terminal
17 | @{list} {
18 | position: relative;
19 | // Prevent columns from collapsing when empty
20 | min-height: 1px;
21 | // Inner gutter via padding
22 | padding-left: ceil((@grid-gutter-width / 2));
23 | padding-right: floor((@grid-gutter-width / 2));
24 | }
25 | }
26 | .col(1); // kickstart it
27 | }
28 |
29 | .float-grid-columns(@class) {
30 | .col(@index) { // initial
31 | @item: ~".col-@{class}-@{index}";
32 | .col((@index + 1), @item);
33 | }
34 | .col(@index, @list) when (@index =< @grid-columns) { // general
35 | @item: ~".col-@{class}-@{index}";
36 | .col((@index + 1), ~"@{list}, @{item}");
37 | }
38 | .col(@index, @list) when (@index > @grid-columns) { // terminal
39 | @{list} {
40 | float: left;
41 | }
42 | }
43 | .col(1); // kickstart it
44 | }
45 |
46 | .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
47 | .col-@{class}-@{index} {
48 | width: percentage((@index / @grid-columns));
49 | }
50 | }
51 | .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
52 | .col-@{class}-push-@{index} {
53 | left: percentage((@index / @grid-columns));
54 | }
55 | }
56 | .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
57 | .col-@{class}-push-0 {
58 | left: auto;
59 | }
60 | }
61 | .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
62 | .col-@{class}-pull-@{index} {
63 | right: percentage((@index / @grid-columns));
64 | }
65 | }
66 | .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
67 | .col-@{class}-pull-0 {
68 | right: auto;
69 | }
70 | }
71 | .calc-grid-column(@index, @class, @type) when (@type = offset) {
72 | .col-@{class}-offset-@{index} {
73 | margin-left: percentage((@index / @grid-columns));
74 | }
75 | }
76 |
77 | // Basic looping in LESS
78 | .loop-grid-columns(@index, @class, @type) when (@index >= 0) {
79 | .calc-grid-column(@index, @class, @type);
80 | // next iteration
81 | .loop-grid-columns((@index - 1), @class, @type);
82 | }
83 |
84 | // Create grid for specific class
85 | .make-grid(@class) {
86 | .float-grid-columns(@class);
87 | .loop-grid-columns(@grid-columns, @class, width);
88 | .loop-grid-columns(@grid-columns, @class, pull);
89 | .loop-grid-columns(@grid-columns, @class, push);
90 | .loop-grid-columns(@grid-columns, @class, offset);
91 | }
92 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/grid.less:
--------------------------------------------------------------------------------
1 | // Grid system
2 | //
3 | // Generate semantic grid columns with these mixins.
4 |
5 | // Centered container element
6 | .container-fixed(@gutter: @grid-gutter-width) {
7 | margin-right: auto;
8 | margin-left: auto;
9 | padding-left: (@gutter / 2);
10 | padding-right: (@gutter / 2);
11 | &:extend(.clearfix all);
12 | }
13 |
14 | // Creates a wrapper for a series of columns
15 | .make-row(@gutter: @grid-gutter-width) {
16 | margin-left: ceil((@gutter / -2));
17 | margin-right: floor((@gutter / -2));
18 | &:extend(.clearfix all);
19 | }
20 |
21 | // Generate the extra small columns
22 | .make-xs-column(@columns; @gutter: @grid-gutter-width) {
23 | position: relative;
24 | float: left;
25 | width: percentage((@columns / @grid-columns));
26 | min-height: 1px;
27 | padding-left: (@gutter / 2);
28 | padding-right: (@gutter / 2);
29 | }
30 | .make-xs-column-offset(@columns) {
31 | margin-left: percentage((@columns / @grid-columns));
32 | }
33 | .make-xs-column-push(@columns) {
34 | left: percentage((@columns / @grid-columns));
35 | }
36 | .make-xs-column-pull(@columns) {
37 | right: percentage((@columns / @grid-columns));
38 | }
39 |
40 | // Generate the small columns
41 | .make-sm-column(@columns; @gutter: @grid-gutter-width) {
42 | position: relative;
43 | min-height: 1px;
44 | padding-left: (@gutter / 2);
45 | padding-right: (@gutter / 2);
46 |
47 | @media (min-width: @screen-sm-min) {
48 | float: left;
49 | width: percentage((@columns / @grid-columns));
50 | }
51 | }
52 | .make-sm-column-offset(@columns) {
53 | @media (min-width: @screen-sm-min) {
54 | margin-left: percentage((@columns / @grid-columns));
55 | }
56 | }
57 | .make-sm-column-push(@columns) {
58 | @media (min-width: @screen-sm-min) {
59 | left: percentage((@columns / @grid-columns));
60 | }
61 | }
62 | .make-sm-column-pull(@columns) {
63 | @media (min-width: @screen-sm-min) {
64 | right: percentage((@columns / @grid-columns));
65 | }
66 | }
67 |
68 | // Generate the medium columns
69 | .make-md-column(@columns; @gutter: @grid-gutter-width) {
70 | position: relative;
71 | min-height: 1px;
72 | padding-left: (@gutter / 2);
73 | padding-right: (@gutter / 2);
74 |
75 | @media (min-width: @screen-md-min) {
76 | float: left;
77 | width: percentage((@columns / @grid-columns));
78 | }
79 | }
80 | .make-md-column-offset(@columns) {
81 | @media (min-width: @screen-md-min) {
82 | margin-left: percentage((@columns / @grid-columns));
83 | }
84 | }
85 | .make-md-column-push(@columns) {
86 | @media (min-width: @screen-md-min) {
87 | left: percentage((@columns / @grid-columns));
88 | }
89 | }
90 | .make-md-column-pull(@columns) {
91 | @media (min-width: @screen-md-min) {
92 | right: percentage((@columns / @grid-columns));
93 | }
94 | }
95 |
96 | // Generate the large columns
97 | .make-lg-column(@columns; @gutter: @grid-gutter-width) {
98 | position: relative;
99 | min-height: 1px;
100 | padding-left: (@gutter / 2);
101 | padding-right: (@gutter / 2);
102 |
103 | @media (min-width: @screen-lg-min) {
104 | float: left;
105 | width: percentage((@columns / @grid-columns));
106 | }
107 | }
108 | .make-lg-column-offset(@columns) {
109 | @media (min-width: @screen-lg-min) {
110 | margin-left: percentage((@columns / @grid-columns));
111 | }
112 | }
113 | .make-lg-column-push(@columns) {
114 | @media (min-width: @screen-lg-min) {
115 | left: percentage((@columns / @grid-columns));
116 | }
117 | }
118 | .make-lg-column-pull(@columns) {
119 | @media (min-width: @screen-lg-min) {
120 | right: percentage((@columns / @grid-columns));
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/hide-text.less:
--------------------------------------------------------------------------------
1 | // CSS image replacement
2 | //
3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for
4 | // mixins being reused as classes with the same name, this doesn't hold up. As
5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
6 | //
7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
8 |
9 | // Deprecated as of v3.0.1 (will be removed in v4)
10 | .hide-text() {
11 | font: ~"0/0" a;
12 | color: transparent;
13 | text-shadow: none;
14 | background-color: transparent;
15 | border: 0;
16 | }
17 |
18 | // New mixin to use as of v3.0.1
19 | .text-hide() {
20 | .hide-text();
21 | }
22 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/image.less:
--------------------------------------------------------------------------------
1 | // Image Mixins
2 | // - Responsive image
3 | // - Retina image
4 |
5 |
6 | // Responsive image
7 | //
8 | // Keep images from scaling beyond the width of their parents.
9 | .img-responsive(@display: block) {
10 | display: @display;
11 | max-width: 100%; // Part 1: Set a maximum relative to the parent
12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
13 | }
14 |
15 |
16 | // Retina image
17 | //
18 | // Short retina mixin for setting background-image and -size. Note that the
19 | // spelling of `min--moz-device-pixel-ratio` is intentional.
20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
21 | background-image: url("@{file-1x}");
22 |
23 | @media
24 | only screen and (-webkit-min-device-pixel-ratio: 2),
25 | only screen and ( min--moz-device-pixel-ratio: 2),
26 | only screen and ( -o-min-device-pixel-ratio: 2/1),
27 | only screen and ( min-device-pixel-ratio: 2),
28 | only screen and ( min-resolution: 192dpi),
29 | only screen and ( min-resolution: 2dppx) {
30 | background-image: url("@{file-2x}");
31 | background-size: @width-1x @height-1x;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/labels.less:
--------------------------------------------------------------------------------
1 | // Labels
2 |
3 | .label-variant(@color) {
4 | background-color: @color;
5 |
6 | &[href] {
7 | &:hover,
8 | &:focus {
9 | background-color: darken(@color, 10%);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/list-group.less:
--------------------------------------------------------------------------------
1 | // List Groups
2 |
3 | .list-group-item-variant(@state; @background; @color) {
4 | .list-group-item-@{state} {
5 | color: @color;
6 | background-color: @background;
7 |
8 | a&,
9 | button& {
10 | color: @color;
11 |
12 | .list-group-item-heading {
13 | color: inherit;
14 | }
15 |
16 | &:hover,
17 | &:focus {
18 | color: @color;
19 | background-color: darken(@background, 5%);
20 | }
21 | &.active,
22 | &.active:hover,
23 | &.active:focus {
24 | color: #fff;
25 | background-color: @color;
26 | border-color: @color;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/nav-divider.less:
--------------------------------------------------------------------------------
1 | // Horizontal dividers
2 | //
3 | // Dividers (basically an hr) within dropdowns and nav lists
4 |
5 | .nav-divider(@color: #e5e5e5) {
6 | height: 1px;
7 | margin: 2px 0;
8 | overflow: hidden;
9 | background-color: @color;
10 | }
11 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/nav-vertical-align.less:
--------------------------------------------------------------------------------
1 | // Navbar vertical align
2 | //
3 | // Vertically center elements in the navbar.
4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
5 |
6 | .navbar-vertical-align(@element-height) {
7 | margin-top: ((@navbar-height - @element-height) / 2);
8 | margin-bottom: ((@navbar-height - @element-height) / 2);
9 | }
10 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/opacity.less:
--------------------------------------------------------------------------------
1 | // Opacity
2 |
3 | .opacity(@opacity) {
4 | opacity: @opacity;
5 | // IE8 filter
6 | @opacity-ie: (@opacity * 100);
7 | filter: ~"alpha(opacity=@{opacity-ie})";
8 | }
9 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/pagination.less:
--------------------------------------------------------------------------------
1 | // Pagination
2 |
3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
4 | > li {
5 | > a,
6 | > span {
7 | padding: @padding-vertical @padding-horizontal;
8 | font-size: @font-size;
9 | line-height: @line-height;
10 | }
11 | &:first-child {
12 | > a,
13 | > span {
14 | .border-left-radius(@border-radius);
15 | }
16 | }
17 | &:last-child {
18 | > a,
19 | > span {
20 | .border-right-radius(@border-radius);
21 | }
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/panels.less:
--------------------------------------------------------------------------------
1 | // Panels
2 |
3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
4 | border-color: @border;
5 |
6 | & > .panel-heading {
7 | color: @heading-text-color;
8 | background-color: @heading-bg-color;
9 | border-color: @heading-border;
10 |
11 | + .panel-collapse > .panel-body {
12 | border-top-color: @border;
13 | }
14 | .badge {
15 | color: @heading-bg-color;
16 | background-color: @heading-text-color;
17 | }
18 | }
19 | & > .panel-footer {
20 | + .panel-collapse > .panel-body {
21 | border-bottom-color: @border;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/progress-bar.less:
--------------------------------------------------------------------------------
1 | // Progress bars
2 |
3 | .progress-bar-variant(@color) {
4 | background-color: @color;
5 |
6 | // Deprecated parent class requirement as of v3.2.0
7 | .progress-striped & {
8 | #gradient > .striped();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/reset-filter.less:
--------------------------------------------------------------------------------
1 | // Reset filters for IE
2 | //
3 | // When you need to remove a gradient background, do not forget to use this to reset
4 | // the IE filter for IE9 and below.
5 |
6 | .reset-filter() {
7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
8 | }
9 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/reset-text.less:
--------------------------------------------------------------------------------
1 | .reset-text() {
2 | font-family: @font-family-base;
3 | // We deliberately do NOT reset font-size.
4 | font-style: normal;
5 | font-weight: normal;
6 | letter-spacing: normal;
7 | line-break: auto;
8 | line-height: @line-height-base;
9 | text-align: left; // Fallback for where `start` is not supported
10 | text-align: start;
11 | text-decoration: none;
12 | text-shadow: none;
13 | text-transform: none;
14 | white-space: normal;
15 | word-break: normal;
16 | word-spacing: normal;
17 | word-wrap: normal;
18 | }
19 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/resize.less:
--------------------------------------------------------------------------------
1 | // Resize anything
2 |
3 | .resizable(@direction) {
4 | resize: @direction; // Options: horizontal, vertical, both
5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
6 | }
7 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/responsive-visibility.less:
--------------------------------------------------------------------------------
1 | // Responsive utilities
2 |
3 | //
4 | // More easily include all the states for responsive-utilities.less.
5 | .responsive-visibility() {
6 | display: block !important;
7 | table& { display: table !important; }
8 | tr& { display: table-row !important; }
9 | th&,
10 | td& { display: table-cell !important; }
11 | }
12 |
13 | .responsive-invisibility() {
14 | display: none !important;
15 | }
16 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/size.less:
--------------------------------------------------------------------------------
1 | // Sizing shortcuts
2 |
3 | .size(@width; @height) {
4 | width: @width;
5 | height: @height;
6 | }
7 |
8 | .square(@size) {
9 | .size(@size; @size);
10 | }
11 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/tab-focus.less:
--------------------------------------------------------------------------------
1 | // WebKit-style focus
2 |
3 | .tab-focus() {
4 | // Default
5 | outline: thin dotted;
6 | // WebKit
7 | outline: 5px auto -webkit-focus-ring-color;
8 | outline-offset: -2px;
9 | }
10 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/table-row.less:
--------------------------------------------------------------------------------
1 | // Tables
2 |
3 | .table-row-variant(@state; @background) {
4 | // Exact selectors below required to override `.table-striped` and prevent
5 | // inheritance to nested tables.
6 | .table > thead > tr,
7 | .table > tbody > tr,
8 | .table > tfoot > tr {
9 | > td.@{state},
10 | > th.@{state},
11 | &.@{state} > td,
12 | &.@{state} > th {
13 | background-color: @background;
14 | }
15 | }
16 |
17 | // Hover states for `.table-hover`
18 | // Note: this is not available for cells or rows within `thead` or `tfoot`.
19 | .table-hover > tbody > tr {
20 | > td.@{state}:hover,
21 | > th.@{state}:hover,
22 | &.@{state}:hover > td,
23 | &:hover > .@{state},
24 | &.@{state}:hover > th {
25 | background-color: darken(@background, 5%);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/text-emphasis.less:
--------------------------------------------------------------------------------
1 | // Typography
2 |
3 | .text-emphasis-variant(@color) {
4 | color: @color;
5 | a&:hover,
6 | a&:focus {
7 | color: darken(@color, 5%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/text-overflow.less:
--------------------------------------------------------------------------------
1 | // Text overflow
2 | // Requires inline-block or block for proper styling
3 |
4 | .text-overflow() {
5 | overflow: hidden;
6 | text-overflow: ellipsis;
7 | white-space: nowrap;
8 | }
9 |
--------------------------------------------------------------------------------
/src/less/bootstrap/mixins/vendor-prefixes.less:
--------------------------------------------------------------------------------
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 will be 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 | .animation(@animation) {
20 | -webkit-animation: @animation;
21 | -o-animation: @animation;
22 | animation: @animation;
23 | }
24 | .animation-name(@name) {
25 | -webkit-animation-name: @name;
26 | animation-name: @name;
27 | }
28 | .animation-duration(@duration) {
29 | -webkit-animation-duration: @duration;
30 | animation-duration: @duration;
31 | }
32 | .animation-timing-function(@timing-function) {
33 | -webkit-animation-timing-function: @timing-function;
34 | animation-timing-function: @timing-function;
35 | }
36 | .animation-delay(@delay) {
37 | -webkit-animation-delay: @delay;
38 | animation-delay: @delay;
39 | }
40 | .animation-iteration-count(@iteration-count) {
41 | -webkit-animation-iteration-count: @iteration-count;
42 | animation-iteration-count: @iteration-count;
43 | }
44 | .animation-direction(@direction) {
45 | -webkit-animation-direction: @direction;
46 | animation-direction: @direction;
47 | }
48 | .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 | .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 | .box-shadow(@shadow) {
69 | -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
70 | box-shadow: @shadow;
71 | }
72 |
73 | // Box sizing
74 | .box-sizing(@boxmodel) {
75 | -webkit-box-sizing: @boxmodel;
76 | -moz-box-sizing: @boxmodel;
77 | box-sizing: @boxmodel;
78 | }
79 |
80 | // CSS3 Content Columns
81 | .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 | .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 | .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 | .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 | .scale(@ratioX; @ratioY) {
119 | -webkit-transform: scale(@ratioX, @ratioY);
120 | -ms-transform: scale(@ratioX, @ratioY); // IE9 only
121 | -o-transform: scale(@ratioX, @ratioY);
122 | transform: scale(@ratioX, @ratioY);
123 | }
124 | .scaleX(@ratio) {
125 | -webkit-transform: scaleX(@ratio);
126 | -ms-transform: scaleX(@ratio); // IE9 only
127 | -o-transform: scaleX(@ratio);
128 | transform: scaleX(@ratio);
129 | }
130 | .scaleY(@ratio) {
131 | -webkit-transform: scaleY(@ratio);
132 | -ms-transform: scaleY(@ratio); // IE9 only
133 | -o-transform: scaleY(@ratio);
134 | transform: scaleY(@ratio);
135 | }
136 | .skew(@x; @y) {
137 | -webkit-transform: skewX(@x) skewY(@y);
138 | -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
139 | -o-transform: skewX(@x) skewY(@y);
140 | transform: skewX(@x) skewY(@y);
141 | }
142 | .translate(@x; @y) {
143 | -webkit-transform: translate(@x, @y);
144 | -ms-transform: translate(@x, @y); // IE9 only
145 | -o-transform: translate(@x, @y);
146 | transform: translate(@x, @y);
147 | }
148 | .translate3d(@x; @y; @z) {
149 | -webkit-transform: translate3d(@x, @y, @z);
150 | transform: translate3d(@x, @y, @z);
151 | }
152 | .rotate(@degrees) {
153 | -webkit-transform: rotate(@degrees);
154 | -ms-transform: rotate(@degrees); // IE9 only
155 | -o-transform: rotate(@degrees);
156 | transform: rotate(@degrees);
157 | }
158 | .rotateX(@degrees) {
159 | -webkit-transform: rotateX(@degrees);
160 | -ms-transform: rotateX(@degrees); // IE9 only
161 | -o-transform: rotateX(@degrees);
162 | transform: rotateX(@degrees);
163 | }
164 | .rotateY(@degrees) {
165 | -webkit-transform: rotateY(@degrees);
166 | -ms-transform: rotateY(@degrees); // IE9 only
167 | -o-transform: rotateY(@degrees);
168 | transform: rotateY(@degrees);
169 | }
170 | .perspective(@perspective) {
171 | -webkit-perspective: @perspective;
172 | -moz-perspective: @perspective;
173 | perspective: @perspective;
174 | }
175 | .perspective-origin(@perspective) {
176 | -webkit-perspective-origin: @perspective;
177 | -moz-perspective-origin: @perspective;
178 | perspective-origin: @perspective;
179 | }
180 | .transform-origin(@origin) {
181 | -webkit-transform-origin: @origin;
182 | -moz-transform-origin: @origin;
183 | -ms-transform-origin: @origin; // IE9 only
184 | transform-origin: @origin;
185 | }
186 |
187 |
188 | // Transitions
189 |
190 | .transition(@transition) {
191 | -webkit-transition: @transition;
192 | -o-transition: @transition;
193 | transition: @transition;
194 | }
195 | .transition-property(@transition-property) {
196 | -webkit-transition-property: @transition-property;
197 | transition-property: @transition-property;
198 | }
199 | .transition-delay(@transition-delay) {
200 | -webkit-transition-delay: @transition-delay;
201 | transition-delay: @transition-delay;
202 | }
203 | .transition-duration(@transition-duration) {
204 | -webkit-transition-duration: @transition-duration;
205 | transition-duration: @transition-duration;
206 | }
207 | .transition-timing-function(@timing-function) {
208 | -webkit-transition-timing-function: @timing-function;
209 | transition-timing-function: @timing-function;
210 | }
211 | .transition-transform(@transition) {
212 | -webkit-transition: -webkit-transform @transition;
213 | -moz-transition: -moz-transform @transition;
214 | -o-transition: -o-transform @transition;
215 | transition: transform @transition;
216 | }
217 |
218 |
219 | // User select
220 | // For selecting text on the page
221 |
222 | .user-select(@select) {
223 | -webkit-user-select: @select;
224 | -moz-user-select: @select;
225 | -ms-user-select: @select; // IE10+
226 | user-select: @select;
227 | }
228 |
--------------------------------------------------------------------------------
/src/less/bootstrap/modals.less:
--------------------------------------------------------------------------------
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 | /* uncss:ignore */
12 | .modal-open {
13 | overflow: hidden;
14 | }
15 |
16 | // Container that the modal scrolls within
17 | /* uncss:ignore */
18 | .modal {
19 | display: none;
20 | overflow: hidden;
21 | position: fixed;
22 | top: 0;
23 | right: 0;
24 | bottom: 0;
25 | left: 0;
26 | z-index: @zindex-modal;
27 | -webkit-overflow-scrolling: touch;
28 | outline: 0;
29 | }
30 | /* uncss:ignore */
31 | .modal.fade .modal-dialog {
32 | .translate(0, -25%);
33 | .transition-transform(~"0.3s ease-out");
34 | }
35 | /* uncss:ignore */
36 | .modal.in .modal-dialog { .translate(0, 0) }
37 |
38 | /* uncss:ignore */
39 | .modal-open .modal {
40 | overflow-x: hidden;
41 | overflow-y: auto;
42 | }
43 |
44 | /* uncss:ignore */
45 | .modal-dialog {
46 | position: relative;
47 | width: auto;
48 | margin: 10px;
49 | }
50 |
51 | /* uncss:ignore */
52 | .modal-content {
53 | position: relative;
54 | background-color: @modal-content-bg;
55 | border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
56 | border: 1px solid @modal-content-border-color;
57 | border-radius: @border-radius-large;
58 | .box-shadow(0 3px 9px rgba(0,0,0,.5));
59 | background-clip: padding-box;
60 | outline: 0;
61 | }
62 |
63 | /* uncss:ignore */
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 | }
73 | /* uncss:ignore */
74 | .modal-backdrop.fade { .opacity(0); }
75 | /* uncss:ignore */
76 | .modal-backdrop.in { .opacity(@modal-backdrop-opacity); }
77 |
78 | // Modal header
79 | // Top section of the modal w/ title and dismiss
80 | .modal-header {
81 | padding: @modal-title-padding;
82 | min-height: (@modal-title-padding + @modal-title-line-height);
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 | &.larger {
101 | font-size: 20px;
102 | .table > tbody > tr > td {
103 | vertical-align: middle;
104 | }
105 | #addressIdenticon {
106 | margin: auto;
107 | }
108 | }
109 | }
110 |
111 | // Footer (for actions)
112 | .modal-footer {
113 | padding: @modal-inner-padding;
114 | text-align: right; // right align buttons
115 | border-top: 1px solid @modal-footer-border-color;
116 | &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
117 |
118 | // Properly space out buttons
119 | .btn + .btn {
120 | margin-left: 5px;
121 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
122 | }
123 | // but override that for button groups
124 | .btn-group .btn + .btn {
125 | margin-left: -1px;
126 | }
127 | // and override it for block buttons as well
128 | .btn-block + .btn-block {
129 | margin-left: 0;
130 | }
131 | }
132 |
133 | // Measure scrollbar width for padding body during modal show/hide
134 | .modal-scrollbar-measure {
135 | position: absolute;
136 | top: -9999px;
137 | width: 50px;
138 | height: 50px;
139 | overflow: scroll;
140 | }
141 |
142 | // Scale up the modal
143 | @media (min-width: @screen-sm-min) {
144 | // Automatically set modal's width for larger viewports
145 | .modal-dialog {
146 | width: 800px;
147 | margin: 30px auto;
148 | }
149 |
150 | .modal-content {
151 | .box-shadow(0 5px 15px rgba(0,0,0,.5));
152 | }
153 |
154 | // Modal sizes
155 | .modal-sm { width: @modal-sm; }
156 | }
157 |
158 | @media (min-width: @screen-md-min) {
159 | .modal-lg { width: @modal-lg; }
160 | }
161 |
--------------------------------------------------------------------------------
/src/less/bootstrap/navs.less:
--------------------------------------------------------------------------------
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 | &:extend(.clearfix all);
14 | ul& {
15 | margin-top: 0;
16 | }
17 | > li {
18 | position: relative;
19 | display: block;
20 |
21 | > a {
22 | position: relative;
23 | display: block;
24 | padding: @nav-link-padding;
25 | &:hover,
26 | &:focus {
27 | text-decoration: none;
28 | background-color: @nav-link-hover-bg;
29 | }
30 | }
31 |
32 | // Disabled state sets text to gray and nukes hover/tab effects
33 | &.disabled > a {
34 | color: @nav-disabled-link-color;
35 |
36 | &:hover,
37 | &:focus {
38 | color: @nav-disabled-link-hover-color;
39 | text-decoration: none;
40 | background-color: transparent;
41 | cursor: @cursor-disabled;
42 | }
43 | }
44 | }
45 |
46 | // Open dropdowns
47 | .open > a {
48 | &,
49 | &:hover,
50 | &:focus {
51 | background-color: @nav-link-hover-bg;
52 | border-color: @link-color;
53 | }
54 | }
55 |
56 | // Nav dividers (deprecated with v3.0.1)
57 | //
58 | // This should have been removed in v3 with the dropping of `.nav-list`, but
59 | // we missed it. We don't currently support this anywhere, but in the interest
60 | // of maintaining backward compatibility in case you use it, it's deprecated.
61 | .nav-divider {
62 | .nav-divider();
63 | }
64 |
65 | // Prevent IE8 from misplacing imgs
66 | //
67 | // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
68 | > li > a > img {
69 | max-width: none;
70 | }
71 | }
72 |
73 |
74 | // Tabs
75 | // -------------------------
76 |
77 | // Give the tabs something to sit on
78 | .nav-tabs {
79 | padding-top: 5px;
80 | margin: 0 -15px;
81 | border-bottom: 2px solid @gray-lighter;
82 | > li {
83 | float: left;
84 | margin-bottom: -2px;
85 | > a {
86 | line-height: @line-height-base;
87 | border-radius: 0;
88 | color: darken(@link-color, 15%);
89 | &:after {
90 | content: "";
91 | background: @brand-primary;
92 | height: 2px;
93 | position: absolute;
94 | width: 100%; left: 0px;
95 | bottom: -2px;
96 | transition: all 250ms ease 0s;
97 | transform: scale(0);
98 | }
99 | &:hover,
100 | &:focus {
101 | color: @brand-primary;
102 | transition: all 250ms ease 0s;
103 | &:after {
104 | transform: scale(1);
105 | }
106 | }
107 | }
108 |
109 | &.active > a {
110 | &,
111 | &:hover,
112 | &:focus {
113 | color: @nav-tabs-active-link-hover-color;
114 | cursor: default;
115 | border-bottom: 2px solid @brand-primary;
116 | }
117 | }
118 | }
119 |
120 | // pulling this in mainly for less shorthand
121 | &.nav-justified {
122 | .nav-justified();
123 | .nav-tabs-justified();
124 | }
125 |
126 | @media screen and (max-width: 888px) {
127 | > li {
128 | display: block;
129 | float: left;
130 | text-align: center;
131 | width: 33%;
132 | padding: 0 5px;
133 | font-size: 13px;
134 | height: 40px;
135 | > a {
136 | border-bottom: 1px solid @gray-lighter;
137 | padding: 19px 0;
138 | line-height: 0;
139 | }
140 | }
141 | }
142 | }
143 |
144 |
145 | // Pills
146 | // -------------------------
147 | .nav-pills {
148 | > li {
149 | float: left;
150 |
151 | // Links rendered as pills
152 | > a {
153 | border-radius: @nav-pills-border-radius;
154 | }
155 | + li {
156 | margin-left: 2px;
157 | }
158 |
159 | // Active state
160 | &.active > a {
161 | &,
162 | &:hover,
163 | &:focus {
164 | color: @nav-pills-active-link-hover-color;
165 | background-color: @nav-pills-active-link-hover-bg;
166 | }
167 | }
168 | }
169 | }
170 |
171 |
172 | // Stacked pills
173 | .nav-stacked {
174 | > li {
175 | float: none;
176 | + li {
177 | margin-top: 2px;
178 | margin-left: 0; // no need for this gap between nav items
179 | }
180 | }
181 | }
182 |
183 |
184 | // Nav variations
185 | // --------------------------------------------------
186 |
187 | // Justified nav links
188 | // -------------------------
189 |
190 | .nav-justified {
191 | width: 100%;
192 |
193 | > li {
194 | float: none;
195 | > a {
196 | text-align: center;
197 | margin-bottom: 5px;
198 | }
199 | }
200 |
201 | > .dropdown .dropdown-menu {
202 | top: auto;
203 | left: auto;
204 | }
205 |
206 | @media (min-width: @screen-sm-min) {
207 | > li {
208 | display: table-cell;
209 | width: 1%;
210 | > a {
211 | margin-bottom: 0;
212 | }
213 | }
214 | }
215 | }
216 |
217 | // Move borders to anchors instead of bottom of list
218 | //
219 | // Mixin for adding on top the shared `.nav-justified` styles for our tabs
220 | .nav-tabs-justified {
221 | border-bottom: 0;
222 |
223 | > li > a {
224 | // Override margin from .nav-tabs
225 | margin-right: 0;
226 | border-radius: @border-radius-base;
227 | }
228 |
229 | > .active > a,
230 | > .active > a:hover,
231 | > .active > a:focus {
232 | border: 1px solid @nav-tabs-justified-link-border-color;
233 | }
234 |
235 | @media (min-width: @screen-sm-min) {
236 | > li > a {
237 | border-bottom: 1px solid @nav-tabs-justified-link-border-color;
238 | border-radius: @border-radius-base @border-radius-base 0 0;
239 | }
240 | > .active > a,
241 | > .active > a:hover,
242 | > .active > a:focus {
243 | border-bottom-color: @nav-tabs-justified-active-link-border-color;
244 | }
245 | }
246 | }
247 |
248 |
249 | // Tabbable tabs
250 | // -------------------------
251 |
252 | // Hide tabbable panes to start, show them when `.active`
253 | .tab-content {
254 | > .tab-pane {
255 | display: none;
256 | }
257 | > .active {
258 | display: block;
259 | }
260 | }
261 |
262 |
263 | // Dropdowns
264 | // -------------------------
265 |
266 | // Specific dropdowns
267 | .nav-tabs .dropdown-menu {
268 | // make dropdown border overlap tab border
269 | margin-top: -1px;
270 | // Remove the top rounded corners here since there is a hard edge above the menu
271 | .border-top-radius(0);
272 | }
273 |
--------------------------------------------------------------------------------
/src/less/bootstrap/normalize.less:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/src/less/bootstrap/pager.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pager pagination
3 | // --------------------------------------------------
4 |
5 |
6 | .pager {
7 | padding-left: 0;
8 | margin: @line-height-computed 0;
9 | list-style: none;
10 | text-align: center;
11 | &:extend(.clearfix all);
12 | li {
13 | display: inline;
14 | > a,
15 | > span {
16 | display: inline-block;
17 | padding: 5px 14px;
18 | background-color: @pager-bg;
19 | border: 1px solid @pager-border;
20 | border-radius: @pager-border-radius;
21 | }
22 |
23 | > a:hover,
24 | > a:focus {
25 | text-decoration: none;
26 | background-color: @pager-hover-bg;
27 | }
28 | }
29 |
30 | .next {
31 | > a,
32 | > span {
33 | float: right;
34 | }
35 | }
36 |
37 | .previous {
38 | > a,
39 | > span {
40 | float: left;
41 | }
42 | }
43 |
44 | .disabled {
45 | > a,
46 | > a:hover,
47 | > a:focus,
48 | > span {
49 | color: @pager-disabled-color;
50 | background-color: @pager-bg;
51 | cursor: @cursor-disabled;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/less/bootstrap/pagination.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pagination (multiple pages)
3 | // --------------------------------------------------
4 | .pagination {
5 | display: inline-block;
6 | padding-left: 0;
7 | margin: @line-height-computed 0;
8 | border-radius: @border-radius-base;
9 |
10 | > li {
11 | display: inline; // Remove list-style and block-level defaults
12 | > a,
13 | > span {
14 | position: relative;
15 | float: left; // Collapse white-space
16 | padding: @padding-base-vertical @padding-base-horizontal;
17 | line-height: @line-height-base;
18 | text-decoration: none;
19 | color: @pagination-color;
20 | background-color: @pagination-bg;
21 | border: 1px solid @pagination-border;
22 | margin-left: -1px;
23 | }
24 | &:first-child {
25 | > a,
26 | > span {
27 | margin-left: 0;
28 | .border-left-radius(@border-radius-base);
29 | }
30 | }
31 | &:last-child {
32 | > a,
33 | > span {
34 | .border-right-radius(@border-radius-base);
35 | }
36 | }
37 | }
38 |
39 | > li > a,
40 | > li > span {
41 | &:hover,
42 | &:focus {
43 | z-index: 3;
44 | color: @pagination-hover-color;
45 | background-color: @pagination-hover-bg;
46 | border-color: @pagination-hover-border;
47 | }
48 | }
49 |
50 | > .active > a,
51 | > .active > span {
52 | &,
53 | &:hover,
54 | &:focus {
55 | z-index: 2;
56 | color: @pagination-active-color;
57 | background-color: @pagination-active-bg;
58 | border-color: @pagination-active-border;
59 | cursor: default;
60 | }
61 | }
62 |
63 | > .disabled {
64 | > span,
65 | > span:hover,
66 | > span:focus,
67 | > a,
68 | > a:hover,
69 | > a:focus {
70 | color: @pagination-disabled-color;
71 | background-color: @pagination-disabled-bg;
72 | border-color: @pagination-disabled-border;
73 | cursor: @cursor-disabled;
74 | }
75 | }
76 | }
77 |
78 | // Sizing
79 | // --------------------------------------------------
80 |
81 | // Large
82 | .pagination-lg {
83 | .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
84 | }
85 |
86 | // Small
87 | .pagination-sm {
88 | .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
89 | }
90 |
--------------------------------------------------------------------------------
/src/less/bootstrap/panels.less:
--------------------------------------------------------------------------------
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 | .box-shadow(0 1px 1px rgba(0,0,0,.05));
13 | }
14 |
15 | // Panel contents
16 | .panel-body {
17 | padding: @panel-body-padding;
18 | &:extend(.clearfix all);
19 | }
20 |
21 | // Optional heading
22 | .panel-heading {
23 | padding: @panel-heading-padding;
24 | border-bottom: 1px solid transparent;
25 | .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 | .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 | .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 | .border-bottom-radius((@panel-border-radius - 1));
85 | }
86 | }
87 | }
88 | > .panel-heading + .panel-collapse > .list-group {
89 | .list-group-item:first-child {
90 | .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 | .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 | .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 | .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
256 | }
257 | .panel-primary {
258 | .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
259 | }
260 | .panel-success {
261 | .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
262 | }
263 | .panel-info {
264 | .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
265 | }
266 | .panel-warning {
267 | .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
268 | }
269 | .panel-danger {
270 | .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
271 | }
272 |
--------------------------------------------------------------------------------
/src/less/bootstrap/popovers.less:
--------------------------------------------------------------------------------
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 | .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 | .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 |
--------------------------------------------------------------------------------
/src/less/bootstrap/print.less:
--------------------------------------------------------------------------------
1 | /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
2 |
3 | // ==========================================================================
4 | // Print styles.
5 | // Inlined to avoid the additional HTTP request: h5bp.com/r
6 | // ==========================================================================
7 |
8 | @media print {
9 | *,
10 | *:before,
11 | *:after {
12 | background: transparent !important;
13 | color: #000 !important; // Black prints faster: h5bp.com/s
14 | box-shadow: none !important;
15 | text-shadow: none !important;
16 | }
17 |
18 | a,
19 | a:visited {
20 | text-decoration: underline;
21 | }
22 |
23 | a[href]:after {
24 | content: " (" attr(href) ")";
25 | }
26 |
27 | abbr[title]:after {
28 | content: " (" attr(title) ")";
29 | }
30 |
31 | // Don't show links that are fragment identifiers,
32 | // or use the `javascript:` pseudo protocol
33 | a[href^="#"]:after,
34 | a[href^="javascript:"]:after {
35 | content: "";
36 | }
37 |
38 | pre,
39 | blockquote {
40 | border: 1px solid #999;
41 | page-break-inside: avoid;
42 | }
43 |
44 | thead {
45 | display: table-header-group; // h5bp.com/t
46 | }
47 |
48 | tr,
49 | img {
50 | page-break-inside: avoid;
51 | }
52 |
53 | img {
54 | max-width: 100% !important;
55 | }
56 |
57 | p,
58 | h2,
59 | h3 {
60 | orphans: 3;
61 | widows: 3;
62 | }
63 |
64 | h2,
65 | h3 {
66 | page-break-after: avoid;
67 | }
68 |
69 | // Bootstrap specific changes start
70 |
71 | // Bootstrap components
72 | .navbar {
73 | display: none;
74 | }
75 | .btn,
76 | .dropup > .btn {
77 | > .caret {
78 | border-top-color: #000 !important;
79 | }
80 | }
81 | .label {
82 | border: 1px solid #000;
83 | }
84 |
85 | .table {
86 | border-collapse: collapse !important;
87 |
88 | td,
89 | th {
90 | background-color: #fff !important;
91 | }
92 | }
93 | .table-bordered {
94 | th,
95 | td {
96 | border: 1px solid #ddd !important;
97 | }
98 | }
99 |
100 | // Bootstrap specific changes end
101 |
102 | .print-text {
103 | color: darken(@ether-blue,10%)!important;
104 | }
105 |
106 | footer {
107 | border-top: 1px solid black;
108 | }
109 |
110 | header {
111 | border-bottom: 1px solid black;
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/src/less/bootstrap/progress-bars.less:
--------------------------------------------------------------------------------
1 | //
2 | // Progress bars
3 | // --------------------------------------------------
4 |
5 |
6 | // Bar animations
7 | // -------------------------
8 |
9 | // WebKit
10 | @-webkit-keyframes progress-bar-stripes {
11 | from { background-position: 40px 0; }
12 | to { background-position: 0 0; }
13 | }
14 |
15 | // Spec and IE10+
16 | @keyframes progress-bar-stripes {
17 | from { background-position: 40px 0; }
18 | to { background-position: 0 0; }
19 | }
20 |
21 |
22 | // Bar itself
23 | // -------------------------
24 |
25 | // Outer container
26 | .progress {
27 | overflow: hidden;
28 | height: @line-height-computed;
29 | margin-bottom: @line-height-computed;
30 | background-color: @progress-bg;
31 | border-radius: @progress-border-radius;
32 | .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
33 | }
34 |
35 | // Bar of progress
36 | .progress-bar {
37 | float: left;
38 | width: 0%;
39 | height: 100%;
40 | font-size: @font-size-small;
41 | line-height: @line-height-computed;
42 | color: @progress-bar-color;
43 | text-align: center;
44 | background-color: @progress-bar-bg;
45 | .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
46 | .transition(width .6s ease);
47 | }
48 |
49 | // Striped bars
50 | //
51 | // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
52 | // `.progress-bar-striped` class, which you just add to an existing
53 | // `.progress-bar`.
54 | .progress-striped .progress-bar,
55 | .progress-bar-striped {
56 | #gradient > .striped();
57 | background-size: 40px 40px;
58 | }
59 |
60 | // Call animation for the active one
61 | //
62 | // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
63 | // `.progress-bar.active` approach.
64 | .progress.active .progress-bar,
65 | .progress-bar.active {
66 | .animation(progress-bar-stripes 2s linear infinite);
67 | }
68 |
69 |
70 | // Variations
71 | // -------------------------
72 |
73 | .progress-bar-success {
74 | .progress-bar-variant(@progress-bar-success-bg);
75 | }
76 |
77 | .progress-bar-info {
78 | .progress-bar-variant(@progress-bar-info-bg);
79 | }
80 |
81 | .progress-bar-warning {
82 | .progress-bar-variant(@progress-bar-warning-bg);
83 | }
84 |
85 | .progress-bar-danger {
86 | .progress-bar-variant(@progress-bar-danger-bg);
87 | }
88 |
--------------------------------------------------------------------------------
/src/less/bootstrap/responsive-embed.less:
--------------------------------------------------------------------------------
1 | // Embeds responsive
2 | //
3 | // Credit: Nicolas Gallagher and SUIT CSS.
4 |
5 | .embed-responsive {
6 | position: relative;
7 | display: block;
8 | height: 0;
9 | padding: 0;
10 | overflow: hidden;
11 |
12 | .embed-responsive-item,
13 | iframe,
14 | embed,
15 | object,
16 | video {
17 | position: absolute;
18 | top: 0;
19 | left: 0;
20 | bottom: 0;
21 | height: 100%;
22 | width: 100%;
23 | border: 0;
24 | }
25 | }
26 |
27 | // Modifier class for 16:9 aspect ratio
28 | .embed-responsive-16by9 {
29 | padding-bottom: 56.25%;
30 | }
31 |
32 | // Modifier class for 4:3 aspect ratio
33 | .embed-responsive-4by3 {
34 | padding-bottom: 75%;
35 | }
36 |
--------------------------------------------------------------------------------
/src/less/bootstrap/responsive-utilities.less:
--------------------------------------------------------------------------------
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 | @-ms-viewport {
22 | width: device-width;
23 | }
24 |
25 |
26 | // Visibility utilities
27 | // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
28 | .visible-xs,
29 | .visible-sm,
30 | .visible-md,
31 | .visible-lg {
32 | .responsive-invisibility();
33 | }
34 |
35 | .visible-xs-block,
36 | .visible-xs-inline,
37 | .visible-xs-inline-block,
38 | .visible-sm-block,
39 | .visible-sm-inline,
40 | .visible-sm-inline-block,
41 | .visible-md-block,
42 | .visible-md-inline,
43 | .visible-md-inline-block,
44 | .visible-lg-block,
45 | .visible-lg-inline,
46 | .visible-lg-inline-block {
47 | display: none !important;
48 | }
49 |
50 | .visible-xs {
51 | @media (max-width: @screen-xs-max) {
52 | .responsive-visibility();
53 | }
54 | }
55 | .visible-xs-block {
56 | @media (max-width: @screen-xs-max) {
57 | display: block !important;
58 | }
59 | }
60 | .visible-xs-inline {
61 | @media (max-width: @screen-xs-max) {
62 | display: inline !important;
63 | }
64 | }
65 | .visible-xs-inline-block {
66 | @media (max-width: @screen-xs-max) {
67 | display: inline-block !important;
68 | }
69 | }
70 |
71 | .visible-sm {
72 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
73 | .responsive-visibility();
74 | }
75 | }
76 | .visible-sm-block {
77 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
78 | display: block !important;
79 | }
80 | }
81 | .visible-sm-inline {
82 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
83 | display: inline !important;
84 | }
85 | }
86 | .visible-sm-inline-block {
87 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
88 | display: inline-block !important;
89 | }
90 | }
91 |
92 | .visible-md {
93 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
94 | .responsive-visibility();
95 | }
96 | }
97 | .visible-md-block {
98 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
99 | display: block !important;
100 | }
101 | }
102 | .visible-md-inline {
103 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
104 | display: inline !important;
105 | }
106 | }
107 | .visible-md-inline-block {
108 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
109 | display: inline-block !important;
110 | }
111 | }
112 |
113 | .visible-lg {
114 | @media (min-width: @screen-lg-min) {
115 | .responsive-visibility();
116 | }
117 | }
118 | .visible-lg-block {
119 | @media (min-width: @screen-lg-min) {
120 | display: block !important;
121 | }
122 | }
123 | .visible-lg-inline {
124 | @media (min-width: @screen-lg-min) {
125 | display: inline !important;
126 | }
127 | }
128 | .visible-lg-inline-block {
129 | @media (min-width: @screen-lg-min) {
130 | display: inline-block !important;
131 | }
132 | }
133 |
134 | .hidden-xs {
135 | @media (max-width: @screen-xs-max) {
136 | .responsive-invisibility();
137 | }
138 | }
139 | .hidden-sm {
140 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
141 | .responsive-invisibility();
142 | }
143 | }
144 | .hidden-md {
145 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
146 | .responsive-invisibility();
147 | }
148 | }
149 | .hidden-lg {
150 | @media (min-width: @screen-lg-min) {
151 | .responsive-invisibility();
152 | }
153 | }
154 |
155 |
156 | // Print utilities
157 | //
158 | // Media queries are placed on the inside to be mixin-friendly.
159 |
160 | // Note: Deprecated .visible-print as of v3.2.0
161 | .visible-print {
162 | .responsive-invisibility();
163 |
164 | @media print {
165 | .responsive-visibility();
166 | }
167 | }
168 | .visible-print-block {
169 | display: none !important;
170 |
171 | @media print {
172 | display: block !important;
173 | }
174 | }
175 | .visible-print-inline {
176 | display: none !important;
177 |
178 | @media print {
179 | display: inline !important;
180 | }
181 | }
182 | .visible-print-inline-block {
183 | display: none !important;
184 |
185 | @media print {
186 | display: inline-block !important;
187 | }
188 | }
189 |
190 | .hidden-print {
191 | @media print {
192 | .responsive-invisibility();
193 | }
194 | }
195 |
--------------------------------------------------------------------------------
/src/less/bootstrap/scaffolding.less:
--------------------------------------------------------------------------------
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 | .box-sizing(border-box);
13 | }
14 | *:before,
15 | *:after {
16 | .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 | .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 | .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 | .transition(all .2s ease-in-out);
100 |
101 | // Keep them at most 100% wide
102 | .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 |
--------------------------------------------------------------------------------
/src/less/bootstrap/tables.less:
--------------------------------------------------------------------------------
1 | //
2 | // Tables
3 | // --------------------------------------------------
4 |
5 |
6 | table {
7 | background-color: @table-bg;
8 | margin-bottom: 10px;
9 | border-bottom: 1px solid @table-border-color;
10 | }
11 | caption {
12 | padding-top: @table-cell-padding;
13 | padding-bottom: @table-cell-padding;
14 | color: @text-muted;
15 | text-align: left;
16 | }
17 | th {
18 | text-align: left;
19 | }
20 |
21 |
22 | // Baseline styles
23 |
24 | .table {
25 | width: 100%;
26 | max-width: 100%;
27 | margin-bottom: @line-height-computed;
28 | // Cells
29 | > thead,
30 | > tbody,
31 | > tfoot {
32 | > tr {
33 | > th,
34 | > td {
35 | padding: @table-cell-padding;
36 | line-height: @line-height-base;
37 | vertical-align: top;
38 | border-top: 1px solid @table-border-color;
39 | }
40 | }
41 | }
42 | // Bottom align for column headings
43 | > thead > tr > th {
44 | vertical-align: bottom;
45 | border-bottom: 2px solid @table-border-color;
46 | }
47 | // Remove top border from thead by default
48 | > caption + thead,
49 | > colgroup + thead,
50 | > thead:first-child {
51 | > tr:first-child {
52 | > th,
53 | > td {
54 | border-top: 0;
55 | }
56 | }
57 | }
58 | // Account for multiple tbody instances
59 | > tbody + tbody {
60 | border-top: 2px solid @table-border-color;
61 | }
62 |
63 | // Nesting
64 | .table {
65 | background-color: @body-bg;
66 | }
67 | }
68 |
69 |
70 | // Condensed table w/ half padding
71 |
72 | .table-condensed {
73 | > thead,
74 | > tbody,
75 | > tfoot {
76 | > tr {
77 | > th,
78 | > td {
79 | padding: @table-condensed-cell-padding;
80 | }
81 | }
82 | }
83 | }
84 |
85 |
86 | // Bordered version
87 | //
88 | // Add borders all around the table and between all the columns.
89 |
90 | .table-bordered {
91 | border: 1px solid @table-border-color;
92 | > thead,
93 | > tbody,
94 | > tfoot {
95 | > tr {
96 | > th,
97 | > td {
98 | border: 1px solid @table-border-color;
99 | }
100 | }
101 | }
102 | > thead > tr {
103 | > th,
104 | > td {
105 | border-bottom-width: 2px;
106 | }
107 | }
108 | }
109 |
110 |
111 | // Zebra-striping
112 | //
113 | // Default zebra-stripe styles (alternating gray and transparent backgrounds)
114 |
115 | .table-striped {
116 | > tbody > tr:nth-of-type(odd) {
117 | background-color: #f5f5f5;
118 | }
119 | &>tbody>tr>td, &>tbody>tr>th, &>tfoot>tr>td, &>tfoot>tr>th, &>thead>tr>td, &>thead>tr>th {
120 | border-top: 0;
121 | }
122 | }
123 | .table-mnemonic {
124 | border-bottom: 0;
125 | th {
126 | border-bottom: 1px solid @gray-lighter;
127 | }
128 | td:first-child {
129 | text-align: center;
130 | }
131 | tr:last-child td:first-child {
132 | text-align: left;
133 | }
134 | tr:last-child,
135 | tr:first-child {
136 | background-color: white!important;
137 | }
138 |
139 | }
140 |
141 |
142 | // Hover effect
143 | //
144 | // Placed here since it has to come after the potential zebra striping
145 |
146 | .table-hover {
147 | > tbody > tr:hover {
148 | background-color: @table-bg-hover;
149 | }
150 | }
151 |
152 |
153 | // Table cell sizing
154 | //
155 | // Reset default table behavior
156 |
157 | table col[class*="col-"] {
158 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
159 | float: none;
160 | display: table-column;
161 | }
162 | table {
163 | td,
164 | th {
165 | &[class*="col-"] {
166 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
167 | float: none;
168 | display: table-cell;
169 | }
170 | }
171 | }
172 |
173 |
174 | // Table backgrounds
175 | //
176 | // Exact selectors below required to override `.table-striped` and prevent
177 | // inheritance to nested tables.
178 |
179 | // Generate the contextual variants
180 | .table-row-variant(active; @table-bg-active);
181 | .table-row-variant(success; @state-success-bg);
182 | .table-row-variant(info; @state-info-bg);
183 | .table-row-variant(warning; @state-warning-bg);
184 | .table-row-variant(danger; @state-danger-bg);
185 |
186 |
187 | // Responsive tables
188 | //
189 | // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
190 | // by enabling horizontal scrolling. Only applies <768px. Everything above that
191 | // will display normally.
192 |
193 | .table-responsive {
194 | overflow-x: auto;
195 | min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
196 |
197 | @media screen and (max-width: @screen-xs-max) {
198 | width: 100%;
199 | margin-bottom: (@line-height-computed * 0.75);
200 | overflow-y: hidden;
201 | -ms-overflow-style: -ms-autohiding-scrollbar;
202 | border: 1px solid @table-border-color;
203 |
204 | // Tighten up spacing
205 | > .table {
206 | margin-bottom: 0;
207 |
208 | // Ensure the content doesn't wrap
209 | > thead,
210 | > tbody,
211 | > tfoot {
212 | > tr {
213 | > th,
214 | > td {
215 | white-space: nowrap;
216 | }
217 | }
218 | }
219 | }
220 |
221 | // Special overrides for the bordered tables
222 | > .table-bordered {
223 | border: 0;
224 |
225 | // Nuke the appropriate borders so that the parent can handle them
226 | > thead,
227 | > tbody,
228 | > tfoot {
229 | > tr {
230 | > th:first-child,
231 | > td:first-child {
232 | border-left: 0;
233 | }
234 | > th:last-child,
235 | > td:last-child {
236 | border-right: 0;
237 | }
238 | }
239 | }
240 |
241 | // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
242 | // chances are there will be only one `tr` in a `thead` and that would
243 | // remove the border altogether.
244 | > tbody,
245 | > tfoot {
246 | > tr:last-child {
247 | > th,
248 | > td {
249 | border-bottom: 0;
250 | }
251 | }
252 | }
253 |
254 | }
255 | }
256 | }
257 |
--------------------------------------------------------------------------------
/src/less/bootstrap/theme.less:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v3.3.4 (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.less";
12 | @import "mixins.less";
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 | .box-shadow(@shadow);
29 |
30 | // Reset the shadow
31 | &:active,
32 | &.active {
33 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
34 | }
35 |
36 | &.disabled,
37 | &[disabled],
38 | fieldset[disabled] & {
39 | .box-shadow(none);
40 | }
41 |
42 | .badge {
43 | text-shadow: none;
44 | }
45 | }
46 |
47 | // Mixin for generating new styles
48 | .btn-styles(@btn-color: #555) {
49 | #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
50 | .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 { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
92 | .btn-primary { .btn-styles(@btn-primary-bg); }
93 | .btn-success { .btn-styles(@btn-success-bg); }
94 | .btn-info { .btn-styles(@btn-info-bg); }
95 | .btn-warning { .btn-styles(@btn-warning-bg); }
96 | .btn-danger { .btn-styles(@btn-danger-bg); }
97 |
98 |
99 | //
100 | // Images
101 | // --------------------------------------------------
102 |
103 | .thumbnail,
104 | .img-thumbnail {
105 | .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 | #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 | #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 | #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
133 | .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 | .box-shadow(@shadow);
137 |
138 | .navbar-nav > .open > a,
139 | .navbar-nav > .active > a {
140 | #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
141 | .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 | #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
152 | .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 | #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
157 | .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 | #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 | .box-shadow(@shadow);
195 | }
196 |
197 | // Mixin for generating new styles
198 | .alert-styles(@color) {
199 | #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 { .alert-styles(@alert-success-bg); }
205 | .alert-info { .alert-styles(@alert-info-bg); }
206 | .alert-warning { .alert-styles(@alert-warning-bg); }
207 | .alert-danger { .alert-styles(@alert-danger-bg); }
208 |
209 |
210 | //
211 | // Progress bars
212 | // --------------------------------------------------
213 |
214 | // Give the progress background some depth
215 | .progress {
216 | #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
217 | }
218 |
219 | // Mixin for generating new styles
220 | .progress-bar-styles(@color) {
221 | #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
222 | }
223 |
224 | // Apply the mixin to the progress bars
225 | .progress-bar { .progress-bar-styles(@progress-bar-bg); }
226 | .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
227 | .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
228 | .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
229 | .progress-bar-danger { .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 | #gradient > .striped();
235 | }
236 |
237 |
238 | //
239 | // List groups
240 | // --------------------------------------------------
241 |
242 | .list-group {
243 | border-radius: @border-radius-base;
244 | .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 | #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 | .box-shadow(0 1px 2px rgba(0,0,0,.05));
266 | }
267 |
268 | // Mixin for generating new styles
269 | .panel-heading-styles(@color) {
270 | #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 { .panel-heading-styles(@panel-default-heading-bg); }
275 | .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
276 | .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
277 | .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
278 | .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
279 | .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
280 |
281 |
282 | //
283 | // Wells
284 | // --------------------------------------------------
285 |
286 | .well {
287 | #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 | .box-shadow(@shadow);
291 | }
292 |
--------------------------------------------------------------------------------
/src/less/bootstrap/thumbnails.less:
--------------------------------------------------------------------------------
1 | //
2 | // Thumbnails
3 | // --------------------------------------------------
4 |
5 |
6 | // Mixin and adjust the regular image class
7 | .thumbnail {
8 | display: block;
9 | padding: @thumbnail-padding;
10 | margin-bottom: @line-height-computed;
11 | line-height: @line-height-base;
12 | background-color: @thumbnail-bg;
13 | border: 1px solid @thumbnail-border;
14 | border-radius: @thumbnail-border-radius;
15 | .transition(border .2s ease-in-out);
16 |
17 | > img,
18 | a > img {
19 | &:extend(.img-responsive);
20 | margin-left: auto;
21 | margin-right: auto;
22 | }
23 |
24 | // Add a hover state for linked versions only
25 | a&:hover,
26 | a&:focus,
27 | a&.active {
28 | border-color: @link-color;
29 | }
30 |
31 | // Image captions
32 | .caption {
33 | padding: @thumbnail-caption-padding;
34 | color: @thumbnail-caption-color;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/less/bootstrap/tooltip.less:
--------------------------------------------------------------------------------
1 | //
2 | // Tooltips
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .tooltip {
8 | position: absolute;
9 | z-index: @zindex-tooltip;
10 | display: block;
11 | // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
12 | // So reset our font and text properties to avoid inheriting weird values.
13 | .reset-text();
14 | font-size: @font-size-small;
15 |
16 | .opacity(0);
17 |
18 | &.in { .opacity(@tooltip-opacity); }
19 | &.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }
20 | &.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
21 | &.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }
22 | &.left { margin-left: -3px; padding: 0 @tooltip-arrow-width; }
23 | }
24 |
25 | // Wrapper for the tooltip content
26 | .tooltip-inner {
27 | max-width: @tooltip-max-width;
28 | padding: 3px 8px;
29 | color: @tooltip-color;
30 | text-align: center;
31 | background-color: @tooltip-bg;
32 | border-radius: @border-radius-base;
33 | }
34 |
35 | // Arrows
36 | .tooltip-arrow {
37 | position: absolute;
38 | width: 0;
39 | height: 0;
40 | border-color: transparent;
41 | border-style: solid;
42 | }
43 | // Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
44 | .tooltip {
45 | &.top .tooltip-arrow {
46 | bottom: 0;
47 | left: 50%;
48 | margin-left: -@tooltip-arrow-width;
49 | border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
50 | border-top-color: @tooltip-arrow-color;
51 | }
52 | &.top-left .tooltip-arrow {
53 | bottom: 0;
54 | right: @tooltip-arrow-width;
55 | margin-bottom: -@tooltip-arrow-width;
56 | border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
57 | border-top-color: @tooltip-arrow-color;
58 | }
59 | &.top-right .tooltip-arrow {
60 | bottom: 0;
61 | left: @tooltip-arrow-width;
62 | margin-bottom: -@tooltip-arrow-width;
63 | border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
64 | border-top-color: @tooltip-arrow-color;
65 | }
66 | &.right .tooltip-arrow {
67 | top: 50%;
68 | left: 0;
69 | margin-top: -@tooltip-arrow-width;
70 | border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;
71 | border-right-color: @tooltip-arrow-color;
72 | }
73 | &.left .tooltip-arrow {
74 | top: 50%;
75 | right: 0;
76 | margin-top: -@tooltip-arrow-width;
77 | border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;
78 | border-left-color: @tooltip-arrow-color;
79 | }
80 | &.bottom .tooltip-arrow {
81 | top: 0;
82 | left: 50%;
83 | margin-left: -@tooltip-arrow-width;
84 | border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
85 | border-bottom-color: @tooltip-arrow-color;
86 | }
87 | &.bottom-left .tooltip-arrow {
88 | top: 0;
89 | right: @tooltip-arrow-width;
90 | margin-top: -@tooltip-arrow-width;
91 | border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
92 | border-bottom-color: @tooltip-arrow-color;
93 | }
94 | &.bottom-right .tooltip-arrow {
95 | top: 0;
96 | left: @tooltip-arrow-width;
97 | margin-top: -@tooltip-arrow-width;
98 | border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
99 | border-bottom-color: @tooltip-arrow-color;
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/src/less/bootstrap/type.less:
--------------------------------------------------------------------------------
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 | letter-spacing: .02em;
16 |
17 | small,
18 | .small {
19 | font-weight: normal;
20 | line-height: 1;
21 | color: @headings-small-color;
22 | }
23 | }
24 |
25 | h1, .h1,
26 | h2, .h2,
27 | h3, .h3 {
28 | margin-top: @line-height-computed;
29 | margin-bottom: (@line-height-computed / 2);
30 |
31 | small,
32 | .small {
33 | font-size: 65%;
34 | }
35 | }
36 |
37 | h2 {
38 | margin-top: (@line-height-computed * 2);
39 | margin-bottom: (@line-height-computed );
40 | }
41 |
42 | h4, .h4,
43 | h5, .h5,
44 | h6, .h6 {
45 | margin-top: (@line-height-computed / 2);
46 | margin-bottom: (@line-height-computed / 2);
47 |
48 | small,
49 | .small {
50 | font-size: 75%;
51 | }
52 | }
53 |
54 | h1, .h1 { font-size: @font-size-h1; font-weight: 300; }
55 | h2, .h2 { font-size: @font-size-h2; font-weight: 300; }
56 | h3, .h3 { font-size: @font-size-h3; font-weight: 700; }
57 | h4, .h4 { font-size: @font-size-h4; font-weight: 700; }
58 | h5, .h5 { font-size: @font-size-h5; font-weight: 400; }
59 | h6, .h6 { font-size: @font-size-h6; font-weight: 400; }
60 |
61 |
62 | // Body text
63 | // -------------------------
64 |
65 | p {
66 | margin: 0 0 (@line-height-computed / 2);
67 | font-weight: 300;
68 | strong, .strong, &.strong {
69 | font-weight: 400;
70 | }
71 | }
72 |
73 | strong, .strong {
74 | font-weight: 600;
75 | }
76 |
77 | .lead {
78 | margin-bottom: @line-height-computed;
79 | font-size: floor((@font-size-base * 1.15));
80 | font-weight: 300;
81 | line-height: 1.4;
82 |
83 | @media (min-width: @screen-sm-min) {
84 | font-size: (@font-size-base * 1.5);
85 | }
86 | }
87 |
88 | a {
89 | cursor: pointer;
90 | }
91 |
92 |
93 |
94 | // Emphasis & misc
95 | // -------------------------
96 |
97 | // Ex: (12px small font / 14px base font) * 100% = about 85%
98 | small,
99 | .small {
100 | font-size: floor((100% * @font-size-small / @font-size-base));
101 | }
102 |
103 | mark,
104 | .mark {
105 | background-color: @state-warning-bg;
106 | padding: .2em;
107 | }
108 |
109 | // Alignment
110 | .text-left { text-align: left; }
111 | .text-right { text-align: right; }
112 | .text-center { text-align: center; }
113 | .text-justify { text-align: justify; }
114 | .text-nowrap { white-space: nowrap; }
115 |
116 | // Transformation
117 | .text-lowercase { text-transform: lowercase; }
118 | .text-uppercase { text-transform: uppercase; }
119 | .text-capitalize { text-transform: capitalize; }
120 |
121 | // Contextual colors
122 | .text-muted {
123 | color: @text-muted;
124 | }
125 | .text-primary {
126 | .text-emphasis-variant(@brand-primary);
127 | }
128 | .text-success {
129 | .text-emphasis-variant(@state-success-text);
130 | }
131 | .text-info {
132 | .text-emphasis-variant(@state-info-text);
133 | }
134 | .text-warning {
135 | .text-emphasis-variant(@state-warning-text);
136 | }
137 | .text-danger {
138 | .text-emphasis-variant(@state-danger-text);
139 | }
140 |
141 | .text-underline {
142 | text-decoration: underline;
143 | }
144 |
145 | .text-light {
146 | font-weight: 200;
147 | }
148 |
149 | // Contextual backgrounds
150 | // For now we'll leave these alongside the text classes until v4 when we can
151 | // safely shift things around (per SemVer rules).
152 | .bg-primary {
153 | // Given the contrast here, this is the only class to have its color inverted
154 | // automatically.
155 | color: #fff;
156 | .bg-variant(@brand-primary);
157 | }
158 | .bg-success {
159 | .bg-variant(@state-success-bg);
160 | }
161 | .bg-info {
162 | .bg-variant(@state-info-bg);
163 | }
164 | .bg-warning {
165 | .bg-variant(@state-warning-bg);
166 | }
167 | .bg-danger {
168 | .bg-variant(@state-danger-bg);
169 | }
170 |
171 |
172 | // Page header
173 | // -------------------------
174 |
175 | .page-header {
176 | padding-bottom: ((@line-height-computed / 2) - 1);
177 | margin: (@line-height-computed * 2) 0 @line-height-computed;
178 | border-bottom: 1px solid @page-header-border-color;
179 | }
180 |
181 |
182 | // Lists
183 | // -------------------------
184 |
185 | // Unordered and Ordered lists
186 | ul,
187 | ol {
188 | margin-top: 0;
189 | margin-bottom: 1em;
190 | ul,
191 | ol {
192 | margin-bottom: 0;
193 | }
194 | }
195 |
196 | li {
197 | margin-bottom: .5em;
198 | font-weight: 300;
199 | strong {
200 | font-weight: 400;
201 | }
202 | }
203 |
204 | // List options
205 |
206 | // Unstyled keeps list items block level, just removes default browser padding and list-style
207 | .list-unstyled {
208 | padding-left: 0;
209 | list-style: none;
210 | }
211 |
212 | // Inline turns list items into inline-block
213 | .list-inline {
214 | .list-unstyled();
215 | margin-left: -5px;
216 |
217 | > li {
218 | display: inline-block;
219 | padding-left: 5px;
220 | padding-right: 5px;
221 | }
222 | }
223 |
224 | // Description Lists
225 | dl {
226 | margin-top: 0; // Remove browser default
227 | margin-bottom: @line-height-computed;
228 | }
229 | dt,
230 | dd {
231 | line-height: @line-height-base;
232 | }
233 | dt {
234 | font-weight: bold;
235 | }
236 | dd {
237 | margin-left: 0; // Undo browser default
238 | }
239 |
240 | // Horizontal description lists
241 | //
242 | // Defaults to being stacked without any of the below styles applied, until the
243 | // grid breakpoint is reached (default of ~768px).
244 |
245 | .dl-horizontal {
246 | dd {
247 | &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
248 | }
249 |
250 | @media (min-width: @grid-float-breakpoint) {
251 | dt {
252 | float: left;
253 | width: (@dl-horizontal-offset - 20);
254 | clear: left;
255 | text-align: right;
256 | .text-overflow();
257 | }
258 | dd {
259 | margin-left: @dl-horizontal-offset;
260 | }
261 | }
262 | }
263 |
264 |
265 | // Misc
266 | // -------------------------
267 |
268 | // Abbreviations and acronyms
269 | abbr[title],
270 | // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
271 | abbr[data-original-title] {
272 | cursor: help;
273 | border-bottom: 1px dotted @abbr-border-color;
274 | }
275 | .initialism {
276 | font-size: 90%;
277 | .text-uppercase();
278 | }
279 |
280 | // Blockquotes
281 | blockquote {
282 | padding: (@line-height-computed / 2) @line-height-computed;
283 | margin: 0 0 @line-height-computed;
284 | font-size: @blockquote-font-size;
285 | border-left: 5px solid @blockquote-border-color;
286 |
287 | p,
288 | ul,
289 | ol {
290 | &:last-child {
291 | margin-bottom: 0;
292 | }
293 | }
294 |
295 | // Note: Deprecated small and .small as of v3.1.0
296 | // Context: https://github.com/twbs/bootstrap/issues/11660
297 | footer,
298 | small,
299 | .small {
300 | display: block;
301 | font-size: 80%; // back to default font-size
302 | line-height: @line-height-base;
303 | color: @blockquote-small-color;
304 |
305 | &:before {
306 | content: '\2014 \00A0'; // em dash, nbsp
307 | }
308 | }
309 | }
310 |
311 | // Opposite alignment of blockquote
312 | //
313 | // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
314 | .blockquote-reverse,
315 | blockquote.pull-right {
316 | padding-right: 15px;
317 | padding-left: 0;
318 | border-right: 5px solid @blockquote-border-color;
319 | border-left: 0;
320 | text-align: right;
321 |
322 | // Account for citation
323 | footer,
324 | small,
325 | .small {
326 | &:before { content: ''; }
327 | &:after {
328 | content: '\00A0 \2014'; // nbsp, em dash
329 | }
330 | }
331 | }
332 |
333 | // Addresses
334 | address {
335 | margin-bottom: @line-height-computed;
336 | font-style: normal;
337 | line-height: @line-height-base;
338 | }
339 |
--------------------------------------------------------------------------------
/src/less/bootstrap/utilities.less:
--------------------------------------------------------------------------------
1 | //
2 | // Utility classes
3 | // --------------------------------------------------
4 |
5 |
6 | // Floats
7 | // -------------------------
8 |
9 | .clearfix {
10 | .clearfix();
11 | }
12 | .center-block {
13 | .center-block();
14 | }
15 | .pull-right {
16 | float: right !important;
17 | }
18 | .pull-left {
19 | float: left !important;
20 | }
21 |
22 |
23 | // Toggling content
24 | // -------------------------
25 |
26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27 | .hide {
28 | display: none !important;
29 | }
30 | .show {
31 | display: block !important;
32 | }
33 | .invisible {
34 | visibility: hidden;
35 | }
36 | .text-hide {
37 | .text-hide();
38 | }
39 |
40 |
41 | // Hide from screenreaders and browsers
42 | //
43 | // Credit: HTML5 Boilerplate
44 |
45 | .hidden {
46 | display: none !important;
47 | }
48 |
49 |
50 | // For Affix plugin
51 | // -------------------------
52 |
53 | .affix {
54 | position: fixed;
55 | }
56 |
--------------------------------------------------------------------------------
/src/less/bootstrap/wells.less:
--------------------------------------------------------------------------------
1 | //
2 | // Wells
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .well {
8 | min-height: 20px;
9 | padding: 19px;
10 | margin-bottom: 20px;
11 | background-color: @well-bg;
12 | border: 1px solid @well-border;
13 | border-radius: @border-radius-base;
14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15 | blockquote {
16 | border-color: #ddd;
17 | border-color: rgba(0,0,0,.15);
18 | }
19 | h1:first-child, h2:first-child, h3:first-child, h4:first-child {
20 | margin-top: 0;
21 | }
22 | }
23 |
24 | // Sizes
25 | .well-lg {
26 | padding: 24px;
27 | border-radius: @border-radius-large;
28 | }
29 | .well-sm {
30 | padding: 9px;
31 | border-radius: @border-radius-small;
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/src/less/myetherapi-custom.less:
--------------------------------------------------------------------------------
1 | // layout
2 | body,
3 | html {
4 | height: 100%;
5 | }
6 |
7 | .container {
8 | width: 100%;
9 | max-width: 1400px;
10 | padding-left: 5%;
11 | padding-right: 5%;
12 | @media screen and (max-width: @screen-sm) {
13 | padding-left: 25px;
14 | padding-right: 25px;
15 | }
16 | }
17 |
18 | img {
19 | max-width: 100%;
20 | }
21 |
22 | textarea {
23 | resize: vertical;
24 | }
25 |
26 | // footer
27 | footer {
28 | background-color: @ether-navy;
29 | color: white;
30 | margin-top: 100px;
31 | p {
32 | margin: 10px 0;
33 | }
34 | a {
35 | color: #4ac8ed;
36 | &:hover,
37 | &:focus {
38 | color: darken(#4ac8ed, 5%);
39 | }
40 | }
41 | .modal,
42 | .modal p {
43 | color: @text-color;
44 | }
45 | }
46 |
47 | // anouncement bars
48 | .announcement {
49 | padding: 3px 10px;
50 | text-align: center;
51 | font-weight: 300;
52 | color: white;
53 | display: block;
54 | background-color: @brand-primary;
55 | a {
56 | text-decoration: underline;
57 | color: white;
58 | transition: 250ms all ease;
59 | }
60 | &:hover,
61 | &:focus {
62 | transition: 250ms all ease;
63 | color: darken(white, 5%);
64 | text-decoration: none;
65 | background-color: darken(@brand-primary, 5%);
66 | }
67 | strong {
68 | font-weight: 400;
69 | }
70 | }
71 |
72 | .annoucement-warning {
73 | background-color: @brand-danger;
74 | &:hover,
75 | &:focus {
76 | background-color: darken(@brand-danger, 5%);
77 | a, a:hover {
78 | text-decoration: none;
79 | }
80 | }
81 | }
82 |
83 | .annoucement-danger {
84 | background-color: @brand-danger;
85 | a:hover,
86 | a:focus {
87 | color: darken(white, 5%);
88 | a, a:hover {
89 | text-decoration: none;
90 | }
91 | }
92 | }
93 |
94 | // address icenticons
95 | .address-identicon-container {
96 | padding-left: 0;
97 | padding-top: 10px;
98 | text-align: right;
99 | @media screen and (max-width: @grid-float-breakpoint) {
100 | padding-left: 25px;
101 | padding-right: 25px;
102 | padding-top: 0;
103 | }
104 | }
105 |
106 | .address-identicon-container-offline {
107 | padding: 0;
108 | margin-left: -15px;
109 | }
110 |
111 | #addressIdenticon {
112 | width: 64px;
113 | height: 64px;
114 | background-size: cover;
115 | background-repeat: no-repeat;
116 | border-radius: 50%;
117 | box-shadow: inset rgba(255, 255, 255, 0.5) 0 2px 2px, inset rgba(0, 0, 0, 0.6) 0 -1px 8px;
118 | }
119 |
120 | #addressIdenticon.med {
121 | width: 40px;
122 | height: 40px;
123 | }
124 | #addressIdenticon.small {
125 | width: 24px;
126 | height: 24px;
127 | }
128 |
129 | .address-identicon-container.small {
130 | display: inline;
131 | #addressIdenticon {
132 | width: 32px;
133 | height: 32px;
134 | box-shadow: inset 0 2px 2px hsla(0, 0%, 100%, .5), inset 0 -1px 5px rgba(0, 0, 0, .6);
135 | display: inline-block;
136 | vertical-align: middle;
137 | }
138 | }
139 |
140 | // helpers
141 | .wrap {
142 | word-wrap: break-word;
143 | }
144 |
145 | .bigger-on-mobile.form-control[readonly] {
146 | height: 60px;
147 | @media screen and (max-width: 767px) {
148 | height: 100px;
149 | }
150 | }
151 |
152 | // help page
153 | #paneHelp {
154 | h3 {
155 | margin-top: 2em;
156 | }
157 | }
158 |
159 | .account-help-icon {
160 | h4, h5, h6, img {
161 | display: inline-block;
162 | }
163 | img:hover + .account-help-text {
164 | display: block;
165 | }
166 | img {
167 | margin-left: -30px;
168 | margin-right: 3px;
169 | }
170 | }
171 |
172 | .account-help-text {
173 | background: white;
174 | border-radius: 3px;
175 | border: 1px solid #CDCDCD;
176 | box-shadow: 0 0 5px rgba(100, 100, 100, .2);
177 | display: none;
178 | font-size: 14px;
179 | font-weight: 400;
180 | padding: 5px;
181 | position: absolute;;
182 | width: 280px;
183 | z-index: 999;
184 | }
185 |
186 |
187 | @media screen and (max-width:767px) {
188 | .account-help-icon img,
189 | .account-help-icon p, {
190 | display: none;
191 | }
192 | }
193 |
194 | // monospace things
195 | .mono,
196 | .form-control,
197 | #accountAddress,
198 | #accountBalance,
199 | #accountBalanceUsd,
200 | #accountBalanceEur,
201 | #accountBalanceBtc,
202 | #accountBalancePopMB-0,
203 | #accountBalancePopMB-2,
204 | #accountAddressMainTbl-1 {
205 | font-family: @font-family-monospace;
206 | font-weight: normal;
207 | letter-spacing: .02em;
208 | }
209 |
210 | // QR Code on Offline Transactions Page
211 | .offline-qrcode {
212 | margin-top: -150px;
213 | max-width: 300px;
214 | @media screen and (max-width: 942px) {
215 | margin-top: -78px;
216 | }
217 | @media screen and (max-width: 769px) {
218 | margin-top: 0;
219 | }
220 | }
221 |
222 | .account-info {
223 | padding-left: 1em;
224 | li {
225 | margin-bottom: 0;
226 | list-style-type: none;
227 | word-break: break-all;
228 | }
229 | table& {
230 | font-weight: 200;
231 | border-bottom: 0;
232 | min-width: 200px;
233 | td {
234 | padding: 4px 5px;
235 | line-height: 1;
236 | }
237 | td:first-child {
238 | max-width: 115px;
239 | word-wrap: break-word;
240 | padding-left: 1em;
241 | }
242 | tr:nth-child(even) {
243 | background-color: @gray-lightest;
244 | }
245 | tr:nth-last-child(2),
246 | tr:last-child {
247 | background-color: white!important;
248 | }
249 | }
250 | }
251 |
252 | input[type="text"]+.eye {
253 | cursor: pointer;
254 | &:before {
255 | content: "";
256 | width: 20px;
257 | height: 20px;
258 | margin-left: 6px;
259 | margin-right: 6px;
260 | display: inline-block;
261 | vertical-align: middle;
262 | background: url("../images/icon-eye.svg");
263 | }
264 | }
265 |
266 | input[type="password"]+.eye {
267 | cursor: pointer;
268 | &:before {
269 | content: "";
270 | width: 20px;
271 | height: 20px;
272 | margin-left: 6px;
273 | margin-right: 6px;
274 | display: inline-block;
275 | vertical-align: middle;
276 | background: url("../images/icon-eye-closed.svg");
277 | }
278 | }
279 |
280 |
281 | // collapsable containers
282 | .collapse-container {
283 | h2, h4 {
284 | cursor: pointer;
285 | }
286 | .collapse-button {
287 | float: left;
288 | font-weight: 500;
289 | user-select: none;
290 | padding: 10px;
291 | margin: -10px -35px;
292 | font-size: 24px;
293 | line-height: 1.6;
294 | }
295 | }
296 |
297 |
298 | // help collapsable containers
299 | .help .collapse-container {
300 | margin: 40px 0;
301 | .collapse-button {
302 | margin: -10px -30px;
303 | font-size: 20px;
304 | line-height: 1;
305 | }
306 | }
307 |
308 | // little x image next to custom tokens
309 | .token-remove {
310 | width: 14px;
311 | height: 14px;
312 | position: absolute;
313 | left: 18px;
314 | cursor: pointer;
315 | }
316 |
317 | .node-remove {
318 | width: 16px;
319 | height: 16px;
320 | position: absolute;
321 | right: 6px;
322 | top: 8px;
323 | }
324 |
325 | .m-addresses td:first-child {
326 | max-width: 50px;
327 | min-widht: 50px;
328 | }
329 |
330 | .m-addresses td:last-child {
331 | text-align: right;
332 | }
333 |
334 |
335 | .custom-token-fields {
336 | padding-bottom: 10px;
337 | border-bottom: 1px solid #e6e6e6;
338 | }
339 | .token-balances {
340 | margin-bottom: 15px;
341 | }
342 |
343 | h2 a.isActive {
344 | color: #333;
345 | cursor: default;
346 | &:hover,
347 | &:active {
348 | color: #333;
349 | cursor: default;
350 | }
351 | }
352 |
353 |
354 | .item {
355 | margin: 6px 0;
356 | }
357 |
358 | .output.well {
359 | margin-top: -11px;
360 | padding: 5px 10px;
361 | p {
362 | margin: 5px 0;
363 | }
364 | }
365 |
366 | label small {
367 | color: @gray-light
368 | }
369 |
370 | .write-address {
371 | .col-xs-1 {
372 | padding: 0;
373 | }
374 | .col-xs-11 {
375 | padding-right: 10px;
376 | }
377 | }
378 |
379 | .write-boolean label {
380 | display: block;
381 | }
382 |
383 |
--------------------------------------------------------------------------------
/src/less/myetherapi-fonts.less:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Lato';
3 | src: url('../fonts/Lato-Light.woff') format('woff'),
4 | url('../fonts/Lato-Light.ttf') format('truetype');
5 | font-style: normal;
6 | font-weight: 300;
7 | }
8 |
9 | @font-face {
10 | font-family: 'Lato';
11 | src: url('../fonts/Lato-Regular.woff') format('woff'),
12 | url('../fonts/Lato-Regular.ttf') format('truetype');
13 | font-style: normal;
14 | font-weight: 400;
15 | }
16 |
17 | @font-face {
18 | font-family: 'Lato';
19 | src: url('../fonts/Lato-Bold.woff') format('woff'),
20 | url('../fonts/Lato-Bold.ttf') format('truetype');
21 |
22 | font-style: normal;
23 | font-weight: 700;
24 | }
25 |
--------------------------------------------------------------------------------
/src/less/myetherapi-master.less:
--------------------------------------------------------------------------------
1 | @import "myetherapi-variables.less";
2 | @import "myetherapi-fonts.less";
3 |
4 | // Core variables and mixins
5 | @import "bootstrap/mixins.less";
6 |
7 | // Reset and dependencies
8 | @import "bootstrap/normalize.less";
9 | @import "bootstrap/print.less";
10 | //@import "bootstrap/glyphicons.less";
11 |
12 | // Core CSS
13 | @import "bootstrap/scaffolding.less";
14 | @import "bootstrap/type.less";
15 | @import "bootstrap/code.less";
16 | @import "bootstrap/grid.less";
17 | @import "bootstrap/tables.less";
18 | @import "bootstrap/forms.less";
19 | @import "bootstrap/buttons.less";
20 |
21 | // Components
22 | //@import "bootstrap/component-animations.less";
23 | @import "bootstrap/dropdowns.less";
24 | @import "bootstrap/button-groups.less";
25 | @import "bootstrap/input-groups.less";
26 | //@import "bootstrap/navs.less";
27 | //@import "bootstrap/navbar.less";
28 | //@import "bootstrap/breadcrumbs.less";
29 | //@import "bootstrap/pagination.less";
30 | //@import "bootstrap/pager.less";
31 | //@import "bootstrap/labels.less";
32 | //@import "bootstrap/badges.less";
33 | //@import "bootstrap/jumbotron.less";
34 | //@import "bootstrap/thumbnails.less";
35 | @import "bootstrap/alerts.less";
36 | //@import "bootstrap/progress-bars.less";
37 | //@import "bootstrap/media.less";
38 | //@import "bootstrap/list-group.less";
39 | //@import "bootstrap/panels.less";
40 | //@import "bootstrap/responsive-embed.less";
41 | @import "bootstrap/wells.less";
42 | @import "bootstrap/close.less";
43 |
44 | // Components w/ JavaScript
45 | @import "bootstrap/modals.less";
46 | //@import "bootstrap/tooltip.less";
47 | //@import "bootstrap/popovers.less";
48 | //@import "bootstrap/carousel.less";
49 |
50 | // Utility classes
51 | @import "bootstrap/utilities.less";
52 | @import "bootstrap/responsive-utilities.less";
53 |
54 | @import "myetherapi-custom.less";
55 | @import "myetherapi-utilities.less";
56 | @import "myetherapi-nav.less";
57 |
58 |
--------------------------------------------------------------------------------
/src/less/myetherapi-nav.less:
--------------------------------------------------------------------------------
1 | // Header
2 | .header-branding {
3 | color: white;
4 | padding: 0;
5 | @media screen and (max-width: 900px) {
6 | text-align: center;
7 | }
8 | .container {
9 | display: flex;
10 | align-items: center;
11 | @media screen and (max-width: 900px) {
12 | flex-direction: column;
13 | }
14 | }
15 | .brand {
16 | @media screen and (min-width: 901px) {
17 | flex-basis: 245px;
18 | }
19 | img {
20 | max-width: 1000px;
21 | padding: 5px 0;
22 | }
23 | }
24 | .tagline {
25 | font-size: 18px;
26 | font-weight: 200;
27 | color: white;
28 | flex: 1 auto;
29 | text-align: right;
30 | padding: 5px 0;
31 | @media screen and (max-width: 900px) {
32 | text-align: center;
33 | }
34 | > * {
35 | display: inline;
36 | vertical-align: middle;
37 | }
38 | }
39 | a {
40 | color: white;
41 | cursor: pointer;
42 | font-weight: 400;
43 | transition: 250ms all ease;
44 | }
45 | a:hover,
46 | a:active,
47 | a:focus {
48 | opacity: .8;
49 | color: white;
50 | text-decoration: none;
51 | transition: 250ms all ease;
52 | }
53 | .dropdown {
54 | padding: 0;
55 | text-align: right;
56 | .dropdown-menu {
57 | right: -10px;
58 | left: auto;
59 | min-width: auto;
60 | left: auto;
61 | & > li > a {
62 | font-size: 15px;
63 | padding: 5px 30px 5px 15px;
64 | position: relative;
65 | }
66 | }
67 | }
68 | }
69 |
70 | .dropdown-menu a.active {
71 | text-decoration: none;
72 | color: @brand-primary;
73 | background-color: @gray-lightest;
74 | }
75 |
76 | // Navigation
77 | .nav-container {
78 | position: relative;
79 | overflow-y: hidden;
80 |
81 | .nav-scroll {
82 | -ms-overflow-style: -ms-autohiding-scrollbar;
83 | -webkit-overflow-scrolling: touch;
84 | overflow-x: auto;
85 | margin-bottom: -20px;
86 | font-size: 0;
87 | white-space: nowrap;
88 | @media screen and (max-width: @screen-sm) {
89 | margin: 0 -5% -20px;
90 | }
91 | .nav-inner {
92 | border-bottom: 2px solid @gray-lighter;
93 | display: inline-block;
94 | font-size: 0;
95 | margin-bottom: 20px;
96 | min-width: 100%;
97 | padding-top: 5px;
98 | vertical-align: middle;
99 | .nav-item {
100 | display: inline-block;
101 | font-size: 0;
102 | a {
103 | color: darken(@link-color, 15%);
104 | display: block;
105 | font-size: 16px;
106 | font-weight: 300;
107 | padding: 10px;
108 | white-space: nowrap;
109 | position: relative;
110 | }
111 | a:after {
112 | content: "";
113 | background: @brand-primary;
114 | height: 2px;
115 | width: 100%; left: 0px;
116 | position: absolute;
117 | bottom: -1px;
118 | transition: all 250ms ease 0s;
119 | transform: scale(0);
120 | }
121 | &.active a,
122 | a:hover,
123 | a:focus {
124 | color: @brand-primary;
125 | text-decoration: none;
126 | transition: all 250ms ease 0s;
127 | &:after {
128 | transform: scale(1);
129 | transition: all 250ms ease 0s;
130 | }
131 | }
132 | }
133 | }
134 | }
135 |
136 | .nav-arrow-right,
137 | .nav-arrow-left {
138 | background-color: white;
139 | bottom: 12px;
140 | color: #d6d6d6;
141 | font-size: 33px;
142 | line-height: 1.3;
143 | min-width: 50px;
144 | position: absolute;
145 | top: 0;
146 | vertical-align: middle;
147 | width: 5%;
148 | z-index: 999;
149 | &:hover {
150 | text-decoration: none;
151 | }
152 | }
153 | .nav-arrow-right {
154 | right: 3%;
155 | background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 47%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
156 | padding-right: 5px;
157 | text-align: right;
158 | @media screen and (max-width: @screen-sm) {
159 | right: 0;
160 | }
161 | }
162 | .nav-arrow-left {
163 | left: 3%;
164 | background: linear-gradient(to left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 47%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
165 | padding-left: 5px;
166 | text-align: left;
167 | @media screen and (max-width: @screen-sm) {
168 | left: 0;
169 | }
170 | }
171 | }
172 |
173 |
174 |
--------------------------------------------------------------------------------
/src/less/myetherapi-utilities.less:
--------------------------------------------------------------------------------
1 | /* Custom Utilities */
2 |
3 | .text-navy { color: @ether-navy; }
4 | .text-gray-lighter { color: @gray-lighter; }
5 | .text-blue { color: @ether-blue; }
6 | .text-white { color: #fff; }
7 |
8 | .bg-navy { background: @ether-navy; }
9 | .bg-gradient {
10 | background: @ether-navy;
11 | background: linear-gradient(149deg,#132a45,#143a56,#21a4ce,#19b4ad);
12 | }
13 | .bg-gray-lighter { background-color: @gray-lighter; }
14 | .bg-blue { background-color: @ether-blue; }
15 | .bg-white { background-color: #fff; }
16 |
17 | .text-serif { font-family: @font-family-serif; }
18 | .text-sans-serif { font-family: @font-family-sans-serif; }
19 |
20 | .pad-v-sm {
21 | padding-top: .5em;
22 | padding-bottom: .5em;
23 | }
24 |
25 | .pad-v-md {
26 | padding-top: 1em;
27 | padding-bottom: 1em;
28 | }
29 |
30 | .pad-v-lg {
31 | padding-top: 1.5em;
32 | padding-bottom: 1.5em;
33 | }
34 | .pad-v-xl {
35 | padding-top: 2em;
36 | padding-bottom: 2em;
37 | }
38 |
39 | .marg-v-sm {
40 | margin-top: .5em;
41 | margin-bottom: .5em;
42 | }
43 |
44 | .marg-v-md {
45 | margin-top: 1em;
46 | margin-bottom: 1em;
47 | }
48 |
49 | .marg-v-lg {
50 | margin-top: 1.5em;
51 | margin-bottom: 1.5em;
52 | }
53 | .marg-v-xl {
54 | margin-top: 2em;
55 | margin-bottom: 2em;
56 | }
57 |
58 | .img-fill {
59 | width: 100%;
60 | height: auto;
61 | max-width: 100%;
62 | }
63 |
--------------------------------------------------------------------------------