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

21
22
    top: 112%;

David Haynes's avatar
David Haynes committed
23
24
25
    .dropdown-item,
    .dropdown-item:focus {
      color: $navbar-inverse-color;
26
27
    }

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

37
// Some default color
David Haynes's avatar
David Haynes committed
38
39
.bg-inverse {
  background-color: $gray !important;
40

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

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

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

David Haynes's avatar
David Haynes committed
58
// Buttons =====================================================================
59
60
61
62
63
64
65
66
67

.btn-group {

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

  .dropdown-toggle {

David Haynes's avatar
David Haynes committed
68
69
70
    &.btn-primary ~ .dropdown-menu {
      background-color: $btn-primary-bg;
      border-color: $btn-primary-border;
71

David Haynes's avatar
David Haynes committed
72
73
      .dropdown-item {
        color: $btn-primary-color;
74
75
      }

David Haynes's avatar
David Haynes committed
76
77
78
      .dropdown-item:hover,
      .dropdown-item:focus {
        background-color: darken($btn-primary-bg, 8%);
79
80
81
      }
    }

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

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

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

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

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

David Haynes's avatar
David Haynes committed
104
105
      .dropdown-item:hover,
      .dropdown-item:focus {
106
107
108
109
110
111
112
113
        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
114
      .dropdown-item {
115
116
117
        color: $btn-info-color;
      }

David Haynes's avatar
David Haynes committed
118
119
      .dropdown-item:hover,
      .dropdown-item:focus {
120
121
122
123
124
125
126
127
        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
128
      .dropdown-item {
129
130
131
        color: $btn-warning-color;
      }

David Haynes's avatar
David Haynes committed
132
133
      .dropdown-item:hover,
      .dropdown-item:focus {
134
135
136
137
138
139
140
141
        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
142
      .dropdown-item {
143
144
145
        color: $btn-danger-color;
      }

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

David Haynes's avatar
David Haynes committed
154
// Typography ==================================================================
155

David Haynes's avatar
David Haynes committed
156
157
.blockquote-footer {
  color: $gray-light;
158
159
}

David Haynes's avatar
David Haynes committed
160
// Tables ======================================================================
161

David Haynes's avatar
David Haynes committed
162
163
table {
  font-size: $font-size-sm;
164
165
}

David Haynes's avatar
David Haynes committed
166
.table {
Corey Sewell's avatar
Corey Sewell committed
167

David Haynes's avatar
David Haynes committed
168
169
170
171
172
173
  &-success,
  &-info,
  &-warning,
  &-danger {
    color: #fff;
  }
174
175
}

David Haynes's avatar
David Haynes committed
176
// Forms =======================================================================
Corey Sewell's avatar
Corey Sewell committed
177

178
179
180
181
label,
.control-label,
.help-block,
.checkbox,
David Haynes's avatar
David Haynes committed
182
183
184
.radio,
.form-control-feedback {
  font-size: $font-size-sm;
185
186
}

David Haynes's avatar
David Haynes committed
187
// Navs ========================================================================
Corey Sewell's avatar
Corey Sewell committed
188

David Haynes's avatar
David Haynes committed
189
190
191
192
193
.dropdown-item {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: $font-size-sm;
  font-weight: 300;
194
195
196
}

.nav-tabs {
David Haynes's avatar
David Haynes committed
197
198
199
200
201
202
  .nav-link,
  .nav-link.disabled,
  .nav-link.disabled:hover,
  .nav-link.disabled:focus {
    border-color: $nav-tabs-border-color;
    background-color: $gray-lightest;
203
204
  }

David Haynes's avatar
David Haynes committed
205
206
207
  .nav-link:hover,
  .nav-link:focus {
    background-color: lighten($gray-lightest, 5%);
208
209
210
211
  }
}

.nav-pills {
David Haynes's avatar
David Haynes committed
212
213
214
  .active {
    border: 1px solid $btn-primary-border;
  }
215
216
217
}

.breadcrumb {
David Haynes's avatar
David Haynes committed
218
219
220
  border: 1px solid $dropdown-border-color;
  border-radius: 3px;
  font-size: $font-size-sm;
221
222
223
224
225
226
227
  font-weight: 300;
  text-transform: uppercase;
}

.pagination {
  font-weight: 300;

David Haynes's avatar
David Haynes committed
228
229
230
231
232
  .page-link {
    border-color: transparent;
    border-radius: 3px;
    margin-left: 0.1em;
    margin-right: 0.1em;
233

David Haynes's avatar
David Haynes committed
234
235
236
    &:hover,
    &:focus {
      text-decoration: none;
237
238
239
    }
  }

David Haynes's avatar
David Haynes committed
240
241
242
  .page-item.disabled {
    .page-link {
      border-color: transparent;
243
244
245
246
247
    }
  }
}

.list-group {
David Haynes's avatar
David Haynes committed
248
  font-size: $font-size-sm;
249
250
251
  font-weight: 300;
}

David Haynes's avatar
David Haynes committed
252
// Indicators ==================================================================
Corey Sewell's avatar
Corey Sewell committed
253

254
.close {
David Haynes's avatar
David Haynes committed
255
  opacity: 0.6;
256
257
258
259
260
261
262
263
264
  text-shadow: none;

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

.alert {
David Haynes's avatar
David Haynes committed
265
  font-size: $font-size-sm;
266
267
268
269
270
271
272
273
274
  font-weight: 300;

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

David Haynes's avatar
David Haynes committed
275
276
.tag {
  padding-bottom: .6em;
277
278
}

David Haynes's avatar
David Haynes committed
279
// Progress bars ===============================================================
Corey Sewell's avatar
Corey Sewell committed
280

David Haynes's avatar
David Haynes committed
281
282
283
.progress[value] {
  height: 22px;
  padding: 2px;
284
  background-color: #f6f6f6;
David Haynes's avatar
David Haynes committed
285
  border: 1px solid #ccc;
286
287
288
  @include box-shadow(none);
}

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