bootswatch.less 4.84 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Darkly 3.3.0
Jenil Gogari's avatar
Jenil Gogari committed
2
3
4
// Bootswatch
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
5
@import url("//fonts.googleapis.com/css?family=Lato:400,700,400italic");
Jenil Gogari's avatar
Jenil Gogari committed
6
7

// Navbar =====================================================================
Thomas Park's avatar
Thomas Park committed
8
9
10
11

.navbar {
  border-width: 0;

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  &-default {

    .badge {
      background-color: #fff;
      color: @navbar-default-bg;
    }
  }

  &-inverse {

    .badge {
      background-color: #fff;
      color: @navbar-inverse-bg;
    }
  }

Thomas Park's avatar
Thomas Park committed
28
29
30
31
32
33
34
35
36
37
38
  &-brand {
    padding: 18.5px 15px 20.5px;
  }

  &-form {
    .form-control {
      background-color: white;

      &:focus {
        border-color: white;
      }
Jenil Gogari's avatar
Jenil Gogari committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
    }
  }
}

// Buttons ====================================================================

.btn:active {
  .box-shadow(none);
}

.btn-group.open .dropdown-toggle {
  .box-shadow(none);
}

// Typography =================================================================

.text-primary,
.text-primary:hover {
  color: lighten(@brand-primary, 10%);
}

.text-success,
.text-success:hover {
  color: @brand-success;
}

.text-danger,
.text-danger:hover {
  color: @brand-danger;
}

.text-warning,
.text-warning:hover {
  color: @brand-warning;
}

.text-info,
.text-info:hover {
  color: @brand-info;
}

// Tables =====================================================================

table,
.table {

85
  a:not(.btn) {
Jenil Gogari's avatar
Jenil Gogari committed
86
87
88
    text-decoration: underline;
  }

89
90
91
92
  .dropdown-menu a {
    text-decoration: none;
  }

Jenil Gogari's avatar
Jenil Gogari committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
  .success,
  .warning,
  .danger,
  .info {
    color: #fff;

    a {
      color: #fff;
    }
  }

  > thead > tr > th,
  > tbody > tr > th,
  > tfoot > tr > th,
  > thead > tr > td,
  > tbody > tr > td,
  > tfoot > tr > td {
    border: none;
  }

  &-bordered > thead > tr > th,
  &-bordered > tbody > tr > th,
  &-bordered > tfoot > tr > th,
  &-bordered > thead > tr > td,
  &-bordered > tbody > tr > td,
  &-bordered > tfoot > tr > td {
    border: 1px solid @table-border-color;
  }
}

// Forms ======================================================================

125
126
127
128
129
input,
textarea {
  color: @input-color;
}

Jenil Gogari's avatar
Jenil Gogari committed
130
.form-control,
131
132
input,
textarea {
Thomas Park's avatar
Thomas Park committed
133
  border: none;
Jenil Gogari's avatar
Jenil Gogari committed
134
135
136
137
138
139
140
141
142
  .box-shadow(none);

  &:focus {
    .box-shadow(none);
  }
}

.has-warning {
  .help-block,
143
  .control-label,
144
145
146
147
  .radio,
  .checkbox,
  .radio-inline,
  .checkbox-inline,
148
  .form-control-feedback {
Jenil Gogari's avatar
Jenil Gogari committed
149
150
151
152
153
154
155
    color: @brand-warning;
  }

  .form-control,
  .form-control:focus {
    .box-shadow(none);
  }
156
157
158
159

  .input-group-addon {
    border-color: @brand-warning;
  }
Jenil Gogari's avatar
Jenil Gogari committed
160
161
162
163
}

.has-error {
  .help-block,
164
  .control-label,
165
166
167
168
  .radio,
  .checkbox,
  .radio-inline,
  .checkbox-inline,
169
  .form-control-feedback {
Jenil Gogari's avatar
Jenil Gogari committed
170
171
172
173
174
175
176
    color: @brand-danger;
  }

  .form-control,
  .form-control:focus {
    .box-shadow(none);
  }
177
178
179
180

  .input-group-addon {
    border-color: @brand-danger;
  }
Jenil Gogari's avatar
Jenil Gogari committed
181
182
183
184
}

.has-success {
  .help-block,
185
  .control-label,
186
187
188
189
  .radio,
  .checkbox,
  .radio-inline,
  .checkbox-inline,
190
  .form-control-feedback {
Jenil Gogari's avatar
Jenil Gogari committed
191
192
193
194
195
196
197
    color: @brand-success;
  }

  .form-control,
  .form-control:focus {
    .box-shadow(none);
  }
198
199
200
201

  .input-group-addon {
    border-color: @brand-success;
  }
Jenil Gogari's avatar
Jenil Gogari committed
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
}

.input-group-addon {
  color: @text-color;
}

// Navs =======================================================================

.nav {
  .open > a,
  .open > a:hover,
  .open > a:focus {
    border-color: @nav-tabs-border-color;
  }
}

.nav-tabs > li > a,
.nav-pills > li > a {
  color: #fff;
}

.pager {
  a,
  a:hover {
    color: #fff;
  }

  .disabled {
    &>a,
    &>a:hover,
    &>a:focus,
    &>span {
      background-color: @pagination-disabled-bg;
    }
  }
}

239
240
241
242
.breadcrumb a {
  color: #fff;
}

Jenil Gogari's avatar
Jenil Gogari committed
243
244
// Indicators =================================================================

245
246
247
248
.close {
  text-decoration: none;
  text-shadow: none;
  opacity: 0.4;
Jenil Gogari's avatar
Jenil Gogari committed
249

250
251
252
253
254
255
256
  &:hover,
  &:focus {
    opacity: 1;
  }
}

.alert {
Jenil Gogari's avatar
Jenil Gogari committed
257
258
259
260
261
262
263
264
265
266
267
  .alert-link {
    color: #fff;
    text-decoration: underline;
  }
}

// Progress bars ==============================================================

.progress {
  height: 10px;
  .box-shadow(none);
268
269
270
271
  .progress-bar {
    font-size: 10px;
    line-height: 10px;
  }
Jenil Gogari's avatar
Jenil Gogari committed
272
273
274
275
276
277
278
279
}

// Containers =================================================================

.well {
  .box-shadow(none);
}

280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
a.list-group-item {

  &.active,
  &.active:hover,
  &.active:focus {
    border-color: @list-group-border;
  }

  &-success {
    &.active {
      background-color: @state-success-bg;
    }

    &.active:hover,
    &.active:focus {
      background-color: darken(@state-success-bg, 5%);
    }
  }

  &-warning {
    &.active {
      background-color: @state-warning-bg;
    }
    
    &.active:hover,
    &.active:focus {
      background-color: darken(@state-warning-bg, 5%);
    }
  }

  &-danger {
    &.active {
      background-color: @state-danger-bg;
    }
    
    &.active:hover,
    &.active:focus {
      background-color: darken(@state-danger-bg, 5%);
    }
  }
}

322
323
.popover {
  color: @text-color;
Jenil Gogari's avatar
Jenil Gogari committed
324
325
326
327
328
}

.panel-default > .panel-heading {
  background-color: @panel-footer-bg;
}