diff options
Diffstat (limited to 'subprojects/docs/src/components/Video/index.module.css')
-rw-r--r-- | subprojects/docs/src/components/Video/index.module.css | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/subprojects/docs/src/components/Video/index.module.css b/subprojects/docs/src/components/Video/index.module.css new file mode 100644 index 00000000..209c5d64 --- /dev/null +++ b/subprojects/docs/src/components/Video/index.module.css | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2024 The Refinery Authors | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | |||
7 | :global(.videocolor) { | ||
8 | fill: var(--ifm-color-primary); | ||
9 | } | ||
10 | |||
11 | [data-theme='dark'] :global(.videocolor) { | ||
12 | fill: var(--ifm-color-primary-darker); | ||
13 | } | ||
14 | |||
15 | .video__container { | ||
16 | position: relative; | ||
17 | width: 100%; | ||
18 | height: auto; | ||
19 | aspect-ratio: 560/315; | ||
20 | box-shadow: var(--ifm-global-shadow-lw); | ||
21 | transition: box-shadow var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
22 | } | ||
23 | |||
24 | .video__container:hover, | ||
25 | .video__container:focus-within { | ||
26 | box-shadow: var(--ifm-global-shadow-md); | ||
27 | } | ||
28 | |||
29 | .video, | ||
30 | .video__button, | ||
31 | .video__image, | ||
32 | .video__svg, | ||
33 | .video__svg > svg { | ||
34 | position: absolute; | ||
35 | top: 0; | ||
36 | left: 0; | ||
37 | width: 100%; | ||
38 | height: 100%; | ||
39 | } | ||
40 | |||
41 | .video__svg text { | ||
42 | font-family: var(--ifm-font-family-base); | ||
43 | } | ||
44 | |||
45 | .video__button { | ||
46 | margin: 0; | ||
47 | padding: 0; | ||
48 | border: none; | ||
49 | cursor: pointer; | ||
50 | background-size: cover; | ||
51 | } | ||
52 | |||
53 | .video__cover { | ||
54 | z-index: 1; | ||
55 | } | ||
56 | |||
57 | :global(.videoplay) { | ||
58 | fill: rgb(255 255 255 / 40%); | ||
59 | transition: fill var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
60 | } | ||
61 | |||
62 | .video__container:hover :global(.videoplay), | ||
63 | .video__container:focus-within :global(.videoplay) { | ||
64 | fill: rgb(255 255 255 / 70%); | ||
65 | } | ||
66 | |||
67 | :global(.videotitle) * { | ||
68 | fill: #303846; | ||
69 | transition: fill var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
70 | } | ||
71 | |||
72 | .video__container:hover :global(.videotitle) *, | ||
73 | .video__container:focus-within :global(.videotitle) * { | ||
74 | fill: #21252b; | ||
75 | } | ||