aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/docs/src/components/Features/index.module.css
blob: 20ad300bedc3279e39ec07c7e9d8a5b1d0b2e087 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
 * SPDX-FileCopyrightText: 2024 The Refinery Authors
 *
 * SPDX-License-Identifier: EPL-2.0
 */

:global(.fibackground) {
  fill: url(#fi-lg);
}

:global(.fiforeground) {
  fill: #303846;
}

:global(.fiempty) {
  fill: #fff;
}

[data-theme='dark'] :global(.fiforeground) {
  fill: var(--ifm-font-color-base);
}

[data-theme='dark'] :global(.fiempty) {
  fill: var(--ifm-background-color);
}

.lg {
  position: absolute;
  visibility: hidden;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.lg__start {
  stop-color: var(--ifm-color-primary-lighter);
}

.lg__end {
  stop-color: var(--ifm-color-primary);
}

[data-theme='dark'] .lg__start {
  stop-color: var(--ifm-color-primary-light);
}

[data-theme='dark'] .lg__end {
  stop-color: var(--ifm-color-primary-darker);
}

.feature__container {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  justify-content: stretch;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--ifm-leading);
  gap: 1rem;
}

.feature__icon {
  display: flex;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1/1;
}

.feature__icon svg {
  width: 100%;
  height: 100%;
}

.feature__contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feature__title {
  margin: 0;
}

.feature__text {
  margin: 0;
  text-align: center;
}

@container (min-width: 660px) {
  .feature {
    flex-direction: row;
  }

  .feature--even {
    flex-direction: row-reverse;
  }

  .feature__icon {
    flex-shrink: 0;
  }

  .feature__contents {
    align-items: flex-start;
  }

  .feature--even .feature__contents {
    align-items: flex-end;
  }

  .feature__title,
  .feature__text {
    text-align: left;
  }

  .feature--even .feature__title,
  .feature--even .feature__text {
    text-align: right;
  }
}

.row--last {
  margin-bottom: calc(-1 * var(--ifm-leading));
}