forked from Financial-Times/o-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
47 lines (36 loc) · 1.08 KB
/
main.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$o-video-is-silent: true !default;
@import "@financial-times/o-colors/main";
@import "@financial-times/o-icons/main";
@import "@financial-times/o-loading/main";
@import "@financial-times/o-normalise/main";
@import "@financial-times/o-typography/main";
@import "src/scss/ads";
@import "src/scss/base";
@import "src/scss/info";
@import "src/scss/placeholder";
@import "src/scss/guidance";
/// @access public
/// @param {Map} $opts - ['attributes': ('ads', 'info', 'placeholder'), 'sizes': ('small', 'medium', 'large')]
/// Outputs all video styles
@mixin oVideo($opts: (
'attributes': ('ads', 'info', 'placeholder'),
'sizes': ('small', 'medium', 'large')
)) {
$attributes: map-get($opts, 'attributes');
$sizes: map-get($opts, 'sizes');
@include _oVideoBase();
@if index($attributes, 'ads') {
@include _oVideoAds();
}
@if index($attributes, 'placeholder') {
@include _oVideoPlaceholder();
}
@if index($attributes, 'info') {
@include _oVideoInfo($sizes);
}
@include _oVideoGuidance();
}
@if $o-video-is-silent == false {
@include oVideo();
$o-video-is-silent: true !global;
}