This is a solution to the Fylo data storage component challenge on Frontend Mentor.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- SASS
- Animation
In this challenge, I have learned how to style the range form input type, which was a style that I have first seen during my short web develop journey. The respective code can be seen below:
To see how you can add code snippets, see below:
input[type=range]{
display: block;
-webkit-appearance: none;
width: 80%;
height:20px;
margin: 20px auto;
border-radius: 10px;
background-color:$very-dark-blue;
//Here, the slider track is styled
&::-webkit-slider-thumb {
-webkit-appearance: none;
height: 20px;
width: 20px;
cursor: pointer;
background-color: white;
border-radius: 10px;
position: relative;
z-index: 2;
//Here, the thumb is styled
}
}
This challenge was pretty easy to complete, however, I felt that if I knew JS, I would make the website much more interactive. Therefore, I am more and more stimulated to start studying JS, which will happen when my exam period finishes at my university.