diff options
Diffstat (limited to 'subprojects/docs/src/components/Features/index.module.css')
-rw-r--r-- | subprojects/docs/src/components/Features/index.module.css | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/subprojects/docs/src/components/Features/index.module.css b/subprojects/docs/src/components/Features/index.module.css new file mode 100644 index 00000000..aa136724 --- /dev/null +++ b/subprojects/docs/src/components/Features/index.module.css | |||
@@ -0,0 +1,126 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2024 The Refinery Authors | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | |||
7 | :global(.fibackground) { | ||
8 | fill: url(#fi-lg); | ||
9 | } | ||
10 | |||
11 | :global(.fiforeground) { | ||
12 | fill: #303846; | ||
13 | } | ||
14 | |||
15 | :global(.fiempty) { | ||
16 | fill: #fff; | ||
17 | } | ||
18 | |||
19 | [data-theme='dark'] :global(.fiforeground) { | ||
20 | fill: #ebebff; | ||
21 | } | ||
22 | |||
23 | [data-theme='dark'] :global(.fiempty) { | ||
24 | fill: var(--ifm-background-color); | ||
25 | } | ||
26 | |||
27 | .lg { | ||
28 | position: absolute; | ||
29 | visibility: hidden; | ||
30 | top: 0; | ||
31 | left: 0; | ||
32 | width: 0; | ||
33 | height: 0; | ||
34 | } | ||
35 | |||
36 | .lg__start { | ||
37 | stop-color: var(--ifm-color-primary-lighter); | ||
38 | } | ||
39 | |||
40 | .lg__end { | ||
41 | stop-color: var(--ifm-color-primary); | ||
42 | } | ||
43 | |||
44 | [data-theme='dark'] .lg__start { | ||
45 | stop-color: var(--ifm-color-primary-light); | ||
46 | } | ||
47 | |||
48 | [data-theme='dark'] .lg__end { | ||
49 | stop-color: var(--ifm-color-primary-darker); | ||
50 | } | ||
51 | |||
52 | .feature__container { | ||
53 | display: flex; | ||
54 | flex-direction: column; | ||
55 | container-type: inline-size; | ||
56 | justify-content: stretch; | ||
57 | } | ||
58 | |||
59 | .feature { | ||
60 | display: flex; | ||
61 | flex-direction: column; | ||
62 | align-items: center; | ||
63 | margin-bottom: var(--ifm-leading); | ||
64 | gap: 1rem; | ||
65 | } | ||
66 | |||
67 | .feature__icon { | ||
68 | display: flex; | ||
69 | width: 100%; | ||
70 | max-width: 220px; | ||
71 | height: auto; | ||
72 | aspect-ratio: 1/1; | ||
73 | } | ||
74 | |||
75 | .feature__icon svg { | ||
76 | width: 100%; | ||
77 | height: 100%; | ||
78 | } | ||
79 | |||
80 | .feature__contents { | ||
81 | display: flex; | ||
82 | flex-direction: column; | ||
83 | align-items: center; | ||
84 | gap: 1rem; | ||
85 | } | ||
86 | |||
87 | .feature__title { | ||
88 | margin: 0; | ||
89 | } | ||
90 | |||
91 | .feature__text { | ||
92 | margin: 0; | ||
93 | text-align: center; | ||
94 | } | ||
95 | |||
96 | @container (min-width: 660px) { | ||
97 | .feature { | ||
98 | flex-direction: row; | ||
99 | } | ||
100 | |||
101 | .feature--even { | ||
102 | flex-direction: row-reverse; | ||
103 | } | ||
104 | |||
105 | .feature__icon { | ||
106 | flex-shrink: 0; | ||
107 | } | ||
108 | |||
109 | .feature__contents { | ||
110 | align-items: flex-start; | ||
111 | } | ||
112 | |||
113 | .feature--even .feature__contents { | ||
114 | align-items: flex-end; | ||
115 | } | ||
116 | |||
117 | .feature__title, | ||
118 | .feature__text { | ||
119 | text-align: left; | ||
120 | } | ||
121 | |||
122 | .feature--even .feature__title, | ||
123 | .feature--even .feature__text { | ||
124 | text-align: right; | ||
125 | } | ||
126 | } | ||