diff options
Diffstat (limited to 'subprojects/docs/src/pages/index.module.css')
-rw-r--r-- | subprojects/docs/src/pages/index.module.css | 62 |
1 files changed, 7 insertions, 55 deletions
diff --git a/subprojects/docs/src/pages/index.module.css b/subprojects/docs/src/pages/index.module.css index 572e5eef..367b78ed 100644 --- a/subprojects/docs/src/pages/index.module.css +++ b/subprojects/docs/src/pages/index.module.css | |||
@@ -4,6 +4,10 @@ | |||
4 | * SPDX-License-Identifier: EPL-2.0 | 4 | * SPDX-License-Identifier: EPL-2.0 |
5 | */ | 5 | */ |
6 | 6 | ||
7 | .page { | ||
8 | margin-bottom: 2rem; | ||
9 | } | ||
10 | |||
7 | .buttons { | 11 | .buttons { |
8 | display: flex; | 12 | display: flex; |
9 | flex-direction: row; | 13 | flex-direction: row; |
@@ -12,7 +16,7 @@ | |||
12 | } | 16 | } |
13 | 17 | ||
14 | .section { | 18 | .section { |
15 | padding: 4rem 0; | 19 | padding: 2rem 0; |
16 | } | 20 | } |
17 | 21 | ||
18 | @media (max-width: 576px) { | 22 | @media (max-width: 576px) { |
@@ -28,62 +32,10 @@ | |||
28 | 32 | ||
29 | .section__title { | 33 | .section__title { |
30 | text-align: center; | 34 | text-align: center; |
35 | margin-bottom: var(--ifm-leading); | ||
31 | } | 36 | } |
32 | 37 | ||
33 | .section--video { | 38 | .section--video { |
39 | padding: 4rem 0; | ||
34 | background: var(--ifm-background-surface-color); | 40 | background: var(--ifm-background-surface-color); |
35 | } | 41 | } |
36 | |||
37 | .video__container { | ||
38 | position: relative; | ||
39 | width: 100%; | ||
40 | height: auto; | ||
41 | aspect-ratio: 560/315; | ||
42 | box-shadow: var(--ifm-global-shadow-lw); | ||
43 | transition: box-shadow var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
44 | } | ||
45 | |||
46 | .video__container:hover, | ||
47 | .video__container:focus-within { | ||
48 | box-shadow: var(--ifm-global-shadow-md); | ||
49 | } | ||
50 | |||
51 | .video, .video__button, .video__cover { | ||
52 | position: absolute; | ||
53 | top: 0; | ||
54 | left: 0; | ||
55 | width: 100%; | ||
56 | height: 100%; | ||
57 | } | ||
58 | |||
59 | .video__button { | ||
60 | margin: 0; | ||
61 | padding: 0; | ||
62 | border: none; | ||
63 | cursor: pointer; | ||
64 | } | ||
65 | |||
66 | .video__cover { | ||
67 | z-index: 1; | ||
68 | } | ||
69 | |||
70 | .video__play { | ||
71 | position: absolute; | ||
72 | top: 50%; | ||
73 | left: 50%; | ||
74 | transform: translate(-50%, -50%); | ||
75 | z-index: 1; | ||
76 | aspect-ratio: 1/1; | ||
77 | height: 16rem; | ||
78 | width: auto; | ||
79 | max-height: 50%; | ||
80 | background: var(--ifm-color-primary); | ||
81 | mask-image: url(@material-icons/svg/svg/play_circle/outline.svg); | ||
82 | mask-size: contain; | ||
83 | transition: background var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
84 | } | ||
85 | |||
86 | .video__button:hover .video__play, | ||
87 | .video__button:focus .video__play { | ||
88 | background: var(--ifm-color-primary-dark); | ||
89 | } | ||