Skip to content

Commit 5141364

Browse files
committed
feat: adds mobile styling to years in roadmap section
1 parent e18a780 commit 5141364

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

assets/scss/theme/utilities.scss

+6
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ $siam: #565D50; // siam
9797
border-radius: toRem(2);
9898
}
9999

100+
@mixin focusOutlineSmall {
101+
outline: 3px solid rgba(255, 197, 130, 0.7);
102+
outline-offset: 4px;
103+
border-radius: toRem(2);
104+
}
105+
100106
@mixin focusBoxShadowLink {
101107
box-shadow: 0 0 0 5px rgba(255, 197, 130, 0.5);
102108
border-radius: 0.125rem;

components/roadmap.vue

+22-7
Original file line numberDiff line numberDiff line change
@@ -108,58 +108,73 @@ const cta = computed(() => {
108108
.heading-wrapper {
109109
display: flex;
110110
flex-direction: column;
111-
// align-items: center;
112111
margin-top: toRem(25);
112+
@include mini {
113+
position: relative;
114+
z-index: 5;
115+
flex-direction: row;
116+
justify-content: space-between;
117+
align-items: center;
118+
margin-bottom: 0.5rem;
119+
}
113120
.year {
114121
@include h5;
115122
letter-spacing: 0.48px;
116-
margin-top: toRem(6);
123+
margin-top: toRem(15);
117124
margin-left: toRem(37);
118125
@include mini {
119-
margin-left: toRem(25);
126+
margin: 0;
120127
}
121128
}
122129
}
123130
124131
.heading-button {
125132
cursor: pointer;
133+
width: fit-content;
126134
@include transitionDefault;
127135
@include mini {
128136
margin-top: 0;
129-
margin-bottom: 0.5rem;
130137
}
131138
&:hover,
132139
&:focus-visible {
133-
transform: scale(1.15) translateX(toRem(18));
140+
transform: scale(1.15) translate(toRem(5), toRem(-1));
134141
.icon {
135142
:deep(path) {
136143
fill: $chardonnay;
137144
}
138145
}
139146
}
140147
&:focus-visible {
141-
@include focusOutline;
148+
@include focusOutlineSmall;
149+
transform: scale(1.15) translate(toRem(5), toRem(-7));
142150
}
143151
.heading {
144152
display: flex;
145153
}
146154
.icon {
147155
width: toRem(23);
148156
height: toRem(23);
149-
margin-top: toRem(3);
150157
margin-right: toRem(14);
151158
transition: 300ms cubic-bezier(0.33, 0.2, 0.41, 0.99);
152159
@include mini {
153160
width: toRem(18);
154161
height: toRem(18);
155162
margin-right: toRem(7);
163+
transform: translateY(toRem(-1.5));
156164
}
157165
:deep(path) {
158166
transition: inherit;
159167
}
160168
}
161169
.h2 {
170+
line-height: 1;
162171
@include transitionDefault;
172+
@include medium {
173+
line-height: 1.4;
174+
}
175+
@include tiny {
176+
line-height: 1;
177+
}
163178
}
164179
}
165180

0 commit comments

Comments
 (0)