Skip to content

Commit 89c531e

Browse files
committed
feat: add styles for back and next buttons
1 parent 15890f5 commit 89c531e

5 files changed

Lines changed: 54 additions & 3 deletions

File tree

source/icons/back.svg

Lines changed: 1 addition & 0 deletions
Loading

source/icons/next.svg

Lines changed: 1 addition & 0 deletions
Loading

source/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,18 @@ <h2 class="top-projects__title section__title">Крупные проекты</h2
370370
<div class="top-projects__description-wrapper">
371371
<p class="top-projects__description">Поддерживаем и развиваем долгосрочное сотрудничество</p>
372372
<div class="top-projects__button-wrapper">
373-
<button class="top-projects__button top-projects__button--back" type="button">Назад</button>
374-
<button class="top-projects__button top-projects__button--next" type="button">Вперед</button>
373+
<button class="top-projects__button top-projects__button--back" type="button">
374+
<svg aria-hidden="true" focusable="false" width="11" height="20">
375+
<use href="icons/stack.svg#back"></use>
376+
</svg>
377+
<span class="visually-hidden">Назад.</span>
378+
</button>
379+
<button class="top-projects__button top-projects__button--next" type="button">
380+
<svg aria-hidden="true" focusable="false" width="11" height="20">
381+
<use href="icons/stack.svg#next"></use>
382+
</svg>
383+
<span class="visually-hidden">Вперёд.</span>
384+
</button>
375385
</div>
376386
</div>
377387
</div>

source/styles/blocks/top-projects.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,54 @@
5353
}
5454

5555
.top-projects__button-wrapper {
56+
display: flex;
57+
gap: 16px;
58+
5659
@media (max-width: $vp-1279) {
5760
display: none;
5861
}
5962
}
6063

6164
.top-projects__button {
65+
@include font-additional;
6266
@include transition;
6367

68+
display: flex;
69+
justify-content: center;
70+
align-items: center;
71+
padding: 24px;
72+
width: 69px;
73+
height: 69px;
74+
background: $color-reverse;
75+
border-radius: 20px;
76+
box-sizing: border-box;
6477
cursor: pointer;
78+
border: none;
79+
80+
@media (max-width: $vp-1439) {
81+
padding: 20px;
82+
83+
width: 60px;
84+
height: 60px;
85+
}
86+
87+
&:not(:disabled):hover {
88+
@include button-hover;
89+
}
90+
91+
&:not(:disabled):active {
92+
@include button-active;
93+
}
94+
95+
&:focus {
96+
@include button-focus;
97+
}
98+
99+
&:disabled {
100+
color: $color-basic-60;
101+
background-color: $color-secondary;
102+
cursor: default;
103+
}
65104

66105
@media (max-width: $vp-1279) {
67106
display: none;

source/styles/common/mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
color: $color-basic;
1212
background-color: $color-reverse;
1313
border-radius: 50px;
14-
box-shadow: 0 0 5px $color-basic-60;
14+
outline: 1px solid $color-basic-60;
1515
}
1616
}
1717

0 commit comments

Comments
 (0)