unigrid.css 0.3.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.
- package/README.md +101 -0
- package/dist/dropdown.js +36 -0
- package/dist/index.js +5 -0
- package/dist/scrollspy.js +57 -0
- package/dist/tabs.js +30 -0
- package/dist/unigrid.css +4501 -0
- package/dist/unigrid.js +124 -0
- package/dist/unigrid.min.css +1 -0
- package/dist/unigrid.min.js +1 -0
- package/package.json +41 -0
- package/src/js/dropdown.js +49 -0
- package/src/js/index.js +19 -0
- package/src/js/scrollspy.js +87 -0
- package/src/js/tabs.js +58 -0
- package/src/scss/_accordion.scss +123 -0
- package/src/scss/_broadside.scss +125 -0
- package/src/scss/_buttons.scss +241 -0
- package/src/scss/_card.scss +168 -0
- package/src/scss/_components.scss +140 -0
- package/src/scss/_container.scss +54 -0
- package/src/scss/_dropdown.scss +178 -0
- package/src/scss/_footer.scss +147 -0
- package/src/scss/_formats.scss +64 -0
- package/src/scss/_forms.scss +192 -0
- package/src/scss/_grid.scss +114 -0
- package/src/scss/_header.scss +169 -0
- package/src/scss/_hero.scss +262 -0
- package/src/scss/_mixins.scss +120 -0
- package/src/scss/_modules.scss +238 -0
- package/src/scss/_navbar.scss +341 -0
- package/src/scss/_pagination.scss +160 -0
- package/src/scss/_prose.scss +393 -0
- package/src/scss/_reset.scss +82 -0
- package/src/scss/_scrollspy.scss +62 -0
- package/src/scss/_section.scss +91 -0
- package/src/scss/_sidebar.scss +147 -0
- package/src/scss/_table.scss +122 -0
- package/src/scss/_tabs.scss +178 -0
- package/src/scss/_typography.scss +105 -0
- package/src/scss/_utilities.scss +79 -0
- package/src/scss/_variables.scss +183 -0
- package/src/scss/unigrid.scss +49 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Unigrid CSS Framework — Components (BEM)
|
|
3
|
+
//
|
|
4
|
+
// Reusable components: infobox, map, image, divider, block.
|
|
5
|
+
// Vertical spacing aligned to leading ($ug-leading-rem) for rhythm.
|
|
6
|
+
// ==========================================================================
|
|
7
|
+
|
|
8
|
+
// ---- Block ----
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@use "variables" as *;
|
|
12
|
+
@use "mixins" as *;
|
|
13
|
+
|
|
14
|
+
.ug-block {
|
|
15
|
+
@include ug-rhythm-padding(1, 1);
|
|
16
|
+
|
|
17
|
+
&--flush {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& + & {
|
|
22
|
+
@include ug-rhythm-margin-top(1);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// ---- Map ----
|
|
27
|
+
|
|
28
|
+
.ug-map {
|
|
29
|
+
width: 100%;
|
|
30
|
+
min-height: calc(var(--ug-leading) * 12 - 2px);
|
|
31
|
+
background-color: $ug-warm-gray;
|
|
32
|
+
border: 1px solid $ug-light-gray;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
img {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
object-fit: cover;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--full {
|
|
43
|
+
grid-column: 1 / -1;
|
|
44
|
+
min-height: 50vh;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// ---- Infobox ----
|
|
49
|
+
|
|
50
|
+
.ug-infobox {
|
|
51
|
+
background-color: $ug-warm-gray;
|
|
52
|
+
@include ug-rhythm-padding(1, 1);
|
|
53
|
+
border-left: 3px solid $ug-black;
|
|
54
|
+
|
|
55
|
+
&--dark {
|
|
56
|
+
background-color: $ug-black;
|
|
57
|
+
color: $ug-white;
|
|
58
|
+
border-left-color: $ug-white;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__title {
|
|
62
|
+
@include ug-font-size("sm");
|
|
63
|
+
@include ug-font-weight("bold");
|
|
64
|
+
@include ug-rhythm-line-height(1);
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
letter-spacing: 0.08em;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ---- Image ----
|
|
72
|
+
|
|
73
|
+
.ug-image {
|
|
74
|
+
width: 100%;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
|
|
77
|
+
img {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&--contain img {
|
|
84
|
+
object-fit: contain;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--din {
|
|
88
|
+
@include ug-ratio-din(false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--din-landscape {
|
|
92
|
+
@include ug-ratio-din(true);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ---- Divider ----
|
|
97
|
+
// Total: 1 leading = padding-top(0.5) + border + padding-bottom(0.5)
|
|
98
|
+
// The border sits in the vertical center of the 1 leading space.
|
|
99
|
+
|
|
100
|
+
.ug-divider {
|
|
101
|
+
border: none;
|
|
102
|
+
border-top: 1px solid $ug-light-gray;
|
|
103
|
+
padding-top: calc(var(--ug-leading) * 0.5 - 1px);
|
|
104
|
+
padding-bottom: calc(var(--ug-leading) * 0.5);
|
|
105
|
+
grid-column: 1 / -1;
|
|
106
|
+
|
|
107
|
+
&--bold {
|
|
108
|
+
border-top: 3px solid $ug-black;
|
|
109
|
+
padding-top: calc(var(--ug-leading) * 0.5 - 3px);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ---- Label Divider ----
|
|
114
|
+
// Uppercase label with bottom border as subsection separator.
|
|
115
|
+
// padding-bottom + border = exactly 1 leading, keeping content on-grid.
|
|
116
|
+
//
|
|
117
|
+
// Block: .ug-label-divider
|
|
118
|
+
// Modifiers: --bold, --light
|
|
119
|
+
|
|
120
|
+
.ug-label-divider {
|
|
121
|
+
@include ug-font-size("sm");
|
|
122
|
+
@include ug-font-weight("bold");
|
|
123
|
+
line-height: calc(var(--ug-leading) - 2px);
|
|
124
|
+
margin-bottom: calc(var(--ug-leading) * 0.5 - 2px);
|
|
125
|
+
text-transform: uppercase;
|
|
126
|
+
letter-spacing: 0.1em;
|
|
127
|
+
color: $ug-medium-gray;
|
|
128
|
+
border-bottom: 2px solid $ug-black;
|
|
129
|
+
@include ug-rhythm-margin-top(0.5);
|
|
130
|
+
|
|
131
|
+
&--bold {
|
|
132
|
+
line-height: calc(var(--ug-leading) - 3px);
|
|
133
|
+
border-bottom-width: 3px;
|
|
134
|
+
margin-bottom: calc(var(--ug-leading) * 0.5 - 3px);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&--light {
|
|
138
|
+
border-bottom-color: $ug-light-gray;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Unigrid CSS Framework — Container (BEM)
|
|
3
|
+
//
|
|
4
|
+
// Padding aligned to leading for vertical rhythm consistency.
|
|
5
|
+
//
|
|
6
|
+
// Block: .ug-container
|
|
7
|
+
// Modifiers: --narrow, --wide, --fluid, --flush
|
|
8
|
+
// ==========================================================================
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@use "variables" as *;
|
|
12
|
+
@use "mixins" as *;
|
|
13
|
+
|
|
14
|
+
.ug-container {
|
|
15
|
+
width: 100%;
|
|
16
|
+
padding-left: calc(var(--ug-leading) * 1.5);
|
|
17
|
+
padding-right: calc(var(--ug-leading) * 1.5);
|
|
18
|
+
|
|
19
|
+
// -- Centered, max-width container --
|
|
20
|
+
&--narrow {
|
|
21
|
+
max-width: $ug-container-max-width;
|
|
22
|
+
margin-left: auto;
|
|
23
|
+
margin-right: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// -- Wider max-width --
|
|
27
|
+
&--wide {
|
|
28
|
+
max-width: 1600px;
|
|
29
|
+
margin-left: auto;
|
|
30
|
+
margin-right: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// -- No max-width, no padding (true full-bleed) --
|
|
34
|
+
&--fluid {
|
|
35
|
+
max-width: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// -- No padding (for edge-to-edge content) --
|
|
39
|
+
&--flush {
|
|
40
|
+
padding-left: 0;
|
|
41
|
+
padding-right: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// -- Responsive padding --
|
|
45
|
+
@include ug-breakpoint-down("md") {
|
|
46
|
+
padding-left: var(--ug-leading);
|
|
47
|
+
padding-right: var(--ug-leading);
|
|
48
|
+
|
|
49
|
+
&--flush {
|
|
50
|
+
padding-left: 0;
|
|
51
|
+
padding-right: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Unigrid CSS Framework — Dropdown (BEM)
|
|
3
|
+
//
|
|
4
|
+
// Dropdown toggled via .ug-dropdown--open class (set by minimal JS).
|
|
5
|
+
// Caret rotates when open. Works for buttons and navbar items.
|
|
6
|
+
//
|
|
7
|
+
// Block: .ug-dropdown
|
|
8
|
+
// Elements: __trigger, __caret, __menu, __item, __link, __divider, __header
|
|
9
|
+
// Modifiers: --open, --right, --up
|
|
10
|
+
//
|
|
11
|
+
// Usage:
|
|
12
|
+
// <div class="ug-dropdown">
|
|
13
|
+
// <button class="ug-btn ug-dropdown__trigger">
|
|
14
|
+
// Actions <span class="ug-dropdown__caret"></span>
|
|
15
|
+
// </button>
|
|
16
|
+
// <ul class="ug-dropdown__menu">
|
|
17
|
+
// <li class="ug-dropdown__item"><a class="ug-dropdown__link" href="#">Edit</a></li>
|
|
18
|
+
// </ul>
|
|
19
|
+
// </div>
|
|
20
|
+
// ==========================================================================
|
|
21
|
+
|
|
22
|
+
@use "variables" as *;
|
|
23
|
+
@use "mixins" as *;
|
|
24
|
+
|
|
25
|
+
.ug-dropdown {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
|
|
29
|
+
// ---- Trigger (button or link) ----
|
|
30
|
+
&__trigger {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: calc(var(--ug-leading) * 0.25);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
user-select: none;
|
|
36
|
+
|
|
37
|
+
// Reset button defaults only when NOT a .ug-btn
|
|
38
|
+
&:is(button):not(.ug-btn) {
|
|
39
|
+
background: none;
|
|
40
|
+
border: none;
|
|
41
|
+
padding: 0;
|
|
42
|
+
font: inherit;
|
|
43
|
+
@include ug-font-weight("light");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ---- Caret ----
|
|
48
|
+
&__caret {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
width: 0.5em;
|
|
51
|
+
height: 0.5em;
|
|
52
|
+
border-right: 2px solid currentColor;
|
|
53
|
+
border-bottom: 2px solid currentColor;
|
|
54
|
+
transform: rotate(45deg);
|
|
55
|
+
transition: transform 0.2s;
|
|
56
|
+
margin-top: -0.15em;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// ---- Dropdown Menu ----
|
|
61
|
+
&__menu {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 100%;
|
|
64
|
+
left: 0;
|
|
65
|
+
z-index: 100;
|
|
66
|
+
display: none;
|
|
67
|
+
min-width: 12rem;
|
|
68
|
+
padding: calc(var(--ug-leading) * 0.25) 0;
|
|
69
|
+
background-color: $ug-white;
|
|
70
|
+
border: 1px solid $ug-light-gray;
|
|
71
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
72
|
+
list-style: none;
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// ---- Open State ----
|
|
77
|
+
&--open > &__menu {
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&--open > &__trigger &__caret {
|
|
82
|
+
transform: rotate(-135deg);
|
|
83
|
+
margin-top: 0.15em;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ---- Menu Item ----
|
|
87
|
+
&__item {
|
|
88
|
+
display: block;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ---- Menu Link ----
|
|
92
|
+
&__link {
|
|
93
|
+
display: block;
|
|
94
|
+
padding: calc(var(--ug-leading) * 0.25) calc(var(--ug-leading) * 0.5);
|
|
95
|
+
@include ug-font-size("sm");
|
|
96
|
+
@include ug-rhythm-line-height(1);
|
|
97
|
+
color: $ug-dark-gray;
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
transition: background-color 0.1s, color 0.1s;
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: $ug-warm-gray;
|
|
104
|
+
color: $ug-black;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&--active {
|
|
108
|
+
@include ug-font-weight("bold");
|
|
109
|
+
color: $ug-black;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ---- Menu Divider ----
|
|
114
|
+
&__divider {
|
|
115
|
+
height: 1px;
|
|
116
|
+
background-color: $ug-light-gray;
|
|
117
|
+
margin: calc(var(--ug-leading) * 0.25) 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// ---- Menu Header ----
|
|
121
|
+
&__header {
|
|
122
|
+
display: block;
|
|
123
|
+
padding: calc(var(--ug-leading) * 0.25) calc(var(--ug-leading) * 0.5);
|
|
124
|
+
@include ug-font-size("xs");
|
|
125
|
+
@include ug-font-weight("bold");
|
|
126
|
+
text-transform: uppercase;
|
|
127
|
+
letter-spacing: 0.08em;
|
|
128
|
+
color: $ug-medium-gray;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// ==============================
|
|
132
|
+
// Modifiers
|
|
133
|
+
// ==============================
|
|
134
|
+
|
|
135
|
+
// Active state (current page is in this dropdown)
|
|
136
|
+
&--active {
|
|
137
|
+
> .ug-navbar__link {
|
|
138
|
+
color: $ug-white !important;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&--active > &__trigger {
|
|
143
|
+
color: $ug-black;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// ---- Navbar context ----
|
|
147
|
+
// When .ug-dropdown is inside .ug-navbar, the trigger inherits navbar link styles.
|
|
148
|
+
.ug-navbar & {
|
|
149
|
+
align-items: stretch;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ug-navbar &__trigger:is(button) {
|
|
153
|
+
padding: 0 calc(var(--ug-leading) * 0.5);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Right-aligned menu
|
|
157
|
+
&--right > &__menu {
|
|
158
|
+
left: auto;
|
|
159
|
+
right: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Upward menu
|
|
163
|
+
&--up > &__menu {
|
|
164
|
+
top: auto;
|
|
165
|
+
bottom: 100%;
|
|
166
|
+
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&--up > &__trigger &__caret {
|
|
170
|
+
transform: rotate(-135deg);
|
|
171
|
+
margin-top: 0.15em;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&--up#{&}--open > &__trigger &__caret {
|
|
175
|
+
transform: rotate(45deg);
|
|
176
|
+
margin-top: -0.15em;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Unigrid CSS Framework — Footer (BEM)
|
|
3
|
+
//
|
|
4
|
+
// Sticky footer that always sits at the bottom of the viewport.
|
|
5
|
+
// All spacing aligned to var(--ug-leading).
|
|
6
|
+
//
|
|
7
|
+
// Block: .ug-footer
|
|
8
|
+
// Elements: __inner, __brand, __text, __nav, __link, __divider
|
|
9
|
+
// Modifiers: --compact, --dark (default), --light
|
|
10
|
+
// ==========================================================================
|
|
11
|
+
|
|
12
|
+
@use "variables" as *;
|
|
13
|
+
@use "mixins" as *;
|
|
14
|
+
|
|
15
|
+
// Ensure footer stays at bottom
|
|
16
|
+
html, body {
|
|
17
|
+
min-height: 100vh;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
|
|
24
|
+
> *:not(.ug-footer) {
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> .ug-footer {
|
|
29
|
+
margin-top: auto;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ug-footer {
|
|
34
|
+
width: 100%;
|
|
35
|
+
background-color: $ug-black;
|
|
36
|
+
color: $ug-white;
|
|
37
|
+
padding: calc(var(--ug-leading) * 3) calc(var(--ug-leading) * 1.5);
|
|
38
|
+
|
|
39
|
+
// ---- Inner container ----
|
|
40
|
+
&__inner {
|
|
41
|
+
max-width: $ug-container-max-width;
|
|
42
|
+
margin: 0 auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// ---- Brand ----
|
|
46
|
+
&__brand {
|
|
47
|
+
@include ug-font-size("lg");
|
|
48
|
+
@include ug-font-weight("bold");
|
|
49
|
+
@include ug-rhythm-line-height(1);
|
|
50
|
+
@include ug-rhythm-margin-bottom(1);
|
|
51
|
+
color: $ug-white;
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ---- Text ----
|
|
57
|
+
&__text {
|
|
58
|
+
@include ug-font-size("sm");
|
|
59
|
+
@include ug-rhythm-line-height(1);
|
|
60
|
+
color: rgba(255, 255, 255, 0.5);
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ---- Navigation ----
|
|
65
|
+
&__nav {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
gap: var(--ug-leading);
|
|
69
|
+
list-style: none;
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__link {
|
|
75
|
+
@include ug-font-size("sm");
|
|
76
|
+
@include ug-rhythm-line-height(1);
|
|
77
|
+
color: rgba(255, 255, 255, 0.7);
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
transition: color 0.15s;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
color: $ug-white;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ---- Divider ----
|
|
87
|
+
// 1 leading height: padding-top + 1px border = 1 leading
|
|
88
|
+
&__divider {
|
|
89
|
+
border: none;
|
|
90
|
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
91
|
+
padding-top: calc(var(--ug-leading) - 1px);
|
|
92
|
+
margin: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// ==============================
|
|
96
|
+
// Modifiers
|
|
97
|
+
// ==============================
|
|
98
|
+
|
|
99
|
+
// Compact: 1 leading padding, single line
|
|
100
|
+
// Total: padding(1) + content(1 line-height) + padding(1) = 3 leading
|
|
101
|
+
&--compact {
|
|
102
|
+
padding: var(--ug-leading) calc(var(--ug-leading) * 1.5);
|
|
103
|
+
|
|
104
|
+
.ug-footer__inner {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
flex-wrap: wrap;
|
|
109
|
+
gap: var(--ug-leading);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ug-footer__brand {
|
|
113
|
+
margin-bottom: 0;
|
|
114
|
+
@include ug-font-size("sm");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ug-footer__nav {
|
|
118
|
+
margin-bottom: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Light
|
|
123
|
+
&--light {
|
|
124
|
+
background-color: $ug-warm-gray;
|
|
125
|
+
color: $ug-black;
|
|
126
|
+
|
|
127
|
+
.ug-footer__brand { color: $ug-black; }
|
|
128
|
+
.ug-footer__text { color: $ug-medium-gray; }
|
|
129
|
+
.ug-footer__link {
|
|
130
|
+
color: $ug-dark-gray;
|
|
131
|
+
&:hover { color: $ug-black; }
|
|
132
|
+
}
|
|
133
|
+
.ug-footer__divider { border-top-color: $ug-light-gray; }
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// ==============================
|
|
137
|
+
// Responsive
|
|
138
|
+
// ==============================
|
|
139
|
+
|
|
140
|
+
@include ug-breakpoint-down("md") {
|
|
141
|
+
padding: calc(var(--ug-leading) * 2) var(--ug-leading);
|
|
142
|
+
|
|
143
|
+
&--compact {
|
|
144
|
+
padding: var(--ug-leading);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// ==========================================================================
|
|
2
|
+
// Unigrid CSS Framework — 10 Basic Formats (BEM)
|
|
3
|
+
//
|
|
4
|
+
// Real Unigrid specifications:
|
|
5
|
+
// - A-series: 1 panel wide × N panels long (A1, A2, A3, A4, A6)
|
|
6
|
+
// - B-series: 2 panels wide × N panels long (B1, B2, B3, B4, B6)
|
|
7
|
+
// - No A5 or B5 — intentionally skipped
|
|
8
|
+
// - Panel unit: 99 × 210 mm (folded size is always constant)
|
|
9
|
+
// - B6 = DIN/ISO A2 = root-two rectangle (420 × 594 mm)
|
|
10
|
+
//
|
|
11
|
+
// Block: .ug-format
|
|
12
|
+
// Modifiers: --a1, --a2, --a3, --a4, --a6, --b1, --b2, --b3, --b4, --b6
|
|
13
|
+
// ==========================================================================
|
|
14
|
+
|
|
15
|
+
@use "sass:map";
|
|
16
|
+
@use "variables" as *;
|
|
17
|
+
@use "mixins" as *;
|
|
18
|
+
|
|
19
|
+
// ---- Base Format Block ----
|
|
20
|
+
|
|
21
|
+
.ug-format {
|
|
22
|
+
width: 100%;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
margin-inline: auto;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// ---- Generate Format Modifiers ----
|
|
29
|
+
|
|
30
|
+
@each $name, $config in $ug-formats {
|
|
31
|
+
$panels-wide: map.get($config, panels-wide);
|
|
32
|
+
$panels-long: map.get($config, panels-long);
|
|
33
|
+
$cols: $panels-long;
|
|
34
|
+
|
|
35
|
+
.ug-format--#{$name} {
|
|
36
|
+
--ug-panels-wide: #{$panels-wide};
|
|
37
|
+
--ug-panels-long: #{$panels-long};
|
|
38
|
+
--ug-format-cols: #{$cols};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// ---- Format Grid Override ----
|
|
43
|
+
|
|
44
|
+
@each $name, $config in $ug-formats {
|
|
45
|
+
$panels-long: map.get($config, panels-long);
|
|
46
|
+
|
|
47
|
+
.ug-format--#{$name} > .ug-broadside,
|
|
48
|
+
.ug-format--#{$name} > .ug-grid {
|
|
49
|
+
grid-template-columns: repeat(#{$panels-long}, 1fr);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ---- DIN Aspect Ratio Helpers ----
|
|
54
|
+
|
|
55
|
+
.ug-ratio {
|
|
56
|
+
&--din {
|
|
57
|
+
aspect-ratio: 1 #{"/"} #{$ug-ratio};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&--din-landscape {
|
|
61
|
+
aspect-ratio: #{$ug-ratio} #{"/"} 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|