Skip to content

Commit 5819574

Browse files
fix(core): make banner look good (#4156)
1 parent 54e14ea commit 5819574

File tree

2 files changed

+40
-43
lines changed

2 files changed

+40
-43
lines changed

src/assets/styles/app.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ body {
2626
color: var(--ks-content-primary);
2727

2828
&.has-annonces {
29-
--announce-height: 46px;
30-
padding-top: 46px;
29+
--announce-height: 40px;
30+
padding-top: 40px;
3131

3232
#top-bar {
33-
top: 46px;
33+
top: 40px;
3434
}
3535
}
3636
}

src/components/layout/Announce.vue

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
<a
2323
class="d-inline-block text-nowrap"
2424
:href="slide.href"
25-
>{{ slide.linkText }}</a
2625
>
26+
<ArrowRight />
27+
</a>
2728
</p>
2829
</Slide>
2930
</Carousel>
@@ -34,11 +35,13 @@
3435

3536
<script>
3637
import { Carousel, Slide } from "vue3-carousel"
38+
import ArrowRight from "vue-material-design-icons/ArrowRight.vue"
3739
3840
export default {
3941
components: {
4042
Carousel,
4143
Slide,
44+
ArrowRight,
4245
},
4346
props: {
4447
content: {
@@ -96,44 +99,46 @@
9699
border-radius: 0;
97100
border: 0;
98101
text-align: center;
99-
background: transparent;
102+
background: #631BFF;
100103
color: $white;
101-
border-bottom: 1px solid #e5e4f721;
102104
margin-bottom: 0;
103105
position: relative;
104106
z-index: 1;
105107
overflow: hidden;
106-
transition:
107-
max-height 0.5s linear,
108-
color 0.5s linear;
109-
height: 3rem;
110-
padding-top: 0.85rem;
111-
&.scrolled {
112-
background: rgba(17, 17, 19, 0.65);
113-
transition: background-color 250ms ease-in-out;
114-
}
108+
height: 2.5rem;
109+
padding-top: 10px;
110+
padding-bottom: 10px;
111+
115112
@include media-breakpoint-down(sm) {
116113
padding-inline: calc($spacer / 2);
117114
}
118-
&::after {
119-
content: "";
120-
position: absolute;
121-
height: 16rem;
122-
width: 100%;
123-
z-index: -1;
124-
top: 0;
125-
left: 0;
126-
background: linear-gradient(
127-
180deg,
128-
var(--ks-background-body),
129-
#6117ff
130-
);
131-
}
132115
a {
133-
text-decoration: underline;
134-
color: var(--ks-content-color-highlight);
135-
font-weight: 400 !important;
136-
margin-left: $spacer;
116+
text-decoration: none;
117+
color: $white;
118+
font-weight: 700;
119+
margin-left: calc($spacer / 2);
120+
display: flex;
121+
align-items: center;
122+
123+
:deep(.material-design-icon) {
124+
bottom: 0;
125+
transition: transform 0.2s ease-in-out;
126+
}
127+
128+
&:hover {
129+
:deep(svg) {
130+
transform: scaleX(1.15);
131+
transform-origin: left;
132+
color: var(--ks-content-link);
133+
}
134+
}
135+
}
136+
137+
&:hover {
138+
a :deep(.material-design-icon) {
139+
transform: scaleX(1.15);
140+
transform-origin: left;
141+
}
137142
}
138143
p {
139144
margin-bottom: 0;
@@ -144,20 +149,12 @@
144149
padding-inline: $spacer;
145150
146151
.text-truncate {
147-
color: var(--ks-content-primary);
152+
color: $white;
148153
min-width: 0;
149154
flex-shrink: 1;
155+
font-weight: 600;
150156
}
151157
}
152-
button {
153-
position: absolute;
154-
right: 3px;
155-
top: 3px;
156-
background: none;
157-
border: 0;
158-
font-size: 24px;
159-
color: $white;
160-
}
161158
}
162159
}
163160

0 commit comments

Comments
 (0)