Blame view

app/bower_components/bootstrap/less/theme.less 8 KB
87c93a029   Dang YoungWorld   add modal
1
2
3
4
5
  /*!
   * Bootstrap v3.3.7 (http://getbootstrap.com)
   * Copyright 2011-2016 Twitter, Inc.
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   */
f986e111b   TRUONG   add libs
6
7
8
9
10
11
12
  
  //
  // Load core variables and mixins
  // --------------------------------------------------
  
  @import "variables.less";
  @import "mixins.less";
f986e111b   TRUONG   add libs
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  //
  // Buttons
  // --------------------------------------------------
  
  // Common styles
  .btn-default,
  .btn-primary,
  .btn-success,
  .btn-info,
  .btn-warning,
  .btn-danger {
    text-shadow: 0 -1px 0 rgba(0,0,0,.2);
    @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
    .box-shadow(@shadow);
  
    // Reset the shadow
    &:active,
    &.active {
      .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
    }
87c93a029   Dang YoungWorld   add modal
33
34
35
36
37
38
39
40
41
42
  
    &.disabled,
    &[disabled],
    fieldset[disabled] & {
      .box-shadow(none);
    }
  
    .badge {
      text-shadow: none;
    }
f986e111b   TRUONG   add libs
43
44
45
46
47
  }
  
  // Mixin for generating new styles
  .btn-styles(@btn-color: #555) {
    #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
87c93a029   Dang YoungWorld   add modal
48
    .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
f986e111b   TRUONG   add libs
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    background-repeat: repeat-x;
    border-color: darken(@btn-color, 14%);
  
    &:hover,
    &:focus  {
      background-color: darken(@btn-color, 12%);
      background-position: 0 -15px;
    }
  
    &:active,
    &.active {
      background-color: darken(@btn-color, 12%);
      border-color: darken(@btn-color, 14%);
    }
87c93a029   Dang YoungWorld   add modal
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  
    &.disabled,
    &[disabled],
    fieldset[disabled] & {
      &,
      &:hover,
      &:focus,
      &.focus,
      &:active,
      &.active {
        background-color: darken(@btn-color, 12%);
        background-image: none;
      }
    }
f986e111b   TRUONG   add libs
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
  }
  
  // Common styles
  .btn {
    // Remove the gradient for the pressed/active state
    &:active,
    &.active {
      background-image: none;
    }
  }
  
  // Apply the mixin to the buttons
  .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
  .btn-primary { .btn-styles(@btn-primary-bg); }
  .btn-success { .btn-styles(@btn-success-bg); }
87c93a029   Dang YoungWorld   add modal
92
  .btn-info    { .btn-styles(@btn-info-bg); }
f986e111b   TRUONG   add libs
93
94
  .btn-warning { .btn-styles(@btn-warning-bg); }
  .btn-danger  { .btn-styles(@btn-danger-bg); }
f986e111b   TRUONG   add libs
95
96
97
98
99
100
101
102
103
104
  
  
  //
  // Images
  // --------------------------------------------------
  
  .thumbnail,
  .img-thumbnail {
    .box-shadow(0 1px 2px rgba(0,0,0,.075));
  }
f986e111b   TRUONG   add libs
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
  //
  // Dropdowns
  // --------------------------------------------------
  
  .dropdown-menu > li > a:hover,
  .dropdown-menu > li > a:focus {
    #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
    background-color: darken(@dropdown-link-hover-bg, 5%);
  }
  .dropdown-menu > .active > a,
  .dropdown-menu > .active > a:hover,
  .dropdown-menu > .active > a:focus {
    #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
    background-color: darken(@dropdown-link-active-bg, 5%);
  }
f986e111b   TRUONG   add libs
120
121
122
123
124
125
126
127
128
129
130
  //
  // Navbar
  // --------------------------------------------------
  
  // Default navbar
  .navbar-default {
    #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
    .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
    border-radius: @navbar-border-radius;
    @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
    .box-shadow(@shadow);
87c93a029   Dang YoungWorld   add modal
131
    .navbar-nav > .open > a,
f986e111b   TRUONG   add libs
132
    .navbar-nav > .active > a {
87c93a029   Dang YoungWorld   add modal
133
      #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
f986e111b   TRUONG   add libs
134
135
136
137
138
139
140
141
142
143
144
      .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
    }
  }
  .navbar-brand,
  .navbar-nav > li > a {
    text-shadow: 0 1px 0 rgba(255,255,255,.25);
  }
  
  // Inverted navbar
  .navbar-inverse {
    #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
87c93a029   Dang YoungWorld   add modal
145
146
147
    .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
    border-radius: @navbar-border-radius;
    .navbar-nav > .open > a,
f986e111b   TRUONG   add libs
148
    .navbar-nav > .active > a {
87c93a029   Dang YoungWorld   add modal
149
      #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
f986e111b   TRUONG   add libs
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
      .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
    }
  
    .navbar-brand,
    .navbar-nav > li > a {
      text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    }
  }
  
  // Undo rounded corners in static and fixed navbars
  .navbar-static-top,
  .navbar-fixed-top,
  .navbar-fixed-bottom {
    border-radius: 0;
  }
87c93a029   Dang YoungWorld   add modal
165
166
167
168
169
170
171
172
173
174
175
  // Fix active state of dropdown items in collapsed mode
  @media (max-width: @grid-float-breakpoint-max) {
    .navbar .navbar-nav .open .dropdown-menu > .active > a {
      &,
      &:hover,
      &:focus {
        color: #fff;
        #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
      }
    }
  }
f986e111b   TRUONG   add libs
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
  
  
  //
  // Alerts
  // --------------------------------------------------
  
  // Common styles
  .alert {
    text-shadow: 0 1px 0 rgba(255,255,255,.2);
    @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
    .box-shadow(@shadow);
  }
  
  // Mixin for generating new styles
  .alert-styles(@color) {
    #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
    border-color: darken(@color, 15%);
  }
  
  // Apply the mixin to the alerts
  .alert-success    { .alert-styles(@alert-success-bg); }
  .alert-info       { .alert-styles(@alert-info-bg); }
  .alert-warning    { .alert-styles(@alert-warning-bg); }
  .alert-danger     { .alert-styles(@alert-danger-bg); }
f986e111b   TRUONG   add libs
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
  //
  // Progress bars
  // --------------------------------------------------
  
  // Give the progress background some depth
  .progress {
    #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
  }
  
  // Mixin for generating new styles
  .progress-bar-styles(@color) {
    #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
  }
  
  // Apply the mixin to the progress bars
  .progress-bar            { .progress-bar-styles(@progress-bar-bg); }
  .progress-bar-success    { .progress-bar-styles(@progress-bar-success-bg); }
  .progress-bar-info       { .progress-bar-styles(@progress-bar-info-bg); }
  .progress-bar-warning    { .progress-bar-styles(@progress-bar-warning-bg); }
  .progress-bar-danger     { .progress-bar-styles(@progress-bar-danger-bg); }
87c93a029   Dang YoungWorld   add modal
220
221
222
223
224
  // Reset the striped class because our mixins don't do multiple gradients and
  // the above custom styles override the new `.progress-bar-striped` in v3.2.0.
  .progress-bar-striped {
    #gradient > .striped();
  }
f986e111b   TRUONG   add libs
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
  
  
  //
  // List groups
  // --------------------------------------------------
  
  .list-group {
    border-radius: @border-radius-base;
    .box-shadow(0 1px 2px rgba(0,0,0,.075));
  }
  .list-group-item.active,
  .list-group-item.active:hover,
  .list-group-item.active:focus {
    text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
    #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
    border-color: darken(@list-group-active-border, 7.5%);
f986e111b   TRUONG   add libs
241

87c93a029   Dang YoungWorld   add modal
242
243
244
245
    .badge {
      text-shadow: none;
    }
  }
f986e111b   TRUONG   add libs
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
  
  
  //
  // Panels
  // --------------------------------------------------
  
  // Common styles
  .panel {
    .box-shadow(0 1px 2px rgba(0,0,0,.05));
  }
  
  // Mixin for generating new styles
  .panel-heading-styles(@color) {
    #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
  }
  
  // Apply the mixin to the panel headings only
  .panel-default > .panel-heading   { .panel-heading-styles(@panel-default-heading-bg); }
  .panel-primary > .panel-heading   { .panel-heading-styles(@panel-primary-heading-bg); }
  .panel-success > .panel-heading   { .panel-heading-styles(@panel-success-heading-bg); }
  .panel-info > .panel-heading      { .panel-heading-styles(@panel-info-heading-bg); }
  .panel-warning > .panel-heading   { .panel-heading-styles(@panel-warning-heading-bg); }
  .panel-danger > .panel-heading    { .panel-heading-styles(@panel-danger-heading-bg); }
f986e111b   TRUONG   add libs
269
270
271
272
273
274
275
276
277
278
  //
  // Wells
  // --------------------------------------------------
  
  .well {
    #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
    border-color: darken(@well-bg, 10%);
    @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
    .box-shadow(@shadow);
  }