.
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 | // Align badges within list items
40 | > .badge {
41 | float: right;
42 | }
43 | > .badge + .badge {
44 | margin-right: 5px;
45 | }
46 | }
47 |
48 |
49 | // Linked list items
50 | //
51 | // Use anchor elements instead of `li`s or `div`s to create linked list items.
52 | // Includes an extra `.active` modifier class for showing selected items.
53 |
54 | a.list-group-item {
55 | color: @list-group-link-color;
56 |
57 | .list-group-item-heading {
58 | color: @list-group-link-heading-color;
59 | }
60 |
61 | // Hover state
62 | &:hover,
63 | &:focus {
64 | text-decoration: none;
65 | background-color: @list-group-hover-bg;
66 | }
67 |
68 | // Active class on item itself, not parent
69 | &.active,
70 | &.active:hover,
71 | &.active:focus {
72 | z-index: 2; // Place active items above their siblings for proper border styling
73 | color: @list-group-active-color;
74 | background-color: @list-group-active-bg;
75 | border-color: @list-group-active-border;
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-active-text-color;
83 | }
84 | }
85 | }
86 |
87 |
88 | // Contextual variants
89 | //
90 | // Add modifier classes to change text and background color on individual items.
91 | // Organizationally, this must come after the `:hover` states.
92 |
93 | .list-group-item-variant(success; @state-success-bg; @state-success-text);
94 | .list-group-item-variant(info; @state-info-bg; @state-info-text);
95 | .list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
96 | .list-group-item-variant(danger; @state-danger-bg; @state-danger-text);
97 |
98 |
99 | // Custom content options
100 | //
101 | // Extra classes for creating well-formatted content within `.list-group-item`s.
102 |
103 | .list-group-item-heading {
104 | margin-top: 0;
105 | margin-bottom: 5px;
106 | }
107 | .list-group-item-text {
108 | margin-bottom: 0;
109 | line-height: 1.3;
110 | }
111 |
--------------------------------------------------------------------------------
/less/bootstrap2/pagination.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pagination (multiple pages)
3 | // --------------------------------------------------
4 |
5 | // Space out pagination from surrounding content
6 | .pagination {
7 | margin: @baseLineHeight 0;
8 | }
9 |
10 | .pagination ul {
11 | // Allow for text-based alignment
12 | display: inline-block;
13 | .ie7-inline-block();
14 | // Reset default ul styles
15 | margin-left: 0;
16 | margin-bottom: 0;
17 | // Visuals
18 | .border-radius(@baseBorderRadius);
19 | .box-shadow(0 1px 2px rgba(0,0,0,.05));
20 | }
21 | .pagination ul > li {
22 | display: inline; // Remove list-style and block-level defaults
23 | }
24 | .pagination ul > li > a,
25 | .pagination ul > li > span {
26 | float: left; // Collapse white-space
27 | padding: 4px 12px;
28 | line-height: @baseLineHeight;
29 | text-decoration: none;
30 | background-color: @paginationBackground;
31 | border: 1px solid @paginationBorder;
32 | border-left-width: 0;
33 | }
34 | .pagination ul > li > a:hover,
35 | .pagination ul > li > a:focus,
36 | .pagination ul > .active > a,
37 | .pagination ul > .active > span {
38 | background-color: @paginationActiveBackground;
39 | }
40 | .pagination ul > .active > a,
41 | .pagination ul > .active > span {
42 | color: @grayLight;
43 | cursor: default;
44 | }
45 | .pagination ul > .disabled > span,
46 | .pagination ul > .disabled > a,
47 | .pagination ul > .disabled > a:hover,
48 | .pagination ul > .disabled > a:focus {
49 | color: @grayLight;
50 | background-color: transparent;
51 | cursor: default;
52 | }
53 | .pagination ul > li:first-child > a,
54 | .pagination ul > li:first-child > span {
55 | border-left-width: 1px;
56 | .border-left-radius(@baseBorderRadius);
57 | }
58 | .pagination ul > li:last-child > a,
59 | .pagination ul > li:last-child > span {
60 | .border-right-radius(@baseBorderRadius);
61 | }
62 |
63 |
64 | // Alignment
65 | // --------------------------------------------------
66 |
67 | .pagination-centered {
68 | text-align: center;
69 | }
70 | .pagination-right {
71 | text-align: right;
72 | }
73 |
74 |
75 | // Sizing
76 | // --------------------------------------------------
77 |
78 | // Large
79 | .pagination-large {
80 | ul > li > a,
81 | ul > li > span {
82 | padding: @paddingLarge;
83 | font-size: @fontSizeLarge;
84 | }
85 | ul > li:first-child > a,
86 | ul > li:first-child > span {
87 | .border-left-radius(@borderRadiusLarge);
88 | }
89 | ul > li:last-child > a,
90 | ul > li:last-child > span {
91 | .border-right-radius(@borderRadiusLarge);
92 | }
93 | }
94 |
95 | // Small and mini
96 | .pagination-mini,
97 | .pagination-small {
98 | ul > li:first-child > a,
99 | ul > li:first-child > span {
100 | .border-left-radius(@borderRadiusSmall);
101 | }
102 | ul > li:last-child > a,
103 | ul > li:last-child > span {
104 | .border-right-radius(@borderRadiusSmall);
105 | }
106 | }
107 |
108 | // Small
109 | .pagination-small {
110 | ul > li > a,
111 | ul > li > span {
112 | padding: @paddingSmall;
113 | font-size: @fontSizeSmall;
114 | }
115 | }
116 | // Mini
117 | .pagination-mini {
118 | ul > li > a,
119 | ul > li > span {
120 | padding: @paddingMini;
121 | font-size: @fontSizeMini;
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/less/bootstrap2/carousel.less:
--------------------------------------------------------------------------------
1 | //
2 | // Carousel
3 | // --------------------------------------------------
4 |
5 |
6 | .carousel {
7 | position: relative;
8 | margin-bottom: @baseLineHeight;
9 | line-height: 1;
10 | }
11 |
12 | .carousel-inner {
13 | overflow: hidden;
14 | width: 100%;
15 | position: relative;
16 | }
17 |
18 | .carousel-inner {
19 |
20 | > .item {
21 | display: none;
22 | position: relative;
23 | .transition(.6s ease-in-out left);
24 |
25 | // Account for jankitude on images
26 | > img,
27 | > a > img {
28 | display: block;
29 | line-height: 1;
30 | }
31 | }
32 |
33 | > .active,
34 | > .next,
35 | > .prev { display: block; }
36 |
37 | > .active {
38 | left: 0;
39 | }
40 |
41 | > .next,
42 | > .prev {
43 | position: absolute;
44 | top: 0;
45 | width: 100%;
46 | }
47 |
48 | > .next {
49 | left: 100%;
50 | }
51 | > .prev {
52 | left: -100%;
53 | }
54 | > .next.left,
55 | > .prev.right {
56 | left: 0;
57 | }
58 |
59 | > .active.left {
60 | left: -100%;
61 | }
62 | > .active.right {
63 | left: 100%;
64 | }
65 |
66 | }
67 |
68 | // Left/right controls for nav
69 | // ---------------------------
70 |
71 | .carousel-control {
72 | position: absolute;
73 | top: 40%;
74 | left: 15px;
75 | width: 40px;
76 | height: 40px;
77 | margin-top: -20px;
78 | font-size: 60px;
79 | font-weight: 100;
80 | line-height: 30px;
81 | color: @white;
82 | text-align: center;
83 | background: @grayDarker;
84 | border: 3px solid @white;
85 | .border-radius(23px);
86 | .opacity(50);
87 |
88 | // we can't have this transition here
89 | // because webkit cancels the carousel
90 | // animation if you trip this while
91 | // in the middle of another animation
92 | // ;_;
93 | // .transition(opacity .2s linear);
94 |
95 | // Reposition the right one
96 | &.right {
97 | left: auto;
98 | right: 15px;
99 | }
100 |
101 | // Hover/focus state
102 | &:hover,
103 | &:focus {
104 | color: @white;
105 | text-decoration: none;
106 | .opacity(90);
107 | }
108 | }
109 |
110 | // Carousel indicator pips
111 | // -----------------------------
112 | .carousel-indicators {
113 | position: absolute;
114 | top: 15px;
115 | right: 15px;
116 | z-index: 5;
117 | margin: 0;
118 | list-style: none;
119 |
120 | li {
121 | display: block;
122 | float: left;
123 | width: 10px;
124 | height: 10px;
125 | margin-left: 5px;
126 | text-indent: -999px;
127 | background-color: #ccc;
128 | background-color: rgba(255,255,255,.25);
129 | border-radius: 5px;
130 | }
131 | .active {
132 | background-color: #fff;
133 | }
134 | }
135 |
136 | // Caption for text below images
137 | // -----------------------------
138 |
139 | .carousel-caption {
140 | position: absolute;
141 | left: 0;
142 | right: 0;
143 | bottom: 0;
144 | padding: 15px;
145 | background: @grayDark;
146 | background: rgba(0,0,0,.75);
147 | }
148 | .carousel-caption h4,
149 | .carousel-caption p {
150 | color: @white;
151 | line-height: @baseLineHeight;
152 | }
153 | .carousel-caption h4 {
154 | margin: 0 0 5px;
155 | }
156 | .carousel-caption p {
157 | margin-bottom: 0;
158 | }
159 |
--------------------------------------------------------------------------------
/less/bootstrap2/progress-bars.less:
--------------------------------------------------------------------------------
1 | //
2 | // Progress bars
3 | // --------------------------------------------------
4 |
5 |
6 | // 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 | // Firefox
16 | @-moz-keyframes progress-bar-stripes {
17 | from { background-position: 40px 0; }
18 | to { background-position: 0 0; }
19 | }
20 |
21 | // IE9
22 | @-ms-keyframes progress-bar-stripes {
23 | from { background-position: 40px 0; }
24 | to { background-position: 0 0; }
25 | }
26 |
27 | // Opera
28 | @-o-keyframes progress-bar-stripes {
29 | from { background-position: 0 0; }
30 | to { background-position: 40px 0; }
31 | }
32 |
33 | // Spec
34 | @keyframes progress-bar-stripes {
35 | from { background-position: 40px 0; }
36 | to { background-position: 0 0; }
37 | }
38 |
39 |
40 |
41 | // THE BARS
42 | // --------
43 |
44 | // Outer container
45 | .progress {
46 | overflow: hidden;
47 | height: @baseLineHeight;
48 | margin-bottom: @baseLineHeight;
49 | #gradient > .vertical(#f5f5f5, #f9f9f9);
50 | .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
51 | .border-radius(@baseBorderRadius);
52 | }
53 |
54 | // Bar of progress
55 | .progress .bar {
56 | width: 0%;
57 | height: 100%;
58 | color: @white;
59 | float: left;
60 | font-size: 12px;
61 | text-align: center;
62 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
63 | #gradient > .vertical(#149bdf, #0480be);
64 | .box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
65 | .box-sizing(border-box);
66 | .transition(width .6s ease);
67 | }
68 | .progress .bar + .bar {
69 | .box-shadow(~"inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)");
70 | }
71 |
72 | // Striped bars
73 | .progress-striped .bar {
74 | #gradient > .striped(#149bdf);
75 | .background-size(40px 40px);
76 | }
77 |
78 | // Call animation for the active one
79 | .progress.active .bar {
80 | -webkit-animation: progress-bar-stripes 2s linear infinite;
81 | -moz-animation: progress-bar-stripes 2s linear infinite;
82 | -ms-animation: progress-bar-stripes 2s linear infinite;
83 | -o-animation: progress-bar-stripes 2s linear infinite;
84 | animation: progress-bar-stripes 2s linear infinite;
85 | }
86 |
87 |
88 |
89 | // COLORS
90 | // ------
91 |
92 | // Danger (red)
93 | .progress-danger .bar, .progress .bar-danger {
94 | #gradient > .vertical(#ee5f5b, #c43c35);
95 | }
96 | .progress-danger.progress-striped .bar, .progress-striped .bar-danger {
97 | #gradient > .striped(#ee5f5b);
98 | }
99 |
100 | // Success (green)
101 | .progress-success .bar, .progress .bar-success {
102 | #gradient > .vertical(#62c462, #57a957);
103 | }
104 | .progress-success.progress-striped .bar, .progress-striped .bar-success {
105 | #gradient > .striped(#62c462);
106 | }
107 |
108 | // Info (teal)
109 | .progress-info .bar, .progress .bar-info {
110 | #gradient > .vertical(#5bc0de, #339bb9);
111 | }
112 | .progress-info.progress-striped .bar, .progress-striped .bar-info {
113 | #gradient > .striped(#5bc0de);
114 | }
115 |
116 | // Warning (orange)
117 | .progress-warning .bar, .progress .bar-warning {
118 | #gradient > .vertical(lighten(@orange, 15%), @orange);
119 | }
120 | .progress-warning.progress-striped .bar, .progress-striped .bar-warning {
121 | #gradient > .striped(lighten(@orange, 15%));
122 | }
123 |
--------------------------------------------------------------------------------
/less/bootstrap2/popovers.less:
--------------------------------------------------------------------------------
1 | //
2 | // Popovers
3 | // --------------------------------------------------
4 |
5 |
6 | .popover {
7 | position: absolute;
8 | top: 0;
9 | left: 0;
10 | z-index: @zindexPopover;
11 | display: none;
12 | max-width: 276px;
13 | padding: 1px;
14 | text-align: left; // Reset given new insertion method
15 | background-color: @popoverBackground;
16 | -webkit-background-clip: padding-box;
17 | -moz-background-clip: padding;
18 | background-clip: padding-box;
19 | border: 1px solid #ccc;
20 | border: 1px solid rgba(0,0,0,.2);
21 | .border-radius(6px);
22 | .box-shadow(0 5px 10px rgba(0,0,0,.2));
23 |
24 | // Overrides for proper insertion
25 | white-space: normal;
26 |
27 | // Offset the popover to account for the popover arrow
28 | &.top { margin-top: -10px; }
29 | &.right { margin-left: 10px; }
30 | &.bottom { margin-top: 10px; }
31 | &.left { margin-left: -10px; }
32 | }
33 |
34 | .popover-title {
35 | margin: 0; // reset heading margin
36 | padding: 8px 14px;
37 | font-size: 14px;
38 | font-weight: normal;
39 | line-height: 18px;
40 | background-color: @popoverTitleBackground;
41 | border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
42 | .border-radius(5px 5px 0 0);
43 |
44 | &:empty {
45 | display: none;
46 | }
47 | }
48 |
49 | .popover-content {
50 | padding: 9px 14px;
51 | }
52 |
53 | // Arrows
54 | //
55 | // .arrow is outer, .arrow:after is inner
56 |
57 | .popover .arrow,
58 | .popover .arrow:after {
59 | position: absolute;
60 | display: block;
61 | width: 0;
62 | height: 0;
63 | border-color: transparent;
64 | border-style: solid;
65 | }
66 | .popover .arrow {
67 | border-width: @popoverArrowOuterWidth;
68 | }
69 | .popover .arrow:after {
70 | border-width: @popoverArrowWidth;
71 | content: "";
72 | }
73 |
74 | .popover {
75 | &.top .arrow {
76 | left: 50%;
77 | margin-left: -@popoverArrowOuterWidth;
78 | border-bottom-width: 0;
79 | border-top-color: #999; // IE8 fallback
80 | border-top-color: @popoverArrowOuterColor;
81 | bottom: -@popoverArrowOuterWidth;
82 | &:after {
83 | bottom: 1px;
84 | margin-left: -@popoverArrowWidth;
85 | border-bottom-width: 0;
86 | border-top-color: @popoverArrowColor;
87 | }
88 | }
89 | &.right .arrow {
90 | top: 50%;
91 | left: -@popoverArrowOuterWidth;
92 | margin-top: -@popoverArrowOuterWidth;
93 | border-left-width: 0;
94 | border-right-color: #999; // IE8 fallback
95 | border-right-color: @popoverArrowOuterColor;
96 | &:after {
97 | left: 1px;
98 | bottom: -@popoverArrowWidth;
99 | border-left-width: 0;
100 | border-right-color: @popoverArrowColor;
101 | }
102 | }
103 | &.bottom .arrow {
104 | left: 50%;
105 | margin-left: -@popoverArrowOuterWidth;
106 | border-top-width: 0;
107 | border-bottom-color: #999; // IE8 fallback
108 | border-bottom-color: @popoverArrowOuterColor;
109 | top: -@popoverArrowOuterWidth;
110 | &:after {
111 | top: 1px;
112 | margin-left: -@popoverArrowWidth;
113 | border-top-width: 0;
114 | border-bottom-color: @popoverArrowColor;
115 | }
116 | }
117 |
118 | &.left .arrow {
119 | top: 50%;
120 | right: -@popoverArrowOuterWidth;
121 | margin-top: -@popoverArrowOuterWidth;
122 | border-right-width: 0;
123 | border-left-color: #999; // IE8 fallback
124 | border-left-color: @popoverArrowOuterColor;
125 | &:after {
126 | right: 1px;
127 | border-right-width: 0;
128 | border-left-color: @popoverArrowColor;
129 | bottom: -@popoverArrowWidth;
130 | }
131 | }
132 |
133 | }
134 |
--------------------------------------------------------------------------------
/less/adapter/grid3.less:
--------------------------------------------------------------------------------
1 | //
2 | // Grid system
3 | // --------------------------------------------------
4 |
5 | // Container widths
6 | //
7 | // Set the container width, and override it for fixed navbars in media queries.
8 |
9 | .container {
10 | .container-fixed();
11 |
12 | @media (min-width: @screen-sm-min) {
13 | width: @container-sm;
14 | }
15 | @media (min-width: @screen-md-min) {
16 | width: @container-md;
17 | }
18 | @media (min-width: @screen-lg-min) {
19 | width: @container-lg;
20 | }
21 | }
22 |
23 |
24 | // Fluid container
25 | //
26 | // Utilizes the mixin meant for fixed width containers, but without any defined
27 | // width for fluid, full width layouts.
28 |
29 | .container-fluid {
30 | .container-fixed();
31 | }
32 |
33 |
34 | // Row
35 | //
36 | // Rows contain and clear the floats of your columns.
37 |
38 | .row {
39 | .make-row();
40 | }
41 | .row-fluid {
42 | .make-row();
43 | }
44 |
45 | // Framework grid generation
46 | //
47 | // Used only by Bootstrap to generate the correct number of grid classes given
48 | // any value of `@grid-columns`.
49 |
50 | .make-grid-columns2() {
51 | // Common styles for all sizes of grid columns, widths 1-12
52 | .col(@index) when (@index = 1) { // initial
53 | @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
54 | .col((@index + 1), @item);
55 | }
56 | .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
57 | @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
58 | .col((@index + 1), ~"@{list}, @{item}");
59 | }
60 | .col(@index, @list) when (@index > @grid-columns) { // terminal
61 | @{list} {
62 | position: relative;
63 | // Prevent columns from collapsing when empty
64 | min-height: 1px;
65 | // Inner gutter via padding
66 | padding-left: (@grid-gutter-width / 2);
67 | padding-right: (@grid-gutter-width / 2);
68 | }
69 | }
70 | .col(1); // kickstart it
71 | }
72 |
73 | .float-grid-columns2(@class) {
74 | .col(@index) when (@index = 1) { // initial
75 | @item: ~".@{class}@{index}";
76 | .col((@index + 1), @item);
77 | }
78 | .col(@index, @list) when (@index =< @grid-columns) { // general
79 | @item: ~".@{class}@{index}";
80 | .col((@index + 1), ~"@{list}, @{item}");
81 | }
82 | .col(@index, @list) when (@index > @grid-columns) { // terminal
83 | @{list} {
84 | float: left;
85 | }
86 | }
87 | .col(1); // kickstart it
88 | }
89 |
90 | .calc-grid-column2(@index, @class, @type) when (@type = offset) {
91 | .offset@{index} {
92 | margin-left: percentage((@index / @grid-columns));
93 | }
94 | }
95 |
96 | // Basic looping in LESS
97 | .loop-grid-columns2(@index, @class, @type) when (@index >= 0) {
98 | .calc-grid-column2(@index, @class, @type);
99 | // next iteration
100 | .loop-grid-columns2((@index - 1), @class, @type);
101 | }
102 |
103 | .calc-grid-column2(@index, @class, @type) when (@type = width) and (@index > 0) {
104 | .@{class}@{index} {
105 | width: percentage((@index / @grid-columns));
106 | }
107 | }
108 |
109 | // Create grid for specific class
110 | .make-grid2(@class) {
111 | .float-grid-columns2(@class);
112 | .loop-grid-columns2(@grid-columns, @class, width);
113 | // .loop-grid-columns2(@grid-columns, @class, pull);
114 | // .loop-grid-columns2(@grid-columns, @class, push);
115 | .loop-grid-columns2(@grid-columns, @class, offset);
116 | }
117 |
118 | // Medium grid
119 | //
120 | // Columns, offsets, pushes, and pulls for the desktop device range.
121 |
122 | @media (min-width: @screen-md-min) {
123 | .make-grid2(span);
124 | }
125 |
126 | [class*="span"] {
127 | min-height: 1px; // prevent collapsing columns
128 | }
129 |
--------------------------------------------------------------------------------
/less/adapter/buttons.less:
--------------------------------------------------------------------------------
1 | //
2 | // Buttons
3 | // --------------------------------------------------
4 |
5 |
6 | // Base styles
7 | // --------------------------------------------------
8 |
9 | .btn {
10 | display: inline-block;
11 | margin-bottom: 0; // For input.btn
12 | font-weight: @btn-font-weight;
13 | text-align: center;
14 | vertical-align: middle;
15 | cursor: pointer;
16 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
17 | border: 1px solid transparent;
18 | white-space: nowrap;
19 | .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
20 | .user-select(none);
21 |
22 | &,
23 | &:active,
24 | &.active {
25 | &:focus {
26 | .tab-focus();
27 | }
28 | }
29 |
30 | &:hover,
31 | &:focus {
32 | color: @btn-default-color;
33 | text-decoration: none;
34 | }
35 |
36 | &:active,
37 | &.active {
38 | outline: 0;
39 | background-image: none;
40 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
41 | }
42 |
43 | &.disabled,
44 | &[disabled],
45 | fieldset[disabled] & {
46 | cursor: not-allowed;
47 | pointer-events: none; // Future-proof disabling of clicks
48 | .opacity(.65);
49 | .box-shadow(none);
50 | }
51 | }
52 |
53 |
54 | // Alternate buttons
55 | // --------------------------------------------------
56 |
57 | .btn {
58 | .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
59 | }
60 | .btn-primary {
61 | .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
62 | }
63 | // Success appears as green
64 | .btn-success {
65 | .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
66 | }
67 | // Info appears as blue-green
68 | .btn-info {
69 | .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
70 | }
71 | // Warning appears as orange
72 | .btn-warning {
73 | .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
74 | }
75 | // Danger and error appear as red
76 | .btn-danger {
77 | .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
78 | }
79 | // Inverse appear as black
80 | .btn-inverse {
81 | .button-variant(@btn-inverse-color; @btn-inverse-bg; @btn-inverse-border);
82 | }
83 |
84 | // Link buttons
85 | // -------------------------
86 |
87 | // Make a button look and behave like a link
88 | .btn-link {
89 | color: @link-color;
90 | font-weight: normal;
91 | cursor: pointer;
92 | border-radius: 0;
93 |
94 | &,
95 | &:active,
96 | &[disabled],
97 | fieldset[disabled] & {
98 | background-color: transparent;
99 | .box-shadow(none);
100 | }
101 | &,
102 | &:hover,
103 | &:focus,
104 | &:active {
105 | border-color: transparent;
106 | }
107 | &:hover,
108 | &:focus {
109 | color: @link-hover-color;
110 | text-decoration: underline;
111 | background-color: transparent;
112 | }
113 | &[disabled],
114 | fieldset[disabled] & {
115 | &:hover,
116 | &:focus {
117 | color: @btn-link-disabled-color;
118 | text-decoration: none;
119 | }
120 | }
121 | }
122 |
123 | // Button Sizes
124 | // --------------------------------------------------
125 |
126 | .btn-large {
127 | // line-height: ensure even-numbered height of button next to large input
128 | .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
129 | }
130 | .btn-small {
131 | // line-height: ensure proper height of button next to small input
132 | .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
133 | }
134 | .btn-mini {
135 | .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
136 | }
137 |
--------------------------------------------------------------------------------
/less/bootstrap3/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 | text-align: left; // Reset given new insertion method
15 | background-color: @popover-bg;
16 | background-clip: padding-box;
17 | border: 1px solid @popover-fallback-border-color;
18 | border: 1px solid @popover-border-color;
19 | border-radius: @border-radius-large;
20 | .box-shadow(0 5px 10px rgba(0,0,0,.2));
21 |
22 | // Overrides for proper insertion
23 | white-space: normal;
24 |
25 | // Offset the popover to account for the popover arrow
26 | &.top { margin-top: -@popover-arrow-width; }
27 | &.right { margin-left: @popover-arrow-width; }
28 | &.bottom { margin-top: @popover-arrow-width; }
29 | &.left { margin-left: -@popover-arrow-width; }
30 | }
31 |
32 | .popover-title {
33 | margin: 0; // reset heading margin
34 | padding: 8px 14px;
35 | font-size: @font-size-base;
36 | font-weight: normal;
37 | line-height: 18px;
38 | background-color: @popover-title-bg;
39 | border-bottom: 1px solid darken(@popover-title-bg, 5%);
40 | border-radius: 5px 5px 0 0;
41 | }
42 |
43 | .popover-content {
44 | padding: 9px 14px;
45 | }
46 |
47 | // Arrows
48 | //
49 | // .arrow is outer, .arrow:after is inner
50 |
51 | .popover > .arrow {
52 | &,
53 | &:after {
54 | position: absolute;
55 | display: block;
56 | width: 0;
57 | height: 0;
58 | border-color: transparent;
59 | border-style: solid;
60 | }
61 | }
62 | .popover > .arrow {
63 | border-width: @popover-arrow-outer-width;
64 | }
65 | .popover > .arrow:after {
66 | border-width: @popover-arrow-width;
67 | content: "";
68 | }
69 |
70 | .popover {
71 | &.top > .arrow {
72 | left: 50%;
73 | margin-left: -@popover-arrow-outer-width;
74 | border-bottom-width: 0;
75 | border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
76 | border-top-color: @popover-arrow-outer-color;
77 | bottom: -@popover-arrow-outer-width;
78 | &:after {
79 | content: " ";
80 | bottom: 1px;
81 | margin-left: -@popover-arrow-width;
82 | border-bottom-width: 0;
83 | border-top-color: @popover-arrow-color;
84 | }
85 | }
86 | &.right > .arrow {
87 | top: 50%;
88 | left: -@popover-arrow-outer-width;
89 | margin-top: -@popover-arrow-outer-width;
90 | border-left-width: 0;
91 | border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
92 | border-right-color: @popover-arrow-outer-color;
93 | &:after {
94 | content: " ";
95 | left: 1px;
96 | bottom: -@popover-arrow-width;
97 | border-left-width: 0;
98 | border-right-color: @popover-arrow-color;
99 | }
100 | }
101 | &.bottom > .arrow {
102 | left: 50%;
103 | margin-left: -@popover-arrow-outer-width;
104 | border-top-width: 0;
105 | border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
106 | border-bottom-color: @popover-arrow-outer-color;
107 | top: -@popover-arrow-outer-width;
108 | &:after {
109 | content: " ";
110 | top: 1px;
111 | margin-left: -@popover-arrow-width;
112 | border-top-width: 0;
113 | border-bottom-color: @popover-arrow-color;
114 | }
115 | }
116 |
117 | &.left > .arrow {
118 | top: 50%;
119 | right: -@popover-arrow-outer-width;
120 | margin-top: -@popover-arrow-outer-width;
121 | border-right-width: 0;
122 | border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
123 | border-left-color: @popover-arrow-outer-color;
124 | &:after {
125 | content: " ";
126 | right: 1px;
127 | border-right-width: 0;
128 | border-left-color: @popover-arrow-color;
129 | bottom: -@popover-arrow-width;
130 | }
131 | }
132 |
133 | }
134 |
--------------------------------------------------------------------------------
/less/bootstrap3/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 | .modal-open {
12 | overflow: hidden;
13 | }
14 |
15 | // Container that the modal scrolls within
16 | div.modal {
17 | display: none;
18 | overflow: auto;
19 | overflow-y: scroll;
20 | position: fixed;
21 | top: 0;
22 | right: 0;
23 | // bottom: 0;
24 | left: 0;
25 | z-index: @zindex-modal;
26 | -webkit-overflow-scrolling: touch;
27 |
28 | // Prevent Chrome on Windows from adding a focus outline. For details, see
29 | // https://github.com/twbs/bootstrap/pull/10951.
30 | outline: 0;
31 |
32 | // When fading in the modal, animate it to slide down
33 | &.fade .modal-dialog {
34 | .translate(0, -25%);
35 | .transition-transform(~"0.3s ease-out");
36 | }
37 | &.in .modal-dialog { .translate(0, 0)}
38 | }
39 |
40 | // Shell div to position the modal with bottom padding
41 | .modal-dialog {
42 | position: relative;
43 | width: auto;
44 | margin: 10px;
45 | }
46 |
47 | // Actual modal
48 | .modal-content {
49 | position: relative;
50 | background-color: @modal-content-bg;
51 | border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
52 | border: 1px solid @modal-content-border-color;
53 | border-radius: @border-radius-large;
54 | .box-shadow(0 3px 9px rgba(0,0,0,.5));
55 | background-clip: padding-box;
56 | // Remove focus outline from opened modal
57 | outline: none;
58 | }
59 |
60 | // Modal background
61 | .modal-backdrop {
62 | position: fixed;
63 | top: 0;
64 | right: 0;
65 | bottom: 0;
66 | left: 0;
67 | z-index: @zindex-modal-background;
68 | background-color: @modal-backdrop-bg;
69 | // Fade for backdrop
70 | &.fade { .opacity(0); }
71 | &.in { .opacity(@modal-backdrop-opacity); }
72 | }
73 |
74 | // Modal header
75 | // Top section of the modal w/ title and dismiss
76 | .modal-header {
77 | padding: @modal-title-padding;
78 | border-bottom: 1px solid @modal-header-border-color;
79 | min-height: (@modal-title-padding + @modal-title-line-height);
80 | }
81 | // Close icon
82 | .modal-header .close {
83 | margin-top: -2px;
84 | }
85 |
86 | // Title text within header
87 | .modal-title {
88 | margin: 0;
89 | line-height: @modal-title-line-height;
90 | }
91 |
92 | // Modal body
93 | // Where all modal content resides (sibling of .modal-header and .modal-footer)
94 | .modal-body {
95 | position: relative;
96 | padding: @modal-inner-padding;
97 | }
98 |
99 | // Footer (for actions)
100 | .modal-footer {
101 | margin-top: 15px;
102 | padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
103 | text-align: right; // right align buttons
104 | border-top: 1px solid @modal-footer-border-color;
105 | &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
106 |
107 | // Properly space out buttons
108 | .btn + .btn {
109 | margin-left: 5px;
110 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
111 | }
112 | // but override that for button groups
113 | .btn-group .btn + .btn {
114 | margin-left: -1px;
115 | }
116 | // and override it for block buttons as well
117 | .btn-block + .btn-block {
118 | margin-left: 0;
119 | }
120 | }
121 |
122 | // Scale up the modal
123 | @media (min-width: @screen-sm-min) {
124 | // Automatically set modal's width for larger viewports
125 | .modal-dialog {
126 | width: @modal-md;
127 | margin: 30px auto;
128 | }
129 | .modal-content {
130 | .box-shadow(0 5px 15px rgba(0,0,0,.5));
131 | }
132 |
133 | // Modal sizes
134 | .modal-sm { width: @modal-sm; }
135 | }
136 |
137 | @media (min-width: @screen-md-min) {
138 | .modal-lg { width: @modal-lg; }
139 | }
140 |
--------------------------------------------------------------------------------
/less/adapter/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 | .modal-open {
12 | overflow: hidden;
13 | }
14 |
15 | // Container that the modal scrolls within
16 | div.modal {
17 | &.hide {
18 | display: block;
19 | overflow: auto;
20 | overflow-y: scroll;
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 |
29 | // Prevent Chrome on Windows from adding a focus outline. For details, see
30 | // https://github.com/twbs/bootstrap/pull/10951.
31 | outline: 0;
32 | }
33 |
34 | // When fading in the modal, animate it to slide down
35 | &.fade {
36 | .translate(0, -25%);
37 | .transition-transform(~"0.3s ease-out");
38 | }
39 | &.in {
40 | .translate(0, 0);
41 | }
42 | &.hide {
43 | display: block !important;
44 | visibility: hidden;
45 | position: fixed;
46 | }
47 | &.hide.in {
48 | visibility: visible;
49 | }
50 | }
51 |
52 | // Shell div to position the modal with bottom padding
53 | div.modal.hide {
54 | position: relative;
55 | width: auto;
56 | margin: 10px;
57 | }
58 |
59 | // Actual modal
60 | div.modal.hide {
61 | position: relative;
62 | background-color: @modal-content-bg;
63 | border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
64 | border: 1px solid @modal-content-border-color;
65 | border-radius: @border-radius-large;
66 | .box-shadow(0 3px 9px rgba(0,0,0,.5));
67 | background-clip: padding-box;
68 | // Remove focus outline from opened modal
69 | outline: none;
70 | }
71 |
72 | // Modal background
73 | .modal-backdrop {
74 | position: fixed;
75 | top: 0;
76 | right: 0;
77 | bottom: 0;
78 | left: 0;
79 | z-index: @zindex-modal-background;
80 | background-color: @modal-backdrop-bg;
81 | // Fade for backdrop
82 | &.fade { .opacity(0); }
83 | &.in { .opacity(@modal-backdrop-opacity); }
84 | }
85 |
86 | // Modal header
87 | // Top section of the modal w/ title and dismiss
88 | .modal-header {
89 | padding: @modal-title-padding;
90 | border-bottom: 1px solid @modal-header-border-color;
91 | min-height: (@modal-title-padding + @modal-title-line-height);
92 | }
93 | // Close icon
94 | .modal-header .close {
95 | margin-top: -2px;
96 | }
97 |
98 | // Title text within header
99 | .modal-title {
100 | margin: 0;
101 | line-height: @modal-title-line-height;
102 | }
103 |
104 | // Modal body
105 | // Where all modal content resides (sibling of .modal-header and .modal-footer)
106 | .modal-body {
107 | position: relative;
108 | padding: @modal-inner-padding;
109 | }
110 |
111 | // Footer (for actions)
112 | .modal-footer {
113 | margin-top: 15px;
114 | padding: (@modal-inner-padding - 1) @modal-inner-padding @modal-inner-padding;
115 | text-align: right; // right align buttons
116 | border-top: 1px solid @modal-footer-border-color;
117 | &:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
118 |
119 | // Properly space out buttons
120 | .btn + .btn {
121 | margin-left: 5px;
122 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
123 | }
124 | // but override that for button groups
125 | .btn-group .btn + .btn {
126 | margin-left: -1px;
127 | }
128 | // and override it for block buttons as well
129 | .btn-block + .btn-block {
130 | margin-left: 0;
131 | }
132 | }
133 |
134 | // Scale up the modal
135 | @media (min-width: @screen-sm-min) {
136 | // Automatically set modal's width for larger viewports
137 | div.modal.hide {
138 | width: @modal-md;
139 | margin: 30px auto;
140 | }
141 | div.modal.hide {
142 | .box-shadow(0 5px 15px rgba(0,0,0,.5));
143 | }
144 |
145 | // Modal sizes
146 | .modal-sm { width: @modal-sm; }
147 | }
148 |
149 | @media (min-width: @screen-md-min) {
150 | .modal-lg { width: @modal-lg; }
151 | }
152 |
--------------------------------------------------------------------------------
/less/bootstrap3/buttons.less:
--------------------------------------------------------------------------------
1 | //
2 | // Buttons
3 | // --------------------------------------------------
4 |
5 |
6 | // Base styles
7 | // --------------------------------------------------
8 |
9 | .btn {
10 | display: inline-block;
11 | margin-bottom: 0; // For input.btn
12 | font-weight: @btn-font-weight;
13 | text-align: center;
14 | vertical-align: middle;
15 | cursor: pointer;
16 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
17 | border: 1px solid transparent;
18 | white-space: nowrap;
19 | .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
20 | .user-select(none);
21 |
22 | &,
23 | &:active,
24 | &.active {
25 | &:focus {
26 | .tab-focus();
27 | }
28 | }
29 |
30 | &:hover,
31 | &:focus {
32 | color: @btn-default-color;
33 | text-decoration: none;
34 | }
35 |
36 | &:active,
37 | &.active {
38 | outline: 0;
39 | background-image: none;
40 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
41 | }
42 |
43 | &.disabled,
44 | &[disabled],
45 | fieldset[disabled] & {
46 | cursor: not-allowed;
47 | pointer-events: none; // Future-proof disabling of clicks
48 | .opacity(.65);
49 | .box-shadow(none);
50 | }
51 | }
52 |
53 |
54 | // Alternate buttons
55 | // --------------------------------------------------
56 |
57 | .btn-default {
58 | .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
59 | }
60 | .btn-primary {
61 | .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
62 | }
63 | // Success appears as green
64 | .btn-success {
65 | .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
66 | }
67 | // Info appears as blue-green
68 | .btn-info {
69 | .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
70 | }
71 | // Warning appears as orange
72 | .btn-warning {
73 | .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
74 | }
75 | // Danger and error appear as red
76 | .btn-danger {
77 | .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
78 | }
79 |
80 |
81 | // Link buttons
82 | // -------------------------
83 |
84 | // Make a button look and behave like a link
85 | .btn-link {
86 | color: @link-color;
87 | font-weight: normal;
88 | cursor: pointer;
89 | border-radius: 0;
90 |
91 | &,
92 | &:active,
93 | &[disabled],
94 | fieldset[disabled] & {
95 | background-color: transparent;
96 | .box-shadow(none);
97 | }
98 | &,
99 | &:hover,
100 | &:focus,
101 | &:active {
102 | border-color: transparent;
103 | }
104 | &:hover,
105 | &:focus {
106 | color: @link-hover-color;
107 | text-decoration: underline;
108 | background-color: transparent;
109 | }
110 | &[disabled],
111 | fieldset[disabled] & {
112 | &:hover,
113 | &:focus {
114 | color: @btn-link-disabled-color;
115 | text-decoration: none;
116 | }
117 | }
118 | }
119 |
120 |
121 | // Button Sizes
122 | // --------------------------------------------------
123 |
124 | .btn-lg {
125 | // line-height: ensure even-numbered height of button next to large input
126 | .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
127 | }
128 | .btn-sm {
129 | // line-height: ensure proper height of button next to small input
130 | .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
131 | }
132 | .btn-xs {
133 | .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
134 | }
135 |
136 |
137 | // Block button
138 | // --------------------------------------------------
139 |
140 | .btn-block {
141 | display: block;
142 | width: 100%;
143 | padding-left: 0;
144 | padding-right: 0;
145 | }
146 |
147 | // Vertically space out multiple block buttons
148 | .btn-block + .btn-block {
149 | margin-top: 5px;
150 | }
151 |
152 | // Specificity overrides
153 | input[type="submit"],
154 | input[type="reset"],
155 | input[type="button"] {
156 | &.btn-block {
157 | width: 100%;
158 | }
159 | }
160 |
--------------------------------------------------------------------------------
/templateDetails.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | isisbt3
5 | 3.4.2
6 | 3/28/2014
7 | Simon Asika
8 | asika32764@gmail.com
9 | Copyright (C) 2012 - 2015 SMS Taiwan, Inc. All rights reserved.
10 | TPL_ISIS_XML_DESCRIPTION
11 |
12 | component.php
13 | cpanel.php
14 | favicon.ico
15 | index.php
16 | login.php
17 | error.php
18 | templateDetails.xml
19 | template_preview.png
20 | template_thumbnail.png
21 | css
22 | html
23 | images
24 | img
25 | js
26 | language
27 | less
28 |
29 |
30 | menu
31 | submenu
32 | toolbar
33 | title
34 | status
35 | icon
36 | cp_shell
37 | cpanel
38 | bottom
39 | footer
40 | login
41 | debug
42 |
43 |
44 |
45 |
123 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/login.php:
--------------------------------------------------------------------------------
1 | params->get('headerColor', '#184A7D');
18 | $templateColor = $this->params->get('templateColor', '#13294A');
19 |
20 | // Add JavaScript Frameworks
21 | JHtml::_('bootstrap.framework');
22 | JHtml::_('bootstrap.tooltip');
23 |
24 | // Add Stylesheets
25 | $doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');
26 |
27 | // Load optional RTL Bootstrap CSS
28 | JHtml::_('bootstrap.loadCss', false, $this->direction);
29 |
30 | // Load specific language related CSS
31 | $file = 'language/' . $lang->getTag() . '/' . $lang->getTag() . '.css';
32 |
33 | if (is_file($file))
34 | {
35 | $doc->addStyleSheet($file);
36 | }
37 |
38 | // Detecting Active Variables
39 | $option = $app->input->getCmd('option', '');
40 | $view = $app->input->getCmd('view', '');
41 | $layout = $app->input->getCmd('layout', '');
42 | $task = $app->input->getCmd('task', '');
43 | $itemid = $app->input->getCmd('Itemid', '');
44 | $sitename = $app->get('sitename');
45 |
46 | ?>
47 |
48 |
49 |
50 |
51 |
52 |
53 |
58 |
86 |
89 |
90 |
91 | ">
92 |
93 |
94 |
95 |
96 |
97 | params->get('loginLogoFile')) : ?>
98 |
 . $loginLogoFile; ?>)
99 |
100 |

101 |
102 |
103 |
104 |
105 |
106 |
109 |
110 |
111 |
112 |
113 |
114 | ©
115 |
116 |
Joomla!®
117 |
118 |
119 |
120 |
121 |
122 |
--------------------------------------------------------------------------------
/less/adapter/navs2.less:
--------------------------------------------------------------------------------
1 | //
2 | // Navs
3 | // --------------------------------------------------
4 |
5 | .nav {
6 | margin-bottom: @baseLineHeight;
7 | }
8 |
9 | // STACKED NAV
10 | // -----------
11 |
12 | //// Stacked tabs and pills
13 | //.nav-stacked > li {
14 | // float: none;
15 | //}
16 | //.nav-stacked > li > a {
17 | // margin-right: 0; // no need for the gap between nav items
18 | //}
19 |
20 | // Tabs
21 | .nav-tabs.nav-stacked {
22 | border-bottom: 0;
23 | }
24 | .nav-tabs.nav-stacked > li > a {
25 | border: 1px solid #ddd;
26 | .border-radius(0);
27 | }
28 | .nav-tabs.nav-stacked > li:first-child > a {
29 | .border-top-radius(4px);
30 | }
31 | .nav-tabs.nav-stacked > li:last-child > a {
32 | .border-bottom-radius(4px);
33 | }
34 | .nav-tabs.nav-stacked > li > a:hover,
35 | .nav-tabs.nav-stacked > li > a:focus {
36 | border-color: #ddd;
37 | z-index: 2;
38 | }
39 |
40 | // Adapter
41 | .nav-tabs.nav-stacked > li + li {
42 | margin-top: 0;
43 | }
44 |
45 | // Pills
46 | .nav-pills.nav-stacked > li > a {
47 | margin-bottom: 3px;
48 | }
49 | .nav-pills.nav-stacked > li:last-child > a {
50 | margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
51 | }
52 |
53 | // Nav headers (for dropdowns and lists)
54 | .nav-header {
55 | display: block;
56 | padding: 3px 15px;
57 | font-size: 11px;
58 | font-weight: bold;
59 | line-height: @baseLineHeight;
60 | color: @grayLight;
61 | text-shadow: 0 1px 0 rgba(255,255,255,.5);
62 | text-transform: uppercase;
63 | }
64 | // Space them out when they follow another list item (link)
65 | .nav li + .nav-header {
66 | margin-top: 9px;
67 | }
68 |
69 | // TABBABLE
70 | // --------
71 |
72 |
73 | // COMMON STYLES
74 | // -------------
75 |
76 | // Clear any floats
77 | .tabbable {
78 | .clearfix();
79 | }
80 | .tab-content {
81 | overflow: auto; // prevent content from running below tabs
82 | }
83 |
84 | // Remove border on bottom, left, right
85 | .tabs-below > .nav-tabs,
86 | .tabs-right > .nav-tabs,
87 | .tabs-left > .nav-tabs {
88 | border-bottom: 0;
89 | }
90 |
91 | // Show/hide tabbable areas
92 | .tab-content > .tab-pane,
93 | .pill-content > .pill-pane {
94 | display: none;
95 | }
96 | .tab-content > .active,
97 | .pill-content > .active {
98 | display: block;
99 | }
100 |
101 | // BOTTOM
102 | // ------
103 |
104 | .tabs-below > .nav-tabs {
105 | border-top: 1px solid #ddd;
106 | }
107 | .tabs-below > .nav-tabs > li {
108 | margin-top: -1px;
109 | margin-bottom: 0;
110 | }
111 | .tabs-below > .nav-tabs > li > a {
112 | .border-radius(0 0 4px 4px);
113 | &:hover,
114 | &:focus {
115 | border-bottom-color: transparent;
116 | border-top-color: #ddd;
117 | }
118 | }
119 | .tabs-below > .nav-tabs > .active > a,
120 | .tabs-below > .nav-tabs > .active > a:hover,
121 | .tabs-below > .nav-tabs > .active > a:focus {
122 | border-color: transparent #ddd #ddd #ddd;
123 | }
124 |
125 | // LEFT & RIGHT
126 | // ------------
127 |
128 | // Common styles
129 | .tabs-left > .nav-tabs > li,
130 | .tabs-right > .nav-tabs > li {
131 | float: none;
132 | }
133 | .tabs-left > .nav-tabs > li > a,
134 | .tabs-right > .nav-tabs > li > a {
135 | min-width: 74px;
136 | margin-right: 0;
137 | margin-bottom: 3px;
138 | }
139 |
140 | // Tabs on the left
141 | .tabs-left > .nav-tabs {
142 | float: left;
143 | margin-right: 19px;
144 | border-right: 1px solid #ddd;
145 | }
146 | .tabs-left > .nav-tabs > li > a {
147 | margin-right: -1px;
148 | .border-radius(4px 0 0 4px);
149 | }
150 | .tabs-left > .nav-tabs > li > a:hover,
151 | .tabs-left > .nav-tabs > li > a:focus {
152 | border-color: @grayLighter #ddd @grayLighter @grayLighter;
153 | }
154 | .tabs-left > .nav-tabs .active > a,
155 | .tabs-left > .nav-tabs .active > a:hover,
156 | .tabs-left > .nav-tabs .active > a:focus {
157 | border-color: #ddd transparent #ddd #ddd;
158 | *border-right-color: @white;
159 | }
160 |
161 | // Tabs on the right
162 | .tabs-right > .nav-tabs {
163 | float: right;
164 | margin-left: 19px;
165 | border-left: 1px solid #ddd;
166 | }
167 | .tabs-right > .nav-tabs > li > a {
168 | margin-left: -1px;
169 | .border-radius(0 4px 4px 0);
170 | }
171 | .tabs-right > .nav-tabs > li > a:hover,
172 | .tabs-right > .nav-tabs > li > a:focus {
173 | border-color: @grayLighter @grayLighter @grayLighter #ddd;
174 | }
175 | .tabs-right > .nav-tabs .active > a,
176 | .tabs-right > .nav-tabs .active > a:hover,
177 | .tabs-right > .nav-tabs .active > a:focus {
178 | border-color: #ddd #ddd #ddd transparent;
179 | *border-left-color: @white;
180 | }
181 |
--------------------------------------------------------------------------------
/less/bootstrap2/responsive-767px-max.less:
--------------------------------------------------------------------------------
1 | //
2 | // Responsive: Landscape phone to desktop/tablet
3 | // --------------------------------------------------
4 |
5 |
6 | @media (max-width: 767px) {
7 |
8 | // Padding to set content in a bit
9 | body {
10 | padding-left: 20px;
11 | padding-right: 20px;
12 | }
13 | // Negative indent the now static "fixed" navbar
14 | .navbar-fixed-top,
15 | .navbar-fixed-bottom,
16 | .navbar-static-top {
17 | margin-left: -20px;
18 | margin-right: -20px;
19 | }
20 | // Remove padding on container given explicit padding set on body
21 | .container-fluid {
22 | padding: 0;
23 | }
24 |
25 | // TYPOGRAPHY
26 | // ----------
27 | // Reset horizontal dl
28 | .dl-horizontal {
29 | dt {
30 | float: none;
31 | clear: none;
32 | width: auto;
33 | text-align: left;
34 | }
35 | dd {
36 | margin-left: 0;
37 | }
38 | }
39 |
40 | // GRID & CONTAINERS
41 | // -----------------
42 | // Remove width from containers
43 | .container {
44 | width: auto;
45 | }
46 | // Fluid rows
47 | .row-fluid {
48 | width: 100%;
49 | }
50 | // Undo negative margin on rows and thumbnails
51 | .row,
52 | .thumbnails {
53 | margin-left: 0;
54 | }
55 | .thumbnails > li {
56 | float: none;
57 | margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
58 | }
59 | // Make all grid-sized elements block level again
60 | [class*="span"],
61 | .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
62 | .row-fluid [class*="span"] {
63 | float: none;
64 | display: block;
65 | width: 100%;
66 | margin-left: 0;
67 | .box-sizing(border-box);
68 | }
69 | .span12,
70 | .row-fluid .span12 {
71 | width: 100%;
72 | .box-sizing(border-box);
73 | }
74 | .row-fluid [class*="offset"]:first-child {
75 | margin-left: 0;
76 | }
77 |
78 | // FORM FIELDS
79 | // -----------
80 | // Make span* classes full width
81 | .input-large,
82 | .input-xlarge,
83 | .input-xxlarge,
84 | input[class*="span"],
85 | select[class*="span"],
86 | textarea[class*="span"],
87 | .uneditable-input {
88 | .input-block-level();
89 | }
90 | // But don't let it screw up prepend/append inputs
91 | .input-prepend input,
92 | .input-append input,
93 | .input-prepend input[class*="span"],
94 | .input-append input[class*="span"] {
95 | display: inline-block; // redeclare so they don't wrap to new lines
96 | width: auto;
97 | }
98 | .controls-row [class*="span"] + [class*="span"] {
99 | margin-left: 0;
100 | }
101 |
102 | // Modals
103 | // /* >>> JUI >>> */
104 | // .modal REMOVED
105 | // /* <<< JUI <<< */
106 |
107 | }
108 |
109 |
110 |
111 | // UP TO LANDSCAPE PHONE
112 | // ---------------------
113 |
114 | @media (max-width: 480px) {
115 |
116 | // Smooth out the collapsing/expanding nav
117 | .nav-collapse {
118 | -webkit-transform: translate3d(0, 0, 0); // activate the GPU
119 | }
120 |
121 | // Block level the page header small tag for readability
122 | .page-header h1 small {
123 | display: block;
124 | line-height: @baseLineHeight;
125 | }
126 |
127 | // Update checkboxes for iOS
128 | input[type="checkbox"],
129 | input[type="radio"] {
130 | border: 1px solid #ccc;
131 | }
132 |
133 | // Remove the horizontal form styles
134 | .form-horizontal {
135 | .control-label {
136 | float: none;
137 | width: auto;
138 | padding-top: 0;
139 | text-align: left;
140 | }
141 | // Move over all input controls and content
142 | .controls {
143 | margin-left: 0;
144 | }
145 | // Move the options list down to align with labels
146 | .control-list {
147 | padding-top: 0; // has to be padding because margin collaspes
148 | }
149 | // Move over buttons in .form-actions to align with .controls
150 | .form-actions {
151 | padding-left: 10px;
152 | padding-right: 10px;
153 | }
154 | }
155 |
156 | // Medias
157 | // Reset float and spacing to stack
158 | .media .pull-left,
159 | .media .pull-right {
160 | float: none;
161 | display: block;
162 | margin-bottom: 10px;
163 | }
164 | // Remove side margins since we stack instead of indent
165 | .media-object {
166 | margin-right: 0;
167 | margin-left: 0;
168 | }
169 |
170 | // Modals
171 | // > Joomla JUI
172 | // .modal REMOVED
173 | // < Joomla JUI
174 |
175 | .modal-header .close {
176 | padding: 10px;
177 | margin: -10px;
178 | }
179 |
180 | // Carousel
181 | .carousel-caption {
182 | position: static;
183 | }
184 |
185 | }
186 |
--------------------------------------------------------------------------------
/less/adapter/responsive-767px-max.less:
--------------------------------------------------------------------------------
1 | //
2 | // Responsive: Landscape phone to desktop/tablet
3 | // --------------------------------------------------
4 |
5 |
6 | @media (max-width: 767px) {
7 |
8 | // Padding to set content in a bit
9 | body {
10 | padding-left: 20px;
11 | padding-right: 20px;
12 | }
13 | // Negative indent the now static "fixed" navbar
14 | .navbar-fixed-top,
15 | .navbar-fixed-bottom,
16 | .navbar-static-top {
17 | margin-left: -20px;
18 | margin-right: -20px;
19 | }
20 | // Remove padding on container given explicit padding set on body
21 | .container-fluid {
22 | padding: 0;
23 | }
24 |
25 | // TYPOGRAPHY
26 | // ----------
27 | // Reset horizontal dl
28 | .dl-horizontal {
29 | dt {
30 | float: none;
31 | clear: none;
32 | width: auto;
33 | text-align: left;
34 | }
35 | dd {
36 | margin-left: 0;
37 | }
38 | }
39 |
40 | // GRID & CONTAINERS
41 | // -----------------
42 | // Remove width from containers
43 | .container {
44 | width: auto;
45 | }
46 | // Fluid rows
47 | .row-fluid {
48 | width: 100%;
49 | }
50 | // Undo negative margin on rows and thumbnails
51 | .row,
52 | .thumbnails {
53 | margin-left: 0;
54 | }
55 | .thumbnails > li {
56 | float: none;
57 | margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
58 | }
59 | // Make all grid-sized elements block level again
60 | [class*="span"],
61 | .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
62 | .row-fluid [class*="span"] {
63 | float: none;
64 | display: block;
65 | width: 100%;
66 | margin-left: 0;
67 | .box-sizing(border-box);
68 | }
69 | .span12,
70 | .row-fluid .span12 {
71 | width: 100%;
72 | .box-sizing(border-box);
73 | }
74 | .row-fluid [class*="offset"]:first-child {
75 | margin-left: 0;
76 | }
77 |
78 | // FORM FIELDS
79 | // -----------
80 | // Make span* classes full width
81 | .input-large,
82 | .input-xlarge,
83 | .input-xxlarge,
84 | input[class*="span"],
85 | select[class*="span"],
86 | textarea[class*="span"],
87 | .uneditable-input {
88 | .input-block-level();
89 | }
90 | // But don't let it screw up prepend/append inputs
91 | .input-prepend input,
92 | .input-append input,
93 | .input-prepend input[class*="span"],
94 | .input-append input[class*="span"] {
95 | display: inline-block; // redeclare so they don't wrap to new lines
96 | width: auto;
97 | }
98 | .controls-row [class*="span"] + [class*="span"] {
99 | margin-left: 0;
100 | }
101 |
102 | // Modals
103 | .modal.hide {
104 | position: fixed;
105 | top: 20px;
106 | left: 20px;
107 | right: 20px;
108 | width: auto;
109 | margin: 0;
110 | &.fade { top: -100px; }
111 | &.fade.in { top: 20px; }
112 | }
113 |
114 | }
115 |
116 |
117 |
118 | // UP TO LANDSCAPE PHONE
119 | // ---------------------
120 |
121 | @media (max-width: 480px) {
122 |
123 | // Smooth out the collapsing/expanding nav
124 | .nav-collapse {
125 | -webkit-transform: translate3d(0, 0, 0); // activate the GPU
126 | }
127 |
128 | // Block level the page header small tag for readability
129 | .page-header h1 small {
130 | display: block;
131 | line-height: @baseLineHeight;
132 | }
133 |
134 | // Update checkboxes for iOS
135 | input[type="checkbox"],
136 | input[type="radio"] {
137 | border: 1px solid #ccc;
138 | }
139 |
140 | // Remove the horizontal form styles
141 | .form-horizontal {
142 | .control-label {
143 | float: none;
144 | width: auto;
145 | padding-top: 0;
146 | text-align: left;
147 | }
148 | // Move over all input controls and content
149 | .controls {
150 | margin-left: 0;
151 | }
152 | // Move the options list down to align with labels
153 | .control-list {
154 | padding-top: 0; // has to be padding because margin collaspes
155 | }
156 | // Move over buttons in .form-actions to align with .controls
157 | .form-actions {
158 | padding-left: 10px;
159 | padding-right: 10px;
160 | }
161 | }
162 |
163 | // Medias
164 | // Reset float and spacing to stack
165 | .media .pull-left,
166 | .media .pull-right {
167 | float: none;
168 | display: block;
169 | margin-bottom: 10px;
170 | }
171 | // Remove side margins since we stack instead of indent
172 | .media-object {
173 | margin-right: 0;
174 | margin-left: 0;
175 | }
176 |
177 | // Modals
178 | .modal.hide {
179 | top: 10px;
180 | left: 10px;
181 | right: 10px;
182 | }
183 | .modal-header .close {
184 | padding: 10px;
185 | margin: -10px;
186 | }
187 |
188 | // Carousel
189 | .carousel-caption {
190 | position: static;
191 | }
192 |
193 | }
194 |
--------------------------------------------------------------------------------
/less/bootstrap3/input-groups.less:
--------------------------------------------------------------------------------
1 | //
2 | // Input groups
3 | // --------------------------------------------------
4 |
5 | // Base styles
6 | // -------------------------
7 | .input-group {
8 | position: relative; // For dropdowns
9 | display: table;
10 | border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11 |
12 | // Undo padding and float of grid classes
13 | &[class*="col-"] {
14 | float: none;
15 | padding-left: 0;
16 | padding-right: 0;
17 | }
18 |
19 | .form-control {
20 | // Ensure that the input is always above the *appended* addon button for
21 | // proper border colors.
22 | position: relative;
23 | z-index: 2;
24 |
25 | // IE9 fubars the placeholder attribute in text inputs and the arrows on
26 | // select elements in input groups. To fix it, we float the input. Details:
27 | // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
28 | float: left;
29 |
30 | width: 100%;
31 | margin-bottom: 0;
32 | }
33 | }
34 |
35 | // Sizing options
36 | //
37 | // Remix the default form control sizing classes into new ones for easier
38 | // manipulation.
39 |
40 | .input-group-lg > .form-control,
41 | .input-group-lg > .input-group-addon,
42 | .input-group-lg > .input-group-btn > .btn { .input-lg(); }
43 | .input-group-sm > .form-control,
44 | .input-group-sm > .input-group-addon,
45 | .input-group-sm > .input-group-btn > .btn { .input-sm(); }
46 |
47 |
48 | // Display as table-cell
49 | // -------------------------
50 | .input-group-addon,
51 | .input-group-btn,
52 | .input-group .form-control {
53 | display: table-cell;
54 |
55 | &:not(:first-child):not(:last-child) {
56 | border-radius: 0;
57 | }
58 | }
59 | // Addon and addon wrapper for buttons
60 | .input-group-addon,
61 | .input-group-btn {
62 | width: 1%;
63 | white-space: nowrap;
64 | vertical-align: middle; // Match the inputs
65 | }
66 |
67 | // Text input groups
68 | // -------------------------
69 | .input-group-addon {
70 | padding: @padding-base-vertical @padding-base-horizontal;
71 | font-size: @font-size-base;
72 | font-weight: normal;
73 | line-height: 1;
74 | color: @input-color;
75 | text-align: center;
76 | background-color: @input-group-addon-bg;
77 | border: 1px solid @input-group-addon-border-color;
78 | border-radius: @border-radius-base;
79 |
80 | // Sizing
81 | &.input-sm {
82 | padding: @padding-small-vertical @padding-small-horizontal;
83 | font-size: @font-size-small;
84 | border-radius: @border-radius-small;
85 | }
86 | &.input-lg {
87 | padding: @padding-large-vertical @padding-large-horizontal;
88 | font-size: @font-size-large;
89 | border-radius: @border-radius-large;
90 | }
91 |
92 | // Nuke default margins from checkboxes and radios to vertically center within.
93 | input[type="radio"],
94 | input[type="checkbox"] {
95 | margin-top: 0;
96 | }
97 | }
98 |
99 | // Reset rounded corners
100 | .input-group .form-control:first-child,
101 | .input-group-addon:first-child,
102 | .input-group-btn:first-child > .btn,
103 | .input-group-btn:first-child > .btn-group > .btn,
104 | .input-group-btn:first-child > .dropdown-toggle,
105 | .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
106 | .input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
107 | .border-right-radius(0);
108 | }
109 | .input-group-addon:first-child {
110 | border-right: 0;
111 | }
112 | .input-group .form-control:last-child,
113 | .input-group-addon:last-child,
114 | .input-group-btn:last-child > .btn,
115 | .input-group-btn:last-child > .btn-group > .btn,
116 | .input-group-btn:last-child > .dropdown-toggle,
117 | .input-group-btn:first-child > .btn:not(:first-child),
118 | .input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
119 | .border-left-radius(0);
120 | }
121 | .input-group-addon:last-child {
122 | border-left: 0;
123 | }
124 |
125 | // Button input groups
126 | // -------------------------
127 | .input-group-btn {
128 | position: relative;
129 | // Jankily prevent input button groups from wrapping with `white-space` and
130 | // `font-size` in combination with `inline-block` on buttons.
131 | font-size: 0;
132 | white-space: nowrap;
133 |
134 | // Negative margin for spacing, position for bringing hovered/focused/actived
135 | // element above the siblings.
136 | > .btn {
137 | position: relative;
138 | + .btn {
139 | margin-left: -1px;
140 | }
141 | // Bring the "active" button to the front
142 | &:hover,
143 | &:focus,
144 | &:active {
145 | z-index: 2;
146 | }
147 | }
148 |
149 | // Negative margin to only have a 1px border between the two
150 | &:first-child {
151 | > .btn,
152 | > .btn-group {
153 | margin-right: -1px;
154 | }
155 | }
156 | &:last-child {
157 | > .btn,
158 | > .btn-group {
159 | margin-left: -1px;
160 | }
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/less/adapter/responsive-navbar.less:
--------------------------------------------------------------------------------
1 | //
2 | // Responsive: Navbar
3 | // --------------------------------------------------
4 |
5 |
6 | // TABLETS AND BELOW
7 | // -----------------
8 | @media (max-width: @navbarCollapseWidth) {
9 |
10 | // UNFIX THE TOPBAR
11 | // ----------------
12 | // Remove any padding from the body
13 | body {
14 | padding-top: 0;
15 | }
16 | // Unfix the navbars
17 | .navbar-fixed-top,
18 | .navbar-fixed-bottom {
19 | position: static;
20 | }
21 | .navbar-fixed-top {
22 | margin-bottom: @baseLineHeight;
23 | }
24 | .navbar-fixed-bottom {
25 | margin-top: @baseLineHeight;
26 | }
27 | .navbar-fixed-top .navbar-inner,
28 | .navbar-fixed-bottom .navbar-inner {
29 | padding: 5px;
30 | }
31 | .navbar .container {
32 | width: auto;
33 | padding: 0;
34 | }
35 | // Account for brand name
36 | .navbar .brand {
37 | padding-left: 10px;
38 | padding-right: 10px;
39 | margin: 0 0 0 -5px;
40 | }
41 |
42 | // COLLAPSIBLE NAVBAR
43 | // ------------------
44 | // Nav collapse clears brand
45 | .nav-collapse {
46 | clear: both;
47 | }
48 | // Block-level the nav
49 | .nav-collapse .nav {
50 | float: none;
51 | margin: 0 0 (@baseLineHeight / 2);
52 | }
53 | .nav-collapse .nav > li {
54 | float: none;
55 | }
56 | .nav-collapse .nav > li > a {
57 | margin-bottom: 2px;
58 | }
59 | .nav-collapse .nav > .divider-vertical {
60 | display: none;
61 | }
62 | .nav-collapse .nav .nav-header {
63 | color: @navbarText;
64 | text-shadow: none;
65 | }
66 | // Nav and dropdown links in navbar
67 | .nav-collapse .nav > li > a,
68 | .nav-collapse .dropdown-menu a {
69 | padding: 9px 15px;
70 | font-weight: bold;
71 | color: @navbarLinkColor;
72 | .border-radius(3px);
73 | }
74 | // Buttons
75 | .nav-collapse .btn {
76 | padding: 4px 10px 4px;
77 | font-weight: normal;
78 | .border-radius(@baseBorderRadius);
79 | }
80 | .nav-collapse .dropdown-menu li + li a {
81 | margin-bottom: 2px;
82 | }
83 | .nav-collapse .nav > li > a:hover,
84 | .nav-collapse .nav > li > a:focus,
85 | .nav-collapse .dropdown-menu a:hover,
86 | .nav-collapse .dropdown-menu a:focus {
87 | background-color: @navbarBackground;
88 | }
89 | .navbar-inverse .nav-collapse .nav > li > a,
90 | .navbar-inverse .nav-collapse .dropdown-menu a {
91 | color: @navbarInverseLinkColor;
92 | }
93 | .navbar-inverse .nav-collapse .nav > li > a:hover,
94 | .navbar-inverse .nav-collapse .nav > li > a:focus,
95 | .navbar-inverse .nav-collapse .dropdown-menu a:hover,
96 | .navbar-inverse .nav-collapse .dropdown-menu a:focus {
97 | background-color: @navbarInverseBackground;
98 | }
99 | // Buttons in the navbar
100 | .nav-collapse.in .btn-group {
101 | margin-top: 5px;
102 | padding: 0;
103 | }
104 | // Dropdowns in the navbar
105 | .nav-collapse .dropdown-menu {
106 | position: static;
107 | top: auto;
108 | left: auto;
109 | float: none;
110 | display: none;
111 | max-width: none;
112 | margin: 0 15px;
113 | padding: 0;
114 | background-color: transparent;
115 | border: none;
116 | .border-radius(0);
117 | .box-shadow(none);
118 | }
119 | .nav-collapse .open > .dropdown-menu {
120 | display: block;
121 | }
122 |
123 | .nav-collapse .dropdown-menu:before,
124 | .nav-collapse .dropdown-menu:after {
125 | display: none;
126 | }
127 | .nav-collapse .dropdown-menu .divider {
128 | display: none;
129 | }
130 | .nav-collapse .nav > li > .dropdown-menu {
131 | &:before,
132 | &:after {
133 | display: none;
134 | }
135 | }
136 | // Forms in navbar
137 | .nav-collapse .navbar-form,
138 | .nav-collapse .navbar-search {
139 | float: none;
140 | padding: (@baseLineHeight / 2) 15px;
141 | margin: (@baseLineHeight / 2) 0;
142 | border-top: 1px solid @navbarBackground;
143 | border-bottom: 1px solid @navbarBackground;
144 | .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
145 | }
146 | .navbar-inverse .nav-collapse .navbar-form,
147 | .navbar-inverse .nav-collapse .navbar-search {
148 | border-top-color: @navbarInverseBackground;
149 | border-bottom-color: @navbarInverseBackground;
150 | }
151 | // Pull right (secondary) nav content
152 | .navbar .nav-collapse .nav.pull-right {
153 | float: none;
154 | margin-left: 0;
155 | }
156 | // Hide everything in the navbar save .brand and toggle button */
157 | .nav-collapse,
158 | .nav-collapse.collapse {
159 | overflow: hidden;
160 | height: 0;
161 | }
162 | // Navbar button
163 | .navbar .btn-navbar {
164 | display: block;
165 | }
166 |
167 | // STATIC NAVBAR
168 | // -------------
169 | .navbar-static .navbar-inner {
170 | padding-left: 10px;
171 | padding-right: 10px;
172 | }
173 |
174 |
175 | }
176 |
177 |
178 | // DEFAULT DESKTOP
179 | // ---------------
180 |
181 | @media (min-width: @navbarCollapseDesktopWidth) {
182 |
183 | // Required to make the collapsing navbar work on regular desktops
184 | .nav-collapse.collapse {
185 | height: auto !important;
186 | overflow: visible !important;
187 | }
188 |
189 | }
190 |
--------------------------------------------------------------------------------
/less/bootstrap2/responsive-navbar.less:
--------------------------------------------------------------------------------
1 | //
2 | // Responsive: Navbar
3 | // --------------------------------------------------
4 |
5 |
6 | // TABLETS AND BELOW
7 | // -----------------
8 | @media (max-width: @navbarCollapseWidth) {
9 |
10 | // UNFIX THE TOPBAR
11 | // ----------------
12 | // Remove any padding from the body
13 | body {
14 | padding-top: 0;
15 | }
16 | // Unfix the navbars
17 | .navbar-fixed-top,
18 | .navbar-fixed-bottom {
19 | position: static;
20 | }
21 | .navbar-fixed-top {
22 | margin-bottom: @baseLineHeight;
23 | }
24 | .navbar-fixed-bottom {
25 | margin-top: @baseLineHeight;
26 | }
27 | .navbar-fixed-top .navbar-inner,
28 | .navbar-fixed-bottom .navbar-inner {
29 | padding: 5px;
30 | }
31 | .navbar .container {
32 | width: auto;
33 | padding: 0;
34 | }
35 | // Account for brand name
36 | .navbar .brand {
37 | padding-left: 10px;
38 | padding-right: 10px;
39 | margin: 0 0 0 -5px;
40 | }
41 |
42 | // COLLAPSIBLE NAVBAR
43 | // ------------------
44 | // Nav collapse clears brand
45 | .nav-collapse {
46 | clear: both;
47 | }
48 | // Block-level the nav
49 | .nav-collapse .nav {
50 | float: none;
51 | margin: 0 0 (@baseLineHeight / 2);
52 | }
53 | .nav-collapse .nav > li {
54 | float: none;
55 | }
56 | .nav-collapse .nav > li > a {
57 | margin-bottom: 2px;
58 | }
59 | .nav-collapse .nav > .divider-vertical {
60 | display: none;
61 | }
62 | .nav-collapse .nav .nav-header {
63 | color: @navbarText;
64 | text-shadow: none;
65 | }
66 | // Nav and dropdown links in navbar
67 | .nav-collapse .nav > li > a,
68 | .nav-collapse .dropdown-menu a {
69 | padding: 9px 15px;
70 | font-weight: bold;
71 | color: @navbarLinkColor;
72 | .border-radius(3px);
73 | }
74 | // Buttons
75 | .nav-collapse .btn {
76 | padding: 4px 10px 4px;
77 | font-weight: normal;
78 | .border-radius(@baseBorderRadius);
79 | }
80 | .nav-collapse .dropdown-menu li + li a {
81 | margin-bottom: 2px;
82 | }
83 | .nav-collapse .nav > li > a:hover,
84 | .nav-collapse .nav > li > a:focus,
85 | .nav-collapse .dropdown-menu a:hover,
86 | .nav-collapse .dropdown-menu a:focus {
87 | background-color: @navbarBackground;
88 | }
89 | .navbar-inverse .nav-collapse .nav > li > a,
90 | .navbar-inverse .nav-collapse .dropdown-menu a {
91 | color: @navbarInverseLinkColor;
92 | }
93 | .navbar-inverse .nav-collapse .nav > li > a:hover,
94 | .navbar-inverse .nav-collapse .nav > li > a:focus,
95 | .navbar-inverse .nav-collapse .dropdown-menu a:hover,
96 | .navbar-inverse .nav-collapse .dropdown-menu a:focus {
97 | background-color: @navbarInverseBackground;
98 | }
99 | // Buttons in the navbar
100 | .nav-collapse.in .btn-group {
101 | margin-top: 5px;
102 | padding: 0;
103 | }
104 | // Dropdowns in the navbar
105 | .nav-collapse .dropdown-menu {
106 | position: static;
107 | top: auto;
108 | left: auto;
109 | float: none;
110 | display: none;
111 | max-width: none;
112 | margin: 0 15px;
113 | padding: 0;
114 | background-color: transparent;
115 | border: none;
116 | .border-radius(0);
117 | .box-shadow(none);
118 | }
119 | .nav-collapse .open > .dropdown-menu {
120 | display: block;
121 | }
122 |
123 | .nav-collapse .dropdown-menu:before,
124 | .nav-collapse .dropdown-menu:after {
125 | display: none;
126 | }
127 | .nav-collapse .dropdown-menu .divider {
128 | display: none;
129 | }
130 | .nav-collapse .nav > li > .dropdown-menu {
131 | &:before,
132 | &:after {
133 | display: none;
134 | }
135 | }
136 | // Forms in navbar
137 | .nav-collapse .navbar-form,
138 | .nav-collapse .navbar-search {
139 | float: none;
140 | padding: (@baseLineHeight / 2) 15px;
141 | margin: (@baseLineHeight / 2) 0;
142 | border-top: 1px solid @navbarBackground;
143 | border-bottom: 1px solid @navbarBackground;
144 | .box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
145 | }
146 | .navbar-inverse .nav-collapse .navbar-form,
147 | .navbar-inverse .nav-collapse .navbar-search {
148 | border-top-color: @navbarInverseBackground;
149 | border-bottom-color: @navbarInverseBackground;
150 | }
151 | // Pull right (secondary) nav content
152 | .navbar .nav-collapse .nav.pull-right {
153 | float: none;
154 | margin-left: 0;
155 | }
156 | // Hide everything in the navbar save .brand and toggle button */
157 | .nav-collapse,
158 | .nav-collapse.collapse {
159 | overflow: hidden;
160 | height: 0;
161 | }
162 | // Navbar button
163 | .navbar .btn-navbar {
164 | display: block;
165 | }
166 |
167 | // STATIC NAVBAR
168 | // -------------
169 | .navbar-static .navbar-inner {
170 | padding-left: 10px;
171 | padding-right: 10px;
172 | }
173 |
174 |
175 | }
176 |
177 |
178 | // DEFAULT DESKTOP
179 | // ---------------
180 |
181 | @media (min-width: @navbarCollapseDesktopWidth) {
182 |
183 | // Required to make the collapsing navbar work on regular desktops
184 | .nav-collapse.collapse {
185 | height: auto !important;
186 | overflow: visible !important;
187 | }
188 |
189 | }
190 |
--------------------------------------------------------------------------------
/less/bootstrap2/reset.less:
--------------------------------------------------------------------------------
1 | //
2 | // Reset CSS
3 | // Adapted from http://github.com/necolas/normalize.css
4 | // --------------------------------------------------
5 |
6 |
7 | // Display in IE6-9 and FF3
8 | // -------------------------
9 |
10 | article,
11 | aside,
12 | details,
13 | figcaption,
14 | figure,
15 | footer,
16 | header,
17 | hgroup,
18 | nav,
19 | section {
20 | display: block;
21 | }
22 |
23 | // Display block in IE6-9 and FF3
24 | // -------------------------
25 |
26 | audio,
27 | canvas,
28 | video {
29 | display: inline-block;
30 | *display: inline;
31 | *zoom: 1;
32 | }
33 |
34 | // Prevents modern browsers from displaying 'audio' without controls
35 | // -------------------------
36 |
37 | audio:not([controls]) {
38 | display: none;
39 | }
40 |
41 | // Base settings
42 | // -------------------------
43 |
44 | html {
45 | font-size: 100%;
46 | -webkit-text-size-adjust: 100%;
47 | -ms-text-size-adjust: 100%;
48 | }
49 | // Focus states
50 | a:focus {
51 | .tab-focus();
52 | }
53 | // Hover & Active
54 | a:hover,
55 | a:active {
56 | outline: 0;
57 | }
58 |
59 | // Prevents sub and sup affecting line-height in all browsers
60 | // -------------------------
61 |
62 | sub,
63 | sup {
64 | position: relative;
65 | font-size: 75%;
66 | line-height: 0;
67 | vertical-align: baseline;
68 | }
69 | sup {
70 | top: -0.5em;
71 | }
72 | sub {
73 | bottom: -0.25em;
74 | }
75 |
76 | // Img border in a's and image quality
77 | // -------------------------
78 |
79 | img {
80 | /* Responsive images (ensure images don't scale beyond their parents) */
81 | max-width: 100%; /* Part 1: Set a maxium relative to the parent */
82 | width: auto\9; /* IE7-8 need help adjusting responsive images */
83 | height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
84 |
85 | vertical-align: middle;
86 | border: 0;
87 | -ms-interpolation-mode: bicubic;
88 | }
89 |
90 | // Prevent max-width from affecting Google Maps
91 | #map_canvas img,
92 | .google-maps img {
93 | max-width: none;
94 | }
95 |
96 | // Forms
97 | // -------------------------
98 |
99 | // Font size in all browsers, margin changes, misc consistency
100 | button,
101 | input,
102 | select,
103 | textarea {
104 | margin: 0;
105 | font-size: 100%;
106 | vertical-align: middle;
107 | }
108 | button,
109 | input {
110 | *overflow: visible; // Inner spacing ie IE6/7
111 | line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
112 | }
113 | button::-moz-focus-inner,
114 | input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
115 | padding: 0;
116 | border: 0;
117 | }
118 | button,
119 | html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
120 | input[type="reset"],
121 | input[type="submit"] {
122 | -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
123 | cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
124 | }
125 | label,
126 | select,
127 | button,
128 | input[type="button"],
129 | input[type="reset"],
130 | input[type="submit"],
131 | input[type="radio"],
132 | input[type="checkbox"] {
133 | cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
134 | }
135 | input[type="search"] { // Appearance in Safari/Chrome
136 | .box-sizing(content-box);
137 | -webkit-appearance: textfield;
138 | }
139 | input[type="search"]::-webkit-search-decoration,
140 | input[type="search"]::-webkit-search-cancel-button {
141 | -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
142 | }
143 | textarea {
144 | overflow: auto; // Remove vertical scrollbar in IE6-9
145 | vertical-align: top; // Readability and alignment cross-browser
146 | }
147 |
148 |
149 | // Printing
150 | // -------------------------
151 | // Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
152 |
153 | @media print {
154 |
155 | * {
156 | text-shadow: none !important;
157 | color: #000 !important; // Black prints faster: h5bp.com/s
158 | background: transparent !important;
159 | box-shadow: none !important;
160 | }
161 |
162 | a,
163 | a:visited {
164 | text-decoration: underline;
165 | }
166 |
167 | a[href]:after {
168 | content: " (" attr(href) ")";
169 | }
170 |
171 | abbr[title]:after {
172 | content: " (" attr(title) ")";
173 | }
174 |
175 | // Don't show links for images, or javascript/internal links
176 | .ir a:after,
177 | a[href^="javascript:"]:after,
178 | a[href^="#"]:after {
179 | content: "";
180 | }
181 |
182 | pre,
183 | blockquote {
184 | border: 1px solid #999;
185 | page-break-inside: avoid;
186 | }
187 |
188 | thead {
189 | display: table-header-group; // h5bp.com/t
190 | }
191 |
192 | tr,
193 | img {
194 | page-break-inside: avoid;
195 | }
196 |
197 | img {
198 | max-width: 100% !important;
199 | }
200 |
201 | @page {
202 | margin: 0.5cm;
203 | }
204 |
205 | p,
206 | h2,
207 | h3 {
208 | orphans: 3;
209 | widows: 3;
210 | }
211 |
212 | h2,
213 | h3 {
214 | page-break-after: avoid;
215 | }
216 | }
217 |
--------------------------------------------------------------------------------
/less/bootstrap3/tables.less:
--------------------------------------------------------------------------------
1 | //
2 | // Tables
3 | // --------------------------------------------------
4 |
5 |
6 | table {
7 | max-width: 100%;
8 | background-color: @table-bg;
9 | }
10 | th {
11 | text-align: left;
12 | }
13 |
14 |
15 | // Baseline styles
16 |
17 | .table {
18 | width: 100%;
19 | margin-bottom: @line-height-computed;
20 | // Cells
21 | > thead,
22 | > tbody,
23 | > tfoot {
24 | > tr {
25 | > th,
26 | > td {
27 | padding: @table-cell-padding;
28 | line-height: @line-height-base;
29 | vertical-align: top;
30 | border-top: 1px solid @table-border-color;
31 | }
32 | }
33 | }
34 | // Bottom align for column headings
35 | > thead > tr > th {
36 | vertical-align: bottom;
37 | border-bottom: 2px solid @table-border-color;
38 | }
39 | // Remove top border from thead by default
40 | > caption + thead,
41 | > colgroup + thead,
42 | > thead:first-child {
43 | > tr:first-child {
44 | > th,
45 | > td {
46 | border-top: 0;
47 | }
48 | }
49 | }
50 | // Account for multiple tbody instances
51 | > tbody + tbody {
52 | border-top: 2px solid @table-border-color;
53 | }
54 |
55 | // Nesting
56 | .table {
57 | background-color: @body-bg;
58 | }
59 | }
60 |
61 |
62 | // Condensed table w/ half padding
63 |
64 | .table-condensed {
65 | > thead,
66 | > tbody,
67 | > tfoot {
68 | > tr {
69 | > th,
70 | > td {
71 | padding: @table-condensed-cell-padding;
72 | }
73 | }
74 | }
75 | }
76 |
77 |
78 | // Bordered version
79 | //
80 | // Add borders all around the table and between all the columns.
81 |
82 | .table-bordered {
83 | border: 1px solid @table-border-color;
84 | > thead,
85 | > tbody,
86 | > tfoot {
87 | > tr {
88 | > th,
89 | > td {
90 | border: 1px solid @table-border-color;
91 | }
92 | }
93 | }
94 | > thead > tr {
95 | > th,
96 | > td {
97 | border-bottom-width: 2px;
98 | }
99 | }
100 | }
101 |
102 |
103 | // Zebra-striping
104 | //
105 | // Default zebra-stripe styles (alternating gray and transparent backgrounds)
106 |
107 | .table-striped {
108 | > tbody > tr:nth-child(odd) {
109 | > td,
110 | > th {
111 | background-color: @table-bg-accent;
112 | }
113 | }
114 | }
115 |
116 |
117 | // Hover effect
118 | //
119 | // Placed here since it has to come after the potential zebra striping
120 |
121 | .table-hover {
122 | > tbody > tr:hover {
123 | > td,
124 | > th {
125 | background-color: @table-bg-hover;
126 | }
127 | }
128 | }
129 |
130 |
131 | // Table cell sizing
132 | //
133 | // Reset default table behavior
134 |
135 | table col[class*="col-"] {
136 | position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
137 | float: none;
138 | display: table-column;
139 | }
140 | table {
141 | td,
142 | th {
143 | &[class*="col-"] {
144 | position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
145 | float: none;
146 | display: table-cell;
147 | }
148 | }
149 | }
150 |
151 |
152 | // Table backgrounds
153 | //
154 | // Exact selectors below required to override `.table-striped` and prevent
155 | // inheritance to nested tables.
156 |
157 | // Generate the contextual variants
158 | .table-row-variant(active; @table-bg-active);
159 | .table-row-variant(success; @state-success-bg);
160 | .table-row-variant(info; @state-info-bg);
161 | .table-row-variant(warning; @state-warning-bg);
162 | .table-row-variant(danger; @state-danger-bg);
163 |
164 |
165 | // Responsive tables
166 | //
167 | // Wrap your tables in `.table-responsive` and we'll make them mobile friendly
168 | // by enabling horizontal scrolling. Only applies <768px. Everything above that
169 | // will display normally.
170 |
171 | @media (max-width: @screen-xs-max) {
172 | .table-responsive {
173 | width: 100%;
174 | margin-bottom: (@line-height-computed * 0.75);
175 | overflow-y: hidden;
176 | overflow-x: scroll;
177 | -ms-overflow-style: -ms-autohiding-scrollbar;
178 | border: 1px solid @table-border-color;
179 | -webkit-overflow-scrolling: touch;
180 |
181 | // Tighten up spacing
182 | > .table {
183 | margin-bottom: 0;
184 |
185 | // Ensure the content doesn't wrap
186 | > thead,
187 | > tbody,
188 | > tfoot {
189 | > tr {
190 | > th,
191 | > td {
192 | white-space: nowrap;
193 | }
194 | }
195 | }
196 | }
197 |
198 | // Special overrides for the bordered tables
199 | > .table-bordered {
200 | border: 0;
201 |
202 | // Nuke the appropriate borders so that the parent can handle them
203 | > thead,
204 | > tbody,
205 | > tfoot {
206 | > tr {
207 | > th:first-child,
208 | > td:first-child {
209 | border-left: 0;
210 | }
211 | > th:last-child,
212 | > td:last-child {
213 | border-right: 0;
214 | }
215 | }
216 | }
217 |
218 | // Only nuke the last row's bottom-border in `tbody` and `tfoot` since
219 | // chances are there will be only one `tr` in a `thead` and that would
220 | // remove the border altogether.
221 | > tbody,
222 | > tfoot {
223 | > tr:last-child {
224 | > th,
225 | > td {
226 | border-bottom: 0;
227 | }
228 | }
229 | }
230 |
231 | }
232 | }
233 | }
234 |
--------------------------------------------------------------------------------
/less/bootstrap3/dropdowns.less:
--------------------------------------------------------------------------------
1 | //
2 | // Dropdown menus
3 | // --------------------------------------------------
4 |
5 |
6 | // Dropdown arrow/caret
7 | .caret {
8 | display: inline-block;
9 | width: 0;
10 | height: 0;
11 | margin-left: 2px;
12 | vertical-align: middle;
13 | border-top: @caret-width-base solid;
14 | border-right: @caret-width-base solid transparent;
15 | border-left: @caret-width-base solid transparent;
16 | }
17 |
18 | // The dropdown wrapper (div)
19 | .dropdown {
20 | position: relative;
21 | }
22 |
23 | // Prevent the focus on the dropdown toggle when closing dropdowns
24 | .dropdown-toggle:focus {
25 | outline: 0;
26 | }
27 |
28 | // The dropdown menu (ul)
29 | .dropdown-menu {
30 | position: absolute;
31 | top: 100%;
32 | left: 0;
33 | z-index: @zindex-dropdown;
34 | display: none; // none by default, but block on "open" of the menu
35 | float: left;
36 | min-width: 160px;
37 | padding: 5px 0;
38 | margin: 2px 0 0; // override default ul
39 | list-style: none;
40 | font-size: @font-size-base;
41 | background-color: @dropdown-bg;
42 | border: 1px solid @dropdown-fallback-border; // IE8 fallback
43 | border: 1px solid @dropdown-border;
44 | border-radius: @border-radius-base;
45 | .box-shadow(0 6px 12px rgba(0,0,0,.175));
46 | background-clip: padding-box;
47 |
48 | // Aligns the dropdown menu to right
49 | //
50 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
51 | &.pull-right {
52 | right: 0;
53 | left: auto;
54 | }
55 |
56 | // Dividers (basically an hr) within the dropdown
57 | .divider {
58 | .nav-divider(@dropdown-divider-bg);
59 | }
60 |
61 | // Links within the dropdown menu
62 | > li > a {
63 | display: block;
64 | padding: 3px 20px;
65 | clear: both;
66 | font-weight: normal;
67 | line-height: @line-height-base;
68 | color: @dropdown-link-color;
69 | white-space: nowrap; // prevent links from randomly breaking onto new lines
70 | }
71 | }
72 |
73 | // Hover/Focus state
74 | .dropdown-menu > li > a {
75 | &:hover,
76 | &:focus {
77 | text-decoration: none;
78 | color: @dropdown-link-hover-color;
79 | background-color: @dropdown-link-hover-bg;
80 | }
81 | }
82 |
83 | // Active state
84 | .dropdown-menu > .active > a {
85 | &,
86 | &:hover,
87 | &:focus {
88 | color: @dropdown-link-active-color;
89 | text-decoration: none;
90 | outline: 0;
91 | background-color: @dropdown-link-active-bg;
92 | }
93 | }
94 |
95 | // Disabled state
96 | //
97 | // Gray out text and ensure the hover/focus state remains gray
98 |
99 | .dropdown-menu > .disabled > a {
100 | &,
101 | &:hover,
102 | &:focus {
103 | color: @dropdown-link-disabled-color;
104 | }
105 | }
106 | // Nuke hover/focus effects
107 | .dropdown-menu > .disabled > a {
108 | &:hover,
109 | &:focus {
110 | text-decoration: none;
111 | background-color: transparent;
112 | background-image: none; // Remove CSS gradient
113 | .reset-filter();
114 | cursor: not-allowed;
115 | }
116 | }
117 |
118 | // Open state for the dropdown
119 | .open {
120 | // Show the menu
121 | > .dropdown-menu {
122 | display: block;
123 | }
124 |
125 | // Remove the outline when :focus is triggered
126 | > a {
127 | outline: 0;
128 | }
129 | }
130 |
131 | // Menu positioning
132 | //
133 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
134 | // menu with the parent.
135 | .dropdown-menu-right {
136 | left: auto; // Reset the default from `.dropdown-menu`
137 | right: 0;
138 | }
139 | // With v3, we enabled auto-flipping if you have a dropdown within a right
140 | // aligned nav component. To enable the undoing of that, we provide an override
141 | // to restore the default dropdown menu alignment.
142 | //
143 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or
144 | // `.pull-right` nav component.
145 | .dropdown-menu-left {
146 | left: 0;
147 | right: auto;
148 | }
149 |
150 | // Dropdown section headers
151 | .dropdown-header {
152 | display: block;
153 | padding: 3px 20px;
154 | font-size: @font-size-small;
155 | line-height: @line-height-base;
156 | color: @dropdown-header-color;
157 | }
158 |
159 | // Backdrop to catch body clicks on mobile, etc.
160 | .dropdown-backdrop {
161 | position: fixed;
162 | left: 0;
163 | right: 0;
164 | bottom: 0;
165 | top: 0;
166 | z-index: (@zindex-dropdown - 10);
167 | }
168 |
169 | // Right aligned dropdowns
170 | .pull-right > .dropdown-menu {
171 | right: 0;
172 | left: auto;
173 | }
174 |
175 | // Allow for dropdowns to go bottom up (aka, dropup-menu)
176 | //
177 | // Just add .dropup after the standard .dropdown class and you're set, bro.
178 | // TODO: abstract this so that the navbar fixed styles are not placed here?
179 |
180 | .dropup,
181 | .navbar-fixed-bottom .dropdown {
182 | // Reverse the caret
183 | .caret {
184 | border-top: 0;
185 | border-bottom: @caret-width-base solid;
186 | content: "";
187 | }
188 | // Different positioning for bottom up menu
189 | .dropdown-menu {
190 | top: auto;
191 | bottom: 100%;
192 | margin-bottom: 1px;
193 | }
194 | }
195 |
196 |
197 | // Component alignment
198 | //
199 | // Reiterate per navbar.less and the modified component alignment there.
200 |
201 | @media (min-width: @grid-float-breakpoint) {
202 | .navbar-right {
203 | .dropdown-menu {
204 | .dropdown-menu-right();
205 | }
206 | // Necessary for overrides of the default right aligned menu.
207 | // Will remove come v4 in all likelihood.
208 | .dropdown-menu-left {
209 | .dropdown-menu-left();
210 | }
211 | }
212 | }
213 |
214 |
--------------------------------------------------------------------------------