Created
April 25, 2021 10:00
-
-
Save walidum/8ac1dc0eb11e37c8fdd32d7a397b4c7b to your computer and use it in GitHub Desktop.
Slider style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0; | |
} | |
.main { | |
width: 100%; | |
height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
} | |
.slider { | |
width: 80%; | |
height: 60%; | |
border-radius: 1rem; | |
} | |
.slider img { | |
width: 100%; | |
height: 100%; | |
border-radius: 1rem; | |
} | |
.actions { | |
width: 100%; | |
height: 3rem; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
margin-top: 1rem; | |
} | |
.next, .previous { | |
width: 10rem; | |
height: inherit; | |
border-radius: .5rem; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
background-color: #161658; | |
margin-right: 1rem; | |
cursor: pointer; | |
} | |
.next span, .previous span { | |
color: #ffffff; | |
font-weight: bold; | |
font-size: 1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment