_highlighted_facts.scss 7.28 KB
Newer Older
1
2
3
$highlighted-fact-bg-color:$lighter-gray;
$highlighted-fact-color:$uw-black;

4
$color-ff: 
m26lebla's avatar
m26lebla committed
5
uwaterloo #fffaaa #fdd54f #fdd54f $dark-gray,
6
7
8
9
10
11
12
13
14
15
16
ahs #97DFEF #00BED0 #0098A5 #005963,
arts #FFD5A5 #FBAF00 #E78100 #D93F00,
engineering #D0B4EF #BE33DA #8100B4 #57058B,
environment #DAF582 #BED500 #B4BE00 #607000,
math #FFBEEF #FF63AA #DF2498 #C60078,
science #B4D5FF #63A0FF #0073CE #0033BE,
org_school #FFA5AA #E41740 #B71233 #80001F,
org_cgc #FFA5AA #E41740 #B71233 #80001F,
org_ren #FFA5AA #E41740 #B71233 #80001F,
org_stj #FFA5AA #E41740 #B71233 #80001F,
org_stp #FFA5AA #E41740 #B71233 #80001F;
17

vramchar's avatar
vramchar committed
18
19
20
21
22
23
24
25
26
27
28
29
30
$faculty-colors: (
  '.uwdefault':$dark-gray,
  '.ahs':#005963,
  '.arts':#D93F00,
  '.engineering':#57058B,
  '.environment':#607000,
  '.math':#C60078,
  '.science':#0033BE
);
@function faculty-color($key: $value) {
  @return map-get($faculty-colors, $key);
}

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

//fonts
$highlighted-fact-font:$base-font-family;
$highlighted-fact-font-big:$heading-font-family;
$highlighted-fact-font-medium:$highlighted-fact-font;
$highlighted-fact-font-small:$font-1451-medium;
$highlighted-fact-font-caption:$serif-font-family;

//appearance
$global-radius: 3px;
$global-rounded: 1000px;
$highlighted-fact-radius: $global-radius;
$highlighted-fact-round:$global-rounded;

//ul 
.highlighted-fact-wrapper{
  width:100%;
  display:block;
  float:left;
  height:auto;
  margin:0;
  position:relative;
  list-style-type:none;
  clear:both;
55
56
57
58
  &.black{
    

  }
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
}
.data-usecarousel,
.data-numberpercarousel,
{
  visibility:hidden;
  height:0;
}

%highlighted-fact {

  text-align:center;
  font-weight:300;
  border-radius: $highlighted-fact-radius + 10;
  display: block;
  padding: 1rem;
  position:relative;
  min-height:20rem;
  img{
    margin:0 auto;
    margin-bottom: 1rem;
    display:block;
    height: 6rem;
    width: auto;
   
  }
  &.no-icon {
    span{
      &:first-child{
        margin-top:4rem;
      }
    }
  }
  span{
    text-align:center;
    clear:both;
    float:none;
vramchar's avatar
vramchar committed
95
96
    display:block;
    
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  }
}


.highlighted-fact-tall{
  border-top:1px solid $gray;
  color:$gray;
  padding-top:3rem;
  span{}
  @include media($medium-screen) {
   padding-left:1.5rem;
   border-top:1px solid $white;
   border-left:1px solid $gray;
  }

}

.highlighted-fact{
  @extend %highlighted-fact;
vramchar's avatar
vramchar committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

      .ff-with-bubbles .grey & {
        $highlighted-fact-bg-color: $lighter-gray;
        background-color: $highlighted-fact-bg-color;
      }
      .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
          color:$uw-black;
      }
      .highlighted-fact-text-small{
        background-color:$uw-gold;
        color:$uw-black;
       }
       .highlighted-fact-caption{
         p{
           color:$uw-black;
         }
       }

       .ahs &,
       &.ahs{
136
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
vramchar's avatar
vramchar committed
137
138
139
140
141
          color:faculty-color('.ahs');
        }
        .highlighted-fact-text-small{
          background-color:faculty-color('.ahs');
          color:$uw-black;
142
143
        }
        .highlighted-fact-caption{
vramchar's avatar
vramchar committed
144
145
146
147
148
149
150
151
152
          p{
            color:$uw-black;
          }
        }
      }
      .arts  &,
      &.arts{
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
          color:faculty-color('.arts');
153
154
        }
        .highlighted-fact-text-small{
vramchar's avatar
vramchar committed
155
156
157
158
159
160
161
          background-color:faculty-color('.arts');
          color:$uw-black;
        }
        .highlighted-fact-caption{
          p{
            color:$uw-black;
          }
162
163
        }
      }
vramchar's avatar
vramchar committed
164
165
      .engineering &,
      &.engineering{
vramchar's avatar
vramchar committed
166
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
vramchar's avatar
vramchar committed
167
168
169
170
          color:faculty-color('.engineering');
        }
        .highlighted-fact-text-small{
          background-color:faculty-color('.engineering');
vramchar's avatar
vramchar committed
171
172
          color:$uw-black;
        }
vramchar's avatar
vramchar committed
173
174
175
176
177
178
179
180
181
182
183
        .highlighted-fact-caption{
          p{
            color:$uw-black;
          }
        }
      }
      .environment &,
      &.environment{
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
          color:faculty-color('.environment');
        }
vramchar's avatar
vramchar committed
184
        .highlighted-fact-text-small{
vramchar's avatar
vramchar committed
185
          background-color:faculty-color('.environment');
vramchar's avatar
vramchar committed
186
187
188
          color:$uw-black;
        }
        .highlighted-fact-caption{
vramchar's avatar
vramchar committed
189
          p{
vramchar's avatar
vramchar committed
190
191
192
            color:$uw-black;
          }
        }
193
      }
vramchar's avatar
vramchar committed
194
195
      .math &,
      &.math{
196
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
vramchar's avatar
vramchar committed
197
          color:faculty-color('.math');
198
199
        }
        .highlighted-fact-text-small{
vramchar's avatar
vramchar committed
200
201
          background-color:faculty-color('.math');
          color:$uw-black;
202
        }
vramchar's avatar
vramchar committed
203
204
205
206
        .highlighted-fact-caption{
          p{
            color:$uw-black;
          }
207
208
        }
      }
vramchar's avatar
vramchar committed
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
      .science &,
      &.science{
        .highlighted-fact-text-big,.highlighted-fact-text-medium,.highlighted-fact-caption{
          color:faculty-color('.science');
        }
        .highlighted-fact-text-small{
          background-color:faculty-color('.science');
          color:$uw-black;
        }
        .highlighted-fact-caption{
          p{
            color:$uw-black;
          }
        }
      }
  
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
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
290
291
292
  img{
  }
  .highlighted-fact-wrapper &{ 
   
  }
  .text-left &,
  &.text-left{
    img{
      float:left;
      clear:both;
    }
     span{
      text-align:left;
      display:block;
      clear:left;
    } 
  }
  .text-center &,
  &.text-center{
    span{
    text-align:center;
    display:block;
    clear:both;
   }
  }
 .text-right &,
  &.text-right{
    img{
      margin:0;
      float:right;
      clear:both;
    }
    span{
     text-align:right;
      display:block;
      clear:right;
    }
  }
  &.img-left{
   img{
      float:left;
    }
     span{
      text-align:left;
      display:block;
      clear:none;
    }
  }
  &.img-right{
   img{
      float:right; 
    }
     span{
      text-align:right;
      display:block;
      clear:none;
    }
  }
}



.highlighted-fact-text-big{
  font-family:$highlighted-fact-font-big;
  font-size: modular-scale(10);
  font-weight:600;
  line-height:1.2;
  hyphens: none;
vramchar's avatar
vramchar committed
293
  color: $uw-black;
294
295
296
297
298
299
300
301
302
303


}
.highlighted-fact-text-medium{
  font-family:$highlighted-fact-font-medium;
  font-size: modular-scale(2);
  font-weight:300;
  line-height:1.2;
  padding: 0.25rem 0rem;
  hyphens: none;
vramchar's avatar
vramchar committed
304
  color: $uw-black;
305
306
307
308
309
310
311
312
313
314
315
316

}
.highlighted-fact-text-small{
  font-family:$highlighted-fact-font-small;
  font-size: modular-scale(0);
  line-height:1.25;
  padding: 0.25rem 0rem;
  margin:1rem auto;
  padding:0.5rem 1.25rem;
  hyphens: none;
  width:auto;
  display:inline-block !important;
vramchar's avatar
vramchar committed
317
318
319
  background-color: $uw-gold;
  color: $uw-black;

320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
}
.highlighted-fact-caption{
  p{
    font-family:$highlighted-fact-font;
    line-height:1.2;
    font-size: modular-scale(-1);
  }
  font-family:$highlighted-fact-font;
  line-height:1.2;
  font-size: modular-scale(-1);
  font-style:italic;
  padding: 0.25rem 0rem;
  hyphens: none;


}
    .highlighted-fact{
    .js &{
        margin-right:5px;
        margin-left:5px;
        min-height:20rem;
        max-height:30rem;
        margin-bottom:0;
            
        }
        min-height:20rem;   
        margin-bottom:1rem;
    }
    .owl-wrapper-outer{

    }
    .owl-wrapper{
        padding:2rem 0;
    }
    .owl-item{
        position:relative;

        &:first-child{
            margin-left:0;
        }
       
361
    }