Skip to content

Commit

Permalink
tours-link
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayronhayd committed Aug 11, 2024
1 parent cfb02d8 commit 701efde
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/img/sprite/tour-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions source/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ <h3 class="tours__card-title">Восхождение

</ul>
</div>

<div class="tours__link-wrap">
<a class="tours__link" href="#">Показать все туры</a>
</div>
</section>

<section class="training" data-test="training">
Expand Down
82 changes: 82 additions & 0 deletions source/sass/blocks/tours.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

@media (min-width: $desktop-width) {
width: 1200px;
padding-bottom: 53px;
}
}

Expand Down Expand Up @@ -264,3 +265,84 @@
line-height: 13px;
margin-top: 7px;
}

.tours__link-wrap {
display: flex;
justify-content: center;
}

.tours__link {
font-family: $font-700;
font-size: 14px;
font-weight: 700;
line-height: 14px;
letter-spacing: 0.56px;
text-transform: uppercase;
color: $color-basic;
padding: 10px;
padding-right: 29px;
position: relative;

@media (min-width: $tablet-width) {
padding: 11px 29px 10px 10px;
}

&::after {
content: "";
position: absolute;
top: calc(50% - 7px);
right: 6px;
mask-image: url("/__spritemap#sprite-tour-arrow-view");
mask-repeat: no-repeat;
background-color: $color-basic;
width: 14px;
height: 14px;
display: block;

@media (min-width: $tablet-width) {
top: calc(50% - 8px);
width: 15px;
height: 14px;
}
}

@media (min-width: $tablet-width) {
font-size: 16px;
line-height: 16px;
letter-spacing: 0.64px;
}

&:hover {
color: rgba(2, 102, 193, 0.1);

&::after {
background-color: rgba(2, 102, 193, 0.1);
}
}

&:focus {
color: $button;
outline: none;

&::after {
background-color: $button;
}
}

&:active {
color: $button-extra;

&::after {
background-color: $button-extra;
}
}
}

.tours__link--disabled {
color: $color-disabled;
pointer-events: none;

&::after {
background-color: $color-disabled;
}
}

0 comments on commit 701efde

Please sign in to comment.