custom.scss 4.82 KB
Newer Older
Seth A Johnson's avatar
Seth A Johnson committed
1
2
// colors and theming
$theme-colors: (
3
4
  "primary": #311A4D,
  "secondary": #5D3C85,
Seth A Johnson's avatar
Seth A Johnson committed
5
6
7
8
9
10
11
  "muted": #EAEAEA
);


@import "../bootstrap/scss/bootstrap";

// typography
12
13
@mixin brandon {
  font-family: brandon-grotesque, sans-serif;
Seth A Johnson's avatar
Seth A Johnson committed
14
15
}

16
17
.brandon {
  @include brandon;
Seth A Johnson's avatar
Seth A Johnson committed
18
19
}

20
21
@mixin abril {
  font-family: abril-text, serif;
Seth A Johnson's avatar
Seth A Johnson committed
22
23
}

24
25
.abril {
  @include abril;
Seth A Johnson's avatar
Seth A Johnson committed
26
27
28
}

body {
29
  @include brandon;
Seth A Johnson's avatar
Seth A Johnson committed
30
31
32
33
34
35
36
}

h1,
h2,
h3,
h4,
h5 {
37
38
    @include abril;
    font-weight: 500;
Seth A Johnson's avatar
Seth A Johnson committed
39
40
41
42
43
44
45
46
47
48
49
50
51
}

h2 {
  margin-top: 2rem;
}

h3, 
h4,
h5 {
  margin-top: 1.5rem;
}

// colors
52
53
54
55
56
57
58
$amherst-brand-color: #311A4D;
$amherst-accent-color: #6837A3;
$amherst-light-blue: #64dfeb;
$amherst-green: #458246;
$amherst-dark-grey: #505061;
$amherst-light-grey: #9BA1A7;
$amherst-black-80: #342f2e;
Seth A Johnson's avatar
Seth A Johnson committed
59
60
61
62
63
64
65
66
67
68

// links
p {
  a {
  text-decoration: underline;
  }
}

// buttons
.btn {
69
  @include brandon;
Seth A Johnson's avatar
Seth A Johnson committed
70
71
72
73
74
}


// navigation
.navbar {
75
  @include brandon;
Seth A Johnson's avatar
Seth A Johnson committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145

  min-height: 6rem;

  .navbar-brand h1 {
    font-size: 1.6rem;
    margin: initial;
    display: inline;
    font-weight: 400;
  }

  .navbar-brand-logo {
    vertical-align: middle;
  }

}

// page
.page-container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

// cards

.card {
  border-radius: 0;

  picture,
  source {
    line-height: 0;
  };
}


// home
.books-container {
  padding: 3rem 0;

  .book-card-list {
    justify-content: space-evenly;
  }

  .book-card-covers-only-list {
    
  }
  
  // home - books
  .book-card {
    max-width: 540px;

    h3 {
      font-size: 1.25rem;
      margin-top: 0;
    }

    .card-img {
      border-radius: 0;
      max-height: 300px;
    }

    .card-text {
      font-size: .9rem;
    }

    .cover-only-img {
      min-width: 200px;
    }
  }
}

146
147
// home - tagline and catalog container
.tagline-catalog-container {
148
  background-color: $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
149
150
151
152
  padding: 4rem 0;
  border-top: 1px solid rgba(0,0,0,.125);

  .tagline {
153
    @include abril;
Seth A Johnson's avatar
Seth A Johnson committed
154
155
    font-weight: bold;
    font-size: 1.6rem;
156
    margin-left: 1.5em;
Seth A Johnson's avatar
Seth A Johnson committed
157
158
159
  }
}

160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// home - catalog
.catalog-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;

  figure {
    display: flex;
    justify-content: center;
  }

}
.catalog-image {
  width: 95px;
}

Seth A Johnson's avatar
Seth A Johnson committed
176
177
// home - for authors/for libraries, impact report
.author-library-container {
178
  padding: 1.5rem 0;
Seth A Johnson's avatar
Seth A Johnson committed
179
180
  border-bottom: 1px solid rgba(0,0,0,.125);
  border-top: 1px solid rgba(0,0,0,.125);
181
182
183
184
185

  .author-container, .newsletter-container, .library-container {
    margin: 15px 0;
  }

Seth A Johnson's avatar
Seth A Johnson committed
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
217
218
219
}

.video-impact-container {
  border-bottom: 1px solid rgba(0,0,0,.125);
  background-color: #f8f9fa;
}

.news-events-container, .video-impact-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  h2 {
    margin-bottom: 1rem;
  }
}

// video
.video-embed {
  margin-bottom: 1rem;
}

// news and events on homepage and individual pages
.post-image {
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 2em;
  margin-top: 2em;
}

.news {
  p {
    line-height: 1.7;
  }
}

220
221
222
223
224
225
.news-item .main {
  @include abril;
  line-height: 1.7;
  font-size: 1.1rem;
}

Seth A Johnson's avatar
Seth A Johnson committed
226
227
228
.summary {

    p {
229
230
231
      font-size: 1.5rem;
      margin-bottom: 1em;
      @include brandon;
Seth A Johnson's avatar
Seth A Johnson committed
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
      line-height: 1.5;
    }

    h4 {
      font-size: .9em;
      margin-top: .2em !important;
    }
}

.blog-card-container {

  a:hover {
    text-decoration: none;
  }

  .card:hover {
248
    border: 1px solid $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
  }

  .card-image {
    max-height: 300px;
    overflow: hidden;
  }
}

// join

.join-us {
  padding-top: 0;

  img {
    margin-bottom: 2rem;
  }

}

.join-us h2 {
  margin-top: 1rem;
}

.jumbotron {
273
  background-color: $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
274
275
276
277
278
279
280
281
282
283
284
285
286
  margin-bottom: 4rem;
}

.featurette-divider {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.join-jumbo {
  h1, p {
    color: #f8f9fa;
  }
  p.join-tag {
287
    color: $amherst-accent-color;
Seth A Johnson's avatar
Seth A Johnson committed
288
289
290
291
292
293
294
295
296
297
298
    font-size: 1.5rem;
    margin-bottom: 0;
  }
}

.intro {
  text-transform: uppercase;
  font-size: 1.4rem;
}

thead {
299
  background-color: $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
  color: #f8f9fa;
}

.join-h3 {
  text-transform: uppercase;
  font-size: 1.4rem;
}

ol.join {
  font-size: 1.25rem;
}

.cta-bottom {
  padding-top: 4em;
}

// impact
.map {
  height: 60%;
}

.map-container a:hover {
  text-decoration: none;
  img {
    filter: grayscale(80%);
    filter: contrast(50%);
  }
}

p.social {
  padding-top: .4em;
  a {
    padding-right: 0.75em;
    svg {
      display: inline-block;
      vertical-align: middle;
336
      fill: $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
337
338
    }
  }
339
340
341
  a:first-of-type {
    padding-left: 1em;
  }
Seth A Johnson's avatar
Seth A Johnson committed
342
343
344
345
}

// footer
.footer {
346
  background-color: $amherst-brand-color;
Seth A Johnson's avatar
Seth A Johnson committed
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
  border-top: 1px solid rgba(0,0,0,.125);
  padding: 3rem 0;

  .fulcrum {
    vertical-align: baseline;
  }

  .block {
    display: block;
  }

  p.social {
    padding-top: .4em;
    a {
      padding-right: 0.75em;
      svg {
        display: inline-block;
        vertical-align: middle;
365
        fill: $amherst-light-blue;
Seth A Johnson's avatar
Seth A Johnson committed
366
367
      }
    }
368
369
370
    a:first-of-type {
      padding-left: 0;
    }
Seth A Johnson's avatar
Seth A Johnson committed
371
372
373
374
375
  }

}