_masonstrap.scss 5.62 KB
Newer Older
David Haynes's avatar
David Haynes committed
1
// Masonstrap 4.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

David Haynes's avatar
David Haynes committed
8
// Navbar ======================================================================
Corey Sewell's avatar
Corey Sewell committed
9

10
.navbar {
David Haynes's avatar
David Haynes committed
11
12
13
  font-size: $font-size-sm;
  font-weight: $headings-font-weight;
}
14

David Haynes's avatar
David Haynes committed
15
.bg-primary {
16

David Haynes's avatar
David Haynes committed
17
18
  .dropdown-menu {
    background-color: $brand-primary;
19

David Haynes's avatar
David Haynes committed
20
21
22
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
23
24
    }

David Haynes's avatar
David Haynes committed
25
26
27
28
29
30
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus {
      background-color: darken($brand-primary, 5%);
      color: #fff;
    }
31
  }
David Haynes's avatar
David Haynes committed
32
}
33

David Haynes's avatar
David Haynes committed
34
35
.bg-inverse {
  background-color: $gray !important;
36

David Haynes's avatar
David Haynes committed
37
38
  .dropdown-menu {
    background-color: $gray;
39

David Haynes's avatar
David Haynes committed
40
41
42
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
43
44
    }

David Haynes's avatar
David Haynes committed
45
46
47
48
49
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: darken($gray, 5%);
      color: #fff;
50
51
    }
  }
David Haynes's avatar
David Haynes committed
52
}
53

David Haynes's avatar
David Haynes committed
54
.bg-faded {
55

David Haynes's avatar
David Haynes committed
56
57
  .dropdown-menu {
    background-color: $gray-lightest;
58

David Haynes's avatar
David Haynes committed
59
60
61
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-light-color;
62
63
    }

David Haynes's avatar
David Haynes committed
64
65
66
67
68
    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: lighten($gray-lightest, 5%);
      color: $navbar-light-hover-color;
69
70
71
72
    }
  }
}

David Haynes's avatar
David Haynes committed
73
// Buttons =====================================================================
74
75
76
77
78
79
80
81
82

.btn-group {

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

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
83
84
85
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
86

David Haynes's avatar
David Haynes committed
87
88
      .dropdown-item {
        color: $btn-primary-color;
89
90
      }

David Haynes's avatar
David Haynes committed
91
92
93
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-primary-bg, 8%);
94
95
96
      }
    }

David Haynes's avatar
David Haynes committed
97
98
99
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
100

David Haynes's avatar
David Haynes committed
101
102
      .dropdown-item {
        color: $btn-secondary-color;
103
104
      }

David Haynes's avatar
David Haynes committed
105
106
107
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-secondary-bg, 8%);
108
109
110
111
112
113
114
      }
    }

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

David Haynes's avatar
David Haynes committed
115
      .dropdown-item {
116
117
118
        color: $btn-success-color;
      }

David Haynes's avatar
David Haynes committed
119
120
      .dropdown-item:hover,
      .dropdown-item:focus {
121
122
123
124
125
126
127
128
        background-color: darken($btn-success-bg, 8%);
      }
    }

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

David Haynes's avatar
David Haynes committed
129
      .dropdown-item {
130
131
132
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
133
134
      .dropdown-item:hover,
      .dropdown-item:focus {
135
136
137
138
139
140
141
142
        background-color: darken($btn-info-bg, 8%);
      }
    }

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

David Haynes's avatar
David Haynes committed
143
      .dropdown-item {
144
145
146
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
147
148
      .dropdown-item:hover,
      .dropdown-item:focus {
149
150
151
152
153
154
155
156
        background-color: darken($btn-warning-bg, 8%);
      }
    }

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

David Haynes's avatar
David Haynes committed
157
      .dropdown-item {
158
159
160
        color: $btn-danger-color;
      }

David Haynes's avatar
David Haynes committed
161
162
      .dropdown-item:hover,
      .dropdown-item:focus {
163
164
165
166
167
168
        background-color: darken($btn-danger-bg, 8%);
      }
    }
  }
}

David Haynes's avatar
David Haynes committed
169
// Typography ==================================================================
170

David Haynes's avatar
David Haynes committed
171
172
.blockquote-footer {
  color: $gray-light;
173
174
}

David Haynes's avatar
David Haynes committed
175
// Tables ======================================================================
176

David Haynes's avatar
David Haynes committed
177
178
table {
  font-size: $font-size-sm;
179
180
}

David Haynes's avatar
David Haynes committed
181
.table {
Corey Sewell's avatar
Corey Sewell committed
182

David Haynes's avatar
David Haynes committed
183
184
185
186
187
188
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
189
190
}

David Haynes's avatar
David Haynes committed
191
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
192

193
194
195
196
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
197
198
199
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
200
201
}

David Haynes's avatar
David Haynes committed
202
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
203

David Haynes's avatar
David Haynes committed
204
205
206
207
208
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
209
210
211
}

.nav-tabs {
David Haynes's avatar
David Haynes committed
212
213
214
215
216
217
  .nav-link,
  .nav-link.disabled,
  .nav-link.disabled:hover,
  .nav-link.disabled:focus {
    border-color: $nav-tabs-border-color;
    background-color: $gray-lightest;
218
219
  }

David Haynes's avatar
David Haynes committed
220
221
222
  .nav-link:hover,
  .nav-link:focus {
    background-color: lighten($gray-lightest, 5%);
223
224
225
226
  }
}

.nav-pills {
David Haynes's avatar
David Haynes committed
227
228
229
  .active {
    border: 1px solid $btn-primary-border;
  }
230
231
232
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
233
234
235
  border: 1px solid $dropdown-border-color;
  border-radius: 3px;
  font-size: $font-size-sm;
236
237
238
239
240
241
242
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-weight: 300;

David Haynes's avatar
David Haynes committed
243
244
245
246
247
  .page-link {
    border-color: transparent;
    border-radius: 3px;
    margin-left: 0.1em;
    margin-right: 0.1em;
248

David Haynes's avatar
David Haynes committed
249
250
251
    &:hover,
    &:focus {
      text-decoration: none;
252
253
254
    }
  }

David Haynes's avatar
David Haynes committed
255
256
257
  .page-item.disabled {
    .page-link {
      border-color: transparent;
258
259
260
261
262
    }
  }
}

.list-group {
David Haynes's avatar
David Haynes committed
263
  font-size: $font-size-sm;
264
265
266
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
267
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
268

269
.close {
David Haynes's avatar
David Haynes committed
270
  opacity: 0.6;
271
272
273
274
275
276
277
278
279
  text-shadow: none;

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

.alert {
David Haynes's avatar
David Haynes committed
280
  font-size: $font-size-sm;
281
282
283
284
285
286
287
288
289
  font-weight: 300;

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

David Haynes's avatar
David Haynes committed
290
291
.tag {
  padding-bottom: .6em;
292
293
}

David Haynes's avatar
David Haynes committed
294
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
295

David Haynes's avatar
David Haynes committed
296
297
298
.progress[value] {
  height: 22px;
  padding: 2px;
299
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
300
  border: 1px solid #ccc;
301
302
303
  @include box-shadow(none);
}

David Haynes's avatar
David Haynes committed
304
// Containers ==================================================================