_masonstrap.scss 7.3 KB
Newer Older
1
// Masonstrap 1.0
Corey Sewell's avatar
Corey Sewell committed
2
3
4
// Bootswatch
// -----------------------------------------------------

5
6
$web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700" !default;
@import url($web-font-path);
Corey Sewell's avatar
Corey Sewell committed
7
8
9

// Navbar =====================================================================

10
11
.navbar {
  border: none;
David Haynes's avatar
David Haynes committed
12
  font-size: 13rem;
13
14
15
16
17
18
19
20
21
22
23
24
  font-weight: 300;

  .navbar-toggle:hover .icon-bar {
    background-color: #b3b3b3;
  }

  &-collapse {
    border-top-color: $dropdown-divider-bg;
    @include box-shadow(none);
  }

  .btn {
David Haynes's avatar
David Haynes committed
25
26
    padding-top: 6rem;
    padding-bottom: 6rem;
27
28
29
  }

  &-form {
David Haynes's avatar
David Haynes committed
30
31
    margin-top: 7rem;
    margin-bottom: 5rem;
32
33
34
35
36
37
38
39

    .form-control {
      height: auto;
      padding: $padding-xs-vertical $padding-xs-horizontal;
    }
  }

  &-text {
David Haynes's avatar
David Haynes committed
40
41
    margin: 12rem 15rem;
    line-height: 21rem;
42
43
44
45
46
47
48
49
50
51
  }

  .dropdown {

    &-menu {
      border: none;

      > li > a,
      > li > a:focus {
        background-color: transparent;
David Haynes's avatar
David Haynes committed
52
        font-size: 13rem;
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
        font-weight: 300;
      }
    }

    &-header {
      color: rgba(255, 255, 255, 0.5);
    }

  }

  &-default {

    .dropdown-menu {
      background-color: $navbar-default-bg;

      > li > a,
      > li > a:focus {
        color: $navbar-default-link-color;
      }

      > li > a:hover,
      > .active > a,
      > .active > a:hover {
        background-color: $navbar-default-link-hover-bg;
      }
    }
  }

  &-inverse {

    .dropdown-menu {
      background-color: $navbar-inverse-bg;

      > li > a,
      > li > a:focus {
        color: $navbar-inverse-color;
      }

      > li > a:hover,
      > .active > a,
      > .active > a:hover {
        background-color: $navbar-inverse-link-hover-bg;
      }
    }
  }
}

Corey Sewell's avatar
Corey Sewell committed
100
101
// Buttons ====================================================================

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.btn {
  padding: $padding-base-vertical $padding-base-horizontal;

  &-lg {
    padding: $padding-large-vertical $padding-large-horizontal;
  }

  &-sm {
    padding: $padding-small-vertical $padding-small-horizontal;
  }

  &-xs {
    padding: $padding-xs-vertical $padding-xs-horizontal;
  }
}

.btn-group {

  .btn ~ .dropdown-toggle {
David Haynes's avatar
David Haynes committed
121
122
    padding-left: 16rem;
    padding-right: 16rem;
123
124
125
126
127
128
129
  }

  .dropdown-menu {
    border-top-width: 0;
  }

  &.dropup .dropdown-menu {
David Haynes's avatar
David Haynes committed
130
    border-top-width: 1rem;
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
    border-bottom-width: 0;
    margin-bottom: 0;
  }

  .dropdown-toggle {

    &.btn-default ~ .dropdown-menu {
      background-color: $btn-default-bg;
      border-color: $btn-default-border;

      > li > a {
        color: $btn-default-color;
      }

      > li > a:hover {
        background-color: darken($btn-default-bg, 8%);
      }
    }

    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;

      > li > a {
        color: $btn-primary-color;
      }

      > li > a:hover {
        background-color: darken($btn-primary-bg, 8%);
      }
    }

    &.btn-success ~ .dropdown-menu {
      background-color: $btn-success-bg;
      border-color: $btn-success-border;

      > li > a {
        color: $btn-success-color;
      }

      > li > a:hover {
        background-color: darken($btn-success-bg, 8%);
      }
    }

    &.btn-info ~ .dropdown-menu {
      background-color: $btn-info-bg;
      border-color: $btn-info-border;

      > li > a {
        color: $btn-info-color;
      }

      > li > a:hover {
        background-color: darken($btn-info-bg, 8%);
      }
    }

    &.btn-warning ~ .dropdown-menu {
      background-color: $btn-warning-bg;
      border-color: $btn-warning-border;

      > li > a {
        color: $btn-warning-color;
      }

      > li > a:hover {
        background-color: darken($btn-warning-bg, 8%);
      }
    }

    &.btn-danger ~ .dropdown-menu {
      background-color: $btn-danger-bg;
      border-color: $btn-danger-border;

      > li > a {
        color: $btn-danger-color;
      }

      > li > a:hover {
        background-color: darken($btn-danger-bg, 8%);
      }
    }
  }
}

Corey Sewell's avatar
Corey Sewell committed
217
218
// Typography =================================================================

219
220
221
222
223
224
225
226
227
.lead {
  color: $gray;
}

cite {
  font-style: italic;
}

blockquote {
David Haynes's avatar
David Haynes committed
228
  border-left-width: 1rem;
229
230
231
  color: $gray;

  &.pull-right {
David Haynes's avatar
David Haynes committed
232
    border-right-width: 1rem;
233
234
235
236
237
238
239
240
  }

  small {
    font-size: $font-size-small;
    font-weight: 300;
  }
}

Corey Sewell's avatar
Corey Sewell committed
241
242
// Tables =====================================================================

243
244
245
246
table {
  font-size: $font-size-small;
}

Corey Sewell's avatar
Corey Sewell committed
247
248
// Forms ======================================================================

249
250
251
252
253
254
255
256
257
258
259
label,
.control-label,
.help-block,
.checkbox,
.radio {
  font-size: $font-size-small;
  font-weight: normal;
}

input[type="radio"],
input[type="checkbox"] {
David Haynes's avatar
David Haynes committed
260
  margin-top: 1rem;
261
262
}

Corey Sewell's avatar
Corey Sewell committed
263
264
// Navs =======================================================================

265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
.nav {
  .open > a,
  .open > a:hover,
  .open > a:focus {
    border-color: transparent;
  }
}

.nav-tabs {
  > li > a {
    background-color: $btn-default-bg;
    color: $text-color;
  }

  .caret {
    border-top-color: $text-color;
    border-bottom-color: $text-color;
  }
}

.nav-pills {
  font-weight: 300;
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
290
291
292
  border: 1rem solid $table-border-color;
  border-radius: 3rem;
  font-size: 10rem;
293
294
295
296
297
298
299
300
301
302
303
304
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-size: $font-size-small;
  font-weight: 300;
  color: $gray-light;

  > li {
    > a,
    > span {
David Haynes's avatar
David Haynes committed
305
      margin-left: 4rem;
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
      color: $gray-light;
    }
  }

  > .active {
    > a,
    > span {
      color: #fff;
    }
  }

  > li,
  > li:first-child,
  > li:last-child {
    > a,
    > span {
David Haynes's avatar
David Haynes committed
322
      border-radius: 3rem;
323
324
325
326
327
    }
  }

  &-lg > li > a,
  &-lg > li > span {
David Haynes's avatar
David Haynes committed
328
329
    padding-left: 22rem;
    padding-right: 22rem;
330
331
332
333
  }

  &-sm > li > a,
  &-sm > li > span {
David Haynes's avatar
David Haynes committed
334
    padding: 0 5rem;
335
336
337
338
339
340
341
342
343
344
345
346
347
348
  }
}

.pager {
  font-size: $font-size-small;
  font-weight: 300;
  color: $gray-light;
}

.list-group {
  font-size: $font-size-small;
  font-weight: 300;
}

Corey Sewell's avatar
Corey Sewell committed
349
350
// Indicators =================================================================

351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
.close {
  opacity: 0.4;
  text-decoration: none;
  text-shadow: none;

  &:hover,
  &:focus {
    opacity: 1;
  }
}

.alert {
  font-size: $font-size-small;
  font-weight: 300;

  .alert-link {
    font-weight: normal;
    color: #fff;
    text-decoration: underline;
  }
}

.label {
  padding-left: 1em;
  padding-right: 1em;
  border-radius: 0;
  font-weight: 300;

  &-default {
    background-color: $btn-default-bg;
    color: $btn-default-color;
  }
}

.badge {
  font-weight: 300;
}

Corey Sewell's avatar
Corey Sewell committed
389
390
// Progress bars ==============================================================

391
.progress {
David Haynes's avatar
David Haynes committed
392
393
  height: 22rem;
  padding: 2rem;
394
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
395
  border: 1rem solid #ccc;
396
397
398
  @include box-shadow(none);
}

Corey Sewell's avatar
Corey Sewell committed
399
// Containers =================================================================
400
401
402
403
404
405
406
407
408

.dropdown {

  &-menu {
    padding: 0;
    margin-top: 0;
    font-size: $font-size-small;

    > li > a {
David Haynes's avatar
David Haynes committed
409
      padding: 12rem 15rem;
410
411
412
413
414
415
416
417
418
419
      color: black;
    }

    .active > a,
    .active > a:hover {
      color: black;
    }
  }

  &-header {
David Haynes's avatar
David Haynes committed
420
421
422
    padding-left: 15rem;
    padding-right: 15rem;
    font-size: 9rem;
423
424
425
426
427
428
    text-transform: uppercase;
  }
}

.popover {
  color: #fff;
David Haynes's avatar
David Haynes committed
429
  font-size: 12rem;
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
  font-weight: 300;
}

.panel {
  &-heading,
  &-footer {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

  &-default {
    .close {
      color: $text-color;
    }
  }
}

.modal {
  .close {
    color: $text-color;
  }
}