Skip to content

Commit

Permalink
Styles: Update styles for Splide arrows and project type badge
Browse files Browse the repository at this point in the history
- Now the Splide arrows will be place at the bottom of the slider.
- The project type badge will be placed at the bottom right
  of the project image.
  • Loading branch information
ITurres committed Feb 20, 2024
1 parent 28ddf30 commit 6fa3055
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/styles/pages/ProjectsPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

$color1: colors.$color1;
$color2-hover: colors.$color2-hover;
$dark: colors.$dark;

$transparent-grey: rgba(255, 255, 255, 0.073);

Expand Down Expand Up @@ -41,6 +42,13 @@ $font-family-regular: fonts.$font-family-regular;
padding: 5rem 0 !important;
}

.splide__arrows {
position: absolute;
bottom: 1rem;
left: 43%;
right: 43%;
}

.splide__arrow {
border: 2px solid $color1;
background-color: transparent;
Expand Down Expand Up @@ -75,6 +83,24 @@ $font-family-regular: fonts.$font-family-regular;
// ! END of Splide Styles overrides.

.splide__slide__container {
.splide__slide__img--wrapper {
position: relative;
}

.splide__slide__project-type {
position: absolute;
bottom: 0;
right: 0;
font-size: 0.6rem;
font-family: $font-family-regular;
text-transform: uppercase;
letter-spacing: 2px;
color: $color1;
background-color: rgba($dark, 70%);
padding: 0.2rem 0.3rem 0.1rem 0.5rem;
border-radius: 4px 0 2px 0;
}

.splide__slide__overlay {
padding: 0.5rem 0.6rem;
margin: 0.7rem 0;
Expand Down

0 comments on commit 6fa3055

Please sign in to comment.