|
| 1 | +$guide-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
| 2 | +@mixin guide-titles { |
| 3 | + font-family: $guide-font-family; |
| 4 | + font-size: 1.1em; |
| 5 | + font-weight: 400; |
| 6 | +} |
| 7 | + |
1 | 8 | .ugb-style-guide {
|
| 9 | + &, |
| 10 | + p { |
| 11 | + font-size: 16px; |
| 12 | + } |
| 13 | + |
2 | 14 | .ugb-style-guide__content {
|
| 15 | + background: #fff; // This is needed for the export |
3 | 16 | padding: 70px;
|
4 | 17 | }
|
5 | 18 |
|
| 19 | + .ugb-style-guide__title { |
| 20 | + font-family: $guide-font-family; |
| 21 | + font-size: 1.1em; |
| 22 | + font-weight: 400; |
| 23 | + } |
| 24 | + |
6 | 25 | .ugb-style-guide__columns {
|
7 | 26 | display: grid;
|
8 | 27 | grid-template-columns: 1fr 1fr;
|
9 | 28 | gap: 50px;
|
10 | 29 | }
|
11 | 30 |
|
12 | 31 | .ugb-style-guide__section-title {
|
13 |
| - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
14 |
| - font-size: 2em; |
| 32 | + font-family: $guide-font-family; |
| 33 | + font-size: 32.44px; |
15 | 34 | font-weight: 700;
|
16 | 35 | border-bottom: 1px solid #eee;
|
17 | 36 | line-height: 1.2;
|
18 | 37 | padding: 0 0 8px;
|
19 | 38 | margin-bottom: 1em;
|
20 | 39 | &:not(:first-child) {
|
21 |
| - margin-top: 2em; |
| 40 | + margin-top: 2.5em; |
22 | 41 | }
|
23 | 42 | }
|
24 | 43 |
|
25 | 44 | .ugb-style-guide__section-subheading {
|
26 |
| - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
27 |
| - font-size: 1.1em; |
| 45 | + font-family: $guide-font-family; |
| 46 | + font-size: 25.63px; |
28 | 47 | font-weight: 400;
|
29 | 48 | margin-bottom: 1em;
|
| 49 | + color: #999; |
30 | 50 | &:not(:first-child) {
|
31 |
| - margin-top: 1.5em; |
| 51 | + margin-top: 2.5em; |
32 | 52 | }
|
33 | 53 | }
|
34 |
| - .ugb-style-guide__label { |
35 |
| - font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
36 |
| - font-size: 1em; |
37 |
| - font-weight: 500; |
| 54 | + |
| 55 | + // Color Schemes |
| 56 | + |
| 57 | + .ugb-style-guide__color-container { |
| 58 | + border-radius: 16px; |
| 59 | + border: 1px solid #eee; |
| 60 | + padding: 24px; |
| 61 | + } |
| 62 | + |
| 63 | + .ugb-style-guide__color-schemes { |
| 64 | + gap: 20px; |
| 65 | + margin-top: 20px; |
| 66 | + display: grid; |
| 67 | + grid-template-columns: repeat(3, 1fr); |
| 68 | + |
| 69 | + .ugb-style-guide__color-scheme-title { |
| 70 | + margin: 0 0 48px; |
| 71 | + } |
| 72 | + } |
| 73 | + |
| 74 | + .ugb-style-guide__color-scheme__subtitle { |
| 75 | + font-size: 14.22px; |
| 76 | + margin-bottom: 8px; |
38 | 77 | line-height: 1;
|
| 78 | + } |
39 | 79 |
|
40 |
| - p:first-child { |
41 |
| - margin: 0; |
| 80 | + .ugb-style-guide__color-scheme__heading { |
| 81 | + font-size: 28.83px; |
| 82 | + font-weight: 600; |
| 83 | + margin-bottom: 24px; |
| 84 | + line-height: 1.2; |
| 85 | + } |
| 86 | + |
| 87 | + .ugb-style-guide__color-scheme__body { |
| 88 | + font-size: 16px; |
| 89 | + line-height: 1.6; |
| 90 | + a:hover { |
| 91 | + color: var(--hover-color) !important; |
42 | 92 | }
|
| 93 | + } |
| 94 | + |
| 95 | + .ugb-style-guide__color-scheme__links { |
| 96 | + display: flex; |
| 97 | + gap: 16px; |
| 98 | + margin-top: 24px; |
| 99 | + } |
43 | 100 |
|
44 |
| - p:last-child { |
45 |
| - margin-top: 4px; |
46 |
| - margin-bottom: 0; |
| 101 | + .ugb-style-guide__color-scheme__button, |
| 102 | + .ugb-style-guide__color-scheme__button--outline { |
| 103 | + padding: 12px 24px; |
| 104 | + border: 0; |
| 105 | + border-radius: 4px; |
| 106 | + } |
| 107 | + .ugb-style-guide__color-scheme__button { |
| 108 | + &:hover { |
| 109 | + background-color: var(--hover-background-color) !important; |
| 110 | + color: var(--hover-color) !important; |
| 111 | + } |
| 112 | + } |
| 113 | + .ugb-style-guide__color-scheme__button--outline { |
| 114 | + background: transparent; |
| 115 | + border-width: 2px; |
| 116 | + border-style: solid; |
| 117 | + &:hover { |
| 118 | + border-color: var(--hover-border-color) !important; |
| 119 | + color: var(--hover-color) !important; |
47 | 120 | }
|
48 | 121 | }
|
49 | 122 |
|
| 123 | + .ugb-style-guide__color-scheme__colors { |
| 124 | + margin-top: 16px; |
| 125 | + p { |
| 126 | + margin: 0; |
| 127 | + line-height: 1.6; |
| 128 | + font-size: 14.22px; |
| 129 | + } |
| 130 | + } |
| 131 | + |
| 132 | + .ugb-style-guide__color-indicator { |
| 133 | + border: 1px solid #eee; |
| 134 | + width: 1em; |
| 135 | + height: 1em; |
| 136 | + border-radius: 100%; |
| 137 | + display: inline-block; |
| 138 | + vertical-align: middle; |
| 139 | + margin: -4px 4px 0; |
| 140 | + } |
| 141 | + |
| 142 | + // Colors |
| 143 | + |
50 | 144 | .ugb-style-guide__colors {
|
51 | 145 | gap: 20px;
|
52 | 146 | margin-top: 20px;
|
53 | 147 | display: flex;
|
54 | 148 | flex-wrap: wrap;
|
55 | 149 | .ugb-style-guide__column {
|
56 | 150 | flex: 1 1 200px;
|
57 |
| - height: 100px; |
58 |
| - border-radius: 10px; |
59 |
| - border: 1px solid #eee; |
| 151 | + height: 130px; |
60 | 152 | display: flex;
|
61 | 153 | align-items: flex-end;
|
62 |
| - padding: 12px; |
| 154 | + max-width: calc(50% - 10px); |
63 | 155 | }
|
64 | 156 | }
|
65 | 157 |
|
| 158 | + .ugb-style-guide__color-label { |
| 159 | + @include guide-titles; |
| 160 | + font-size: 18px; |
| 161 | + font-weight: 600; |
| 162 | + line-height: 1.2; |
| 163 | + display: flex; |
| 164 | + flex-direction: column; |
| 165 | + gap: 4px; |
| 166 | + } |
66 | 167 | }
|
67 |
| -.ugb-style-guide-popover__title { |
| 168 | +.ugb-style-guide-popover__heading { |
68 | 169 | margin: 70px 70px 0;
|
| 170 | + .ugb-style-guide-popover__title { |
| 171 | + margin-inline-end: 150px; |
| 172 | + font-size: 39.81px; |
| 173 | + } |
| 174 | + .ugb-style-guide-popover__description { |
| 175 | + max-width: 50%; |
| 176 | + } |
69 | 177 | }
|
70 | 178 |
|
71 | 179 | .ugb-style-guide__print-button {
|
|
83 | 191 | margin-top: 10px;
|
84 | 192 | }
|
85 | 193 |
|
86 |
| - .ugb-style-guide__print-button { |
87 |
| - margin: -1em 70px 0 0; |
88 |
| - } |
89 |
| - |
90 | 194 | > .components-popover__content {
|
91 | 195 | margin-top: 20px;
|
92 | 196 | margin-left: 20px;
|
|
0 commit comments