_masonstrap.scss 5.81 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

15
// Default Mason Green #006633
David Haynes's avatar
David Haynes committed
16
.bg-primary {
17

David Haynes's avatar
David Haynes committed
18
19
  .dropdown-menu {
    background-color: $brand-primary;
20
    
David Haynes's avatar
David Haynes committed
21
22
23
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
24
25
    }

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

35
// Some default color
David Haynes's avatar
David Haynes committed
36
.bg-inverse {
David Haynes's avatar
David Haynes committed
37
  background-color: $brand-secondary !important;
38

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

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

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

David Haynes's avatar
David Haynes committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.bg-classic {
  background-color: $bg-classic !important;

  .dropdown-menu {
    background-color: $gray;

    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
    }

    .dropdown-item.active,
    .dropdown-item:hover,
    .dropdown-item:focus  {
      background-color: darken($gray, 5%);
      color: #fff;
    }
  }
}

David Haynes's avatar
David Haynes committed
76
// Buttons =====================================================================
77
78
79
80
81
82
83
84
85

.btn-group {

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

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
86
87
88
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
89

David Haynes's avatar
David Haynes committed
90
91
      .dropdown-item {
        color: $btn-primary-color;
92
93
      }

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

David Haynes's avatar
David Haynes committed
100
101
102
    &.btn-secondary ~ .dropdown-menu {
      background-color: $btn-secondary-bg;
      border-color: $btn-secondary-border;
103

David Haynes's avatar
David Haynes committed
104
105
      .dropdown-item {
        color: $btn-secondary-color;
106
107
      }

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

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

David Haynes's avatar
David Haynes committed
118
      .dropdown-item {
119
120
121
        color: $btn-success-color;
      }

David Haynes's avatar
David Haynes committed
122
123
      .dropdown-item:hover,
      .dropdown-item:focus {
124
125
126
127
128
129
130
131
        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
132
      .dropdown-item {
133
134
135
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
136
137
      .dropdown-item:hover,
      .dropdown-item:focus {
138
139
140
141
142
143
144
145
        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
146
      .dropdown-item {
147
148
149
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
150
151
      .dropdown-item:hover,
      .dropdown-item:focus {
152
153
154
155
156
157
158
159
        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
160
      .dropdown-item {
161
162
163
        color: $btn-danger-color;
      }

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

David Haynes's avatar
David Haynes committed
172
// Typography ==================================================================
173

David Haynes's avatar
David Haynes committed
174
175
.blockquote-footer {
  color: $gray-light;
176
177
}

David Haynes's avatar
David Haynes committed
178
// Tables ======================================================================
179

David Haynes's avatar
David Haynes committed
180
181
table {
  font-size: $font-size-sm;
182
183
}

David Haynes's avatar
David Haynes committed
184
.table {
Corey Sewell's avatar
Corey Sewell committed
185

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

David Haynes's avatar
David Haynes committed
194
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
195

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

David Haynes's avatar
David Haynes committed
205
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
206

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

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

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

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

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

.pagination {
  font-weight: 300;

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

David Haynes's avatar
David Haynes committed
252
253
254
    &:hover,
    &:focus {
      text-decoration: none;
255
256
257
    }
  }

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

.list-group {
David Haynes's avatar
David Haynes committed
266
  font-size: $font-size-sm;
267
268
269
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
270
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
271

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

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

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

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

David Haynes's avatar
David Haynes committed
293
294
.tag {
  padding-bottom: .6em;
295
296
}

David Haynes's avatar
David Haynes committed
297
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
298

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

307
308
309
310
311
312
313
314
// Containers ==================================================================



// Custom ==================================================================
.rounded {
    border-radius: .25rem;
}