kl. Text?nderung
3 // Load core variables and mixins
4 // --------------------------------------------------
6 @import "variables.less";
13 // --------------------------------------------------
22 text-shadow: 0 -1px 0 rgba(0,0,0,.2);
23 @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
29 .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
33 // Mixin for generating new styles
34 .btn-styles(@btn-color: #555) {
35 #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
36 .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
37 background-repeat: repeat-x;
38 border-color: darken(@btn-color, 14%);
42 background-color: darken(@btn-color, 12%);
43 background-position: 0 -15px;
48 background-color: darken(@btn-color, 12%);
49 border-color: darken(@btn-color, 14%);
55 // Remove the gradient for the pressed/active state
58 background-image: none;
62 // Apply the mixin to the buttons
63 .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
64 .btn-primary { .btn-styles(@btn-primary-bg); }
65 .btn-success { .btn-styles(@btn-success-bg); }
66 .btn-warning { .btn-styles(@btn-warning-bg); }
67 .btn-danger { .btn-styles(@btn-danger-bg); }
68 .btn-info { .btn-styles(@btn-info-bg); }
74 // --------------------------------------------------
78 .box-shadow(0 1px 2px rgba(0,0,0,.075));
85 // --------------------------------------------------
87 .dropdown-menu > li > a:hover,
88 .dropdown-menu > li > a:focus {
89 #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
90 background-color: darken(@dropdown-link-hover-bg, 5%);
92 .dropdown-menu > .active > a,
93 .dropdown-menu > .active > a:hover,
94 .dropdown-menu > .active > a:focus {
95 #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
96 background-color: darken(@dropdown-link-active-bg, 5%);
103 // --------------------------------------------------
107 #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
108 .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
109 border-radius: @navbar-border-radius;
110 @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
111 .box-shadow(@shadow);
113 .navbar-nav > .active > a {
114 #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
115 .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
119 .navbar-nav > li > a {
120 text-shadow: 0 1px 0 rgba(255,255,255,.25);
125 #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
126 .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
128 .navbar-nav > .active > a {
129 #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
130 .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
134 .navbar-nav > li > a {
135 text-shadow: 0 -1px 0 rgba(0,0,0,.25);
139 // Undo rounded corners in static and fixed navbars
142 .navbar-fixed-bottom {
150 // --------------------------------------------------
154 text-shadow: 0 1px 0 rgba(255,255,255,.2);
155 @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
156 .box-shadow(@shadow);
159 // Mixin for generating new styles
160 .alert-styles(@color) {
161 #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
162 border-color: darken(@color, 15%);
165 // Apply the mixin to the alerts
166 .alert-success { .alert-styles(@alert-success-bg); }
167 .alert-info { .alert-styles(@alert-info-bg); }
168 .alert-warning { .alert-styles(@alert-warning-bg); }
169 .alert-danger { .alert-styles(@alert-danger-bg); }
175 // --------------------------------------------------
177 // Give the progress background some depth
179 #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
182 // Mixin for generating new styles
183 .progress-bar-styles(@color) {
184 #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
187 // Apply the mixin to the progress bars
188 .progress-bar { .progress-bar-styles(@progress-bar-bg); }
189 .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); }
190 .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); }
191 .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
192 .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
198 // --------------------------------------------------
201 border-radius: @border-radius-base;
202 .box-shadow(0 1px 2px rgba(0,0,0,.075));
204 .list-group-item.active,
205 .list-group-item.active:hover,
206 .list-group-item.active:focus {
207 text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
208 #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
209 border-color: darken(@list-group-active-border, 7.5%);
216 // --------------------------------------------------
220 .box-shadow(0 1px 2px rgba(0,0,0,.05));
223 // Mixin for generating new styles
224 .panel-heading-styles(@color) {
225 #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
228 // Apply the mixin to the panel headings only
229 .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); }
230 .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); }
231 .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); }
232 .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); }
233 .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); }
234 .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
240 // --------------------------------------------------
243 #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
244 border-color: darken(@well-bg, 10%);
245 @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
246 .box-shadow(@shadow);