graphen 1.10.19 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,169 @@
1
+ :root {
2
+ --t: 2s;
3
+ --rx: 5vmin;
4
+ --ry: var(--rx) / cos(30deg);
5
+ --dx: 1vmin;
6
+ --dy: var(--dx) * sin(pi / 3);
7
+ --global-offset-x: calc(0.5 * var(--dx) + var(--rx));
8
+ --global-offset-y: calc(1.5 * var(--ry) + var(--dy));
9
+ }
10
+
11
+ .hex {
12
+ animation: infinite;
13
+ display: flex;
14
+ position: absolute;
15
+ height: calc(4 * var(--ry));
16
+ width: calc(4 * var(--rx));
17
+ filter: drop-shadow(-1px 0 0 $gb-color-component-dark) drop-shadow(1px 0 0 $gb-color-component);
18
+
19
+ &::before {
20
+ content: "";
21
+ color: white;
22
+ border-right: calc(2 * var(--rx)) solid;
23
+ border-block: calc(1 * var(--ry)) solid transparent;
24
+ }
25
+
26
+ &::after {
27
+ content: "";
28
+ color: white;
29
+ border-left: calc(2 * var(--rx)) solid;
30
+ border-block: calc(1 * var(--ry)) solid transparent;
31
+ }
32
+ }
33
+
34
+ .root {
35
+ position: relative;
36
+ margin: auto;
37
+ }
38
+
39
+ .one,
40
+ .three,
41
+ .five,
42
+ .seven,
43
+ .nine,
44
+ .eleven {
45
+ animation-name: odd-animation;
46
+ animation-duration: calc(3 * var(--t));
47
+ }
48
+
49
+ .two,
50
+ .four,
51
+ .six,
52
+ .eight,
53
+ .ten,
54
+ .twelve {
55
+ animation-name: even-animation;
56
+ animation-duration: calc(2 * var(--t));
57
+ inset: var(--offset-y) auto auto var(--offset-x);
58
+ }
59
+
60
+ .first {
61
+ animation-delay: calc(-2 * var(--t));
62
+ }
63
+
64
+ .second {
65
+ animation-delay: calc(-1 * var(--t));
66
+ }
67
+
68
+ .third {
69
+ animation-delay: calc(-0 * var(--t));
70
+ }
71
+
72
+ .one {
73
+ --offset-x: calc(var(--global-offset-x) * 2);
74
+ --offset-y: calc(var(--global-offset-y) * -2);
75
+ }
76
+
77
+ .two {
78
+ --offset-x: calc(var(--global-offset-x) * 3);
79
+ --offset-y: calc(var(--global-offset-y) * -1);
80
+ }
81
+
82
+ .three {
83
+ --offset-x: calc(var(--global-offset-x) * 4);
84
+ --offset-y: calc(var(--global-offset-y) * 0);
85
+ }
86
+
87
+ .four {
88
+ --offset-x: calc(var(--global-offset-x) * 3);
89
+ --offset-y: calc(var(--global-offset-y) * 1);
90
+ }
91
+
92
+ .five {
93
+ --offset-x: calc(var(--global-offset-x) * 2);
94
+ --offset-y: calc(var(--global-offset-y) * 2);
95
+ }
96
+
97
+ .six {
98
+ --offset-x: calc(var(--global-offset-x) * 0);
99
+ --offset-y: calc(var(--global-offset-y) * 2);
100
+ }
101
+
102
+ .seven {
103
+ --offset-x: calc(var(--global-offset-x) * -2);
104
+ --offset-y: calc(var(--global-offset-y) * 2);
105
+ }
106
+
107
+ .eight {
108
+ --offset-x: calc(var(--global-offset-x) * -3);
109
+ --offset-y: calc(var(--global-offset-y) * 1);
110
+ }
111
+
112
+ .nine {
113
+ --offset-x: calc(var(--global-offset-x) * -4);
114
+ --offset-y: calc(var(--global-offset-y) * 0);
115
+ }
116
+
117
+ .ten {
118
+ --offset-x: calc(var(--global-offset-x) * -3);
119
+ --offset-y: calc(var(--global-offset-y) * -1);
120
+ }
121
+
122
+ .eleven {
123
+ --offset-x: calc(var(--global-offset-x) * -2);
124
+ --offset-y: calc(var(--global-offset-y) * -2);
125
+ }
126
+
127
+ .twelve {
128
+ --offset-x: calc(var(--global-offset-x) * 0);
129
+ --offset-y: calc(var(--global-offset-y) * -2);
130
+ }
131
+
132
+ @keyframes odd-animation {
133
+ 0% {
134
+ scale: 0;
135
+ translate: calc(0.5 * var(--offset-x)) calc(0.5 * var(--offset-y));
136
+ }
137
+
138
+ 33.3% {
139
+ scale: 1;
140
+ translate: calc(1 * var(--offset-x)) calc(1 * var(--offset-y));
141
+ }
142
+
143
+ 66.6% {
144
+ scale: 1;
145
+ translate: calc(2 * var(--offset-x)) calc(2 * var(--offset-y));
146
+ }
147
+
148
+ 100% {
149
+ scale: 0;
150
+ translate: calc(3 * var(--offset-x)) calc(3 * var(--offset-y));
151
+ }
152
+ }
153
+
154
+ @keyframes even-animation {
155
+ 0% {
156
+ scale: 0;
157
+ translate: calc(0 * var(--offset-x)) calc(0 * var(--offset-y));
158
+ }
159
+
160
+ 50% {
161
+ scale: 1;
162
+ translate: calc(1 * var(--offset-x)) calc(1 * var(--offset-y));
163
+ }
164
+
165
+ 100% {
166
+ scale: 0;
167
+ translate: calc(2 * var(--offset-x)) calc(2 * var(--offset-y));
168
+ }
169
+ }
@@ -0,0 +1,14 @@
1
+ .example {
2
+ &__splash {
3
+ overflow: clip;
4
+ height: 300px;
5
+ align-content: center;
6
+ }
7
+
8
+ &__logo {
9
+ font-size: 32pt;
10
+ text-align: center;
11
+ position: relative;
12
+ top: calc(-4 * var(--ry) / 2);
13
+ }
14
+ }
package/src/example.scss CHANGED
@@ -35,6 +35,7 @@
35
35
  @import "components/PanelTitle/styles/styles";
36
36
  @import "components/Sample/styles/mixins";
37
37
  @import "components/Sample/styles/styles";
38
+ @import "components/SectionHeader/styles/styles";
38
39
  @import "components/Separator/styles/styles";
39
40
  @import "components/Scroller/styles/styles";
40
41
  @import "components/Switch/styles/mixins";
@@ -43,22 +44,9 @@
43
44
  @import "components/Tooltip/styles/styles";
44
45
  @import "components/Validation/styles/styles";
45
46
  @import "components/Accordion/styles/styles";
47
+ @import "components/Badge/styles/styles";
46
48
  @import "components/Dropdown/styles/styles";
47
49
  @import "components/Skeleton/styles/styles";
48
-
49
- $gc-assets-url: './assets' !default;
50
-
51
- .example {
52
- &__splash-image {
53
- background-image: url($gc-assets-url + "/splash.jpg");
54
- height: 400px;
55
- width: 1000px;
56
- background-size: cover;
57
- border-radius: $radius-large;
58
- background-repeat: no-repeat;
59
- background-position: center;
60
- margin: 0 auto;
61
- max-width: 100%;
62
- min-width: 510px;
63
- }
64
- }
50
+ @import "example/styles/splash";
51
+ @import "example/styles/styles";
52
+ @import "example/styles/docs";