Skip to content

Commit cf3229c

Browse files
committed
Separate menu styling
1 parent 4cdc47a commit cf3229c

File tree

3 files changed

+93
-73
lines changed

3 files changed

+93
-73
lines changed

pages/tenfoot.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ block title
55
.subtitle Select a service to continue
66

77
block content
8+
link(rel="stylesheet" href="/styles/menu10foot.scss")
89
section.menu10foot
910
.menu10foot-card(tabindex="0" role="button" data-service="stregsystem")
1011
.menu10foot-icon 💵

styles/menu10foot.scss

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// ten-foot.scss
2+
// Variables
3+
$primary-gradient-start: #1a1a2e;
4+
$primary-gradient-end: #16213e;
5+
$text-color: #ffffff;
6+
$card-bg: rgba(255, 255, 255, 0.1);
7+
$card-bg-hover: rgba(255, 255, 255, 0.15);
8+
$card-border: rgba(255, 255, 255, 0.2);
9+
$card-border-hover: rgba(255, 255, 255, 0.4);
10+
$focus-color: #00d4ff;
11+
12+
// Mixins
13+
@mixin card-shadow {
14+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
15+
}
16+
17+
@mixin text-shadow {
18+
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
19+
}
20+
21+
@mixin smooth-transition($properties: all, $duration: 0.3s) {
22+
transition: $properties $duration ease;
23+
}
24+
25+
// Service Grid
26+
.menu10foot {
27+
flex: 1;
28+
display: flex;
29+
align-items: center;
30+
gap: 3rem;
31+
32+
overflow-x: auto;
33+
overflow-y: hidden;
34+
35+
scroll-behavior: smooth;
36+
scroll-snap-type: x mandatory;
37+
padding-inline: 3rem;
38+
39+
/* IE / Edge Legacy */
40+
-ms-overflow-style: none;
41+
}
42+
43+
.menu10foot::-webkit-scrollbar {
44+
display: none; /* Chrome, Safari, Edge */
45+
}
46+
47+
.menu10foot-card {
48+
flex: 0 0 auto; // prevents shrinking
49+
margin: 0;
50+
51+
display: flex;
52+
flex-direction: column;
53+
align-items: center;
54+
gap: 2em;
55+
56+
text-align: center;
57+
background: $card-bg;
58+
backdrop-filter: blur(10px);
59+
border-radius: 2rem;
60+
padding: 3em;
61+
@include smooth-transition;
62+
border: 2px solid $card-border;
63+
cursor: pointer;
64+
font-size: clamp(0.1rem, 1vw, 6rem);
65+
height: 25em;
66+
width: 25em;
67+
scroll-margin-inline: 30rem;
68+
69+
&:hover,
70+
&:focus {
71+
transform: scale(1.05);
72+
background: $card-bg-hover;
73+
border-color: $card-border-hover;
74+
@include card-shadow;
75+
}
76+
77+
.menu10foot-icon {
78+
font-size: 6em;
79+
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
80+
}
81+
82+
.menu10foot-title {
83+
font-size: 3em;
84+
font-weight: 600;
85+
}
86+
87+
.menu10foot-description {
88+
font-size: 1.8em;
89+
opacity: 0.9;
90+
line-height: 1.6;
91+
}
92+
}

styles/tenfoot.scss

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
$primary-gradient-start: #1a1a2e;
44
$primary-gradient-end: #16213e;
55
$text-color: #ffffff;
6-
$card-bg: rgba(255, 255, 255, 0.1);
7-
$card-bg-hover: rgba(255, 255, 255, 0.15);
8-
$card-border: rgba(255, 255, 255, 0.2);
9-
$card-border-hover: rgba(255, 255, 255, 0.4);
106
$focus-color: #00d4ff;
117

128
// Mixins
@@ -111,75 +107,6 @@ header {
111107
}
112108
}
113109

114-
// Service Grid
115-
.menu10foot {
116-
flex: 1;
117-
display: flex;
118-
align-items: center;
119-
gap: 3rem;
120-
121-
overflow-x: auto;
122-
overflow-y: hidden;
123-
124-
scroll-behavior: smooth;
125-
scroll-snap-type: x mandatory;
126-
padding-inline: 3rem;
127-
128-
/* IE / Edge Legacy */
129-
-ms-overflow-style: none;
130-
}
131-
132-
.menu10foot::-webkit-scrollbar {
133-
display: none; /* Chrome, Safari, Edge */
134-
}
135-
136-
.menu10foot-card {
137-
flex: 0 0 auto; // prevents shrinking
138-
margin: 0;
139-
140-
display: flex;
141-
flex-direction: column;
142-
align-items: center;
143-
gap: 2em;
144-
145-
text-align: center;
146-
background: $card-bg;
147-
backdrop-filter: blur(10px);
148-
border-radius: 2rem;
149-
padding: 3em;
150-
@include smooth-transition;
151-
border: 2px solid $card-border;
152-
cursor: pointer;
153-
font-size: clamp(0.1rem, 1vw, 6rem);
154-
height: 25em;
155-
width: 25em;
156-
scroll-margin-inline: 30rem;
157-
158-
&:hover,
159-
&:focus {
160-
transform: scale(1.05);
161-
background: $card-bg-hover;
162-
border-color: $card-border-hover;
163-
@include card-shadow;
164-
}
165-
166-
.menu10foot-icon {
167-
font-size: 6em;
168-
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
169-
}
170-
171-
.menu10foot-title {
172-
font-size: 3em;
173-
font-weight: 600;
174-
}
175-
176-
.menu10foot-description {
177-
font-size: 1.8em;
178-
opacity: 0.9;
179-
line-height: 1.6;
180-
}
181-
}
182-
183110
// Footer
184111
footer {
185112
padding: 2rem;

0 commit comments

Comments
 (0)