/***** * Order of contents: * * Google fonts import * Universal styles * Navbar styles * Sidebar styles * Feed styles * Media queries *****/ /* Google Fonts imports: */ @import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans&family=Indie+Flower&family=Open+Sans&display=swap'); /* Universal page styling */ .App { display: flex; flex-direction: column; background-color: #6b4477; align-items: center; margin: 0; padding: 0; overflow-y: hidden; } .loading-message { color:white; font-family: 'Indie Flower', sans-serif; font-size: 2.5rem; height: 100vh; } .nav-title-mobile { display: none; } /* Navbar */ .navbar { display: inline-flex; position: fixed; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; height: 5rem; background-color: rgb(0, 0, 0); border-bottom: 1px solid black; z-index: 9; } .nav-title-desktop { display: inline-flex; color: rgb(190, 113, 188); padding-left: 1.5rem; font-family: 'Open Sans', sans-serif; } .nav-searchbar { display: inline-flex; position: relative; color: darkorchid; padding-left: 0.7rem; border-radius: 8px; right: 5rem; height: 40%; width: 35rem; } .nav-searchbar::placeholder { color: darkorchid; } /* Sidebar */ .sidebar-button { border: transparent; background-color: rgb(190, 113, 188); box-shadow: 1px 1px rgb(111, 30, 151); text-align: center; height: 3.5rem; border-radius: 15px; margin-right: 1rem; width: 6rem; } .sidebar-button:hover { background-color: rgb(218, 171, 216); } .sidebar-button:active { background-color: darkorchid; transition: background-color 35ms linear; } .sidebar { display: flex; flex-direction: column; width: 13.5rem; position: fixed; background-color: black; color: white; right: 0; top: 5rem; padding: 1.5rem; transition: right 0.6s ease-out; z-index: 9; } .sidebar-hidden { display: flex; flex-direction: column; width: 12rem; position: fixed; background-color: black; color: white; right: -15rem; top: 5rem; padding: 1.5rem; transition: right 0.6s ease-out; z-index: 9; } /* Feed */ .feed { display: inline-flex; position: relative; flex-direction: column; position: relative; align-items: center; top: 5rem; width: 90vw; top: 5rem; } /* Page handling */ .page-handling { display: inline-flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem; background-color: rgb(190, 113, 188); border-radius: 15px; width: 50%; height: 3rem; } .page-handling button { background-color: rgb(0, 0, 0); color: rgb(190, 113, 188); border: transparent; border-radius: 50%; font-size: 2rem; height: 3.5rem; width: 3.5rem; box-shadow:2rem rgb(111, 30, 151); } .page-handling button:hover { background-color: rgb(202, 186, 201); } .page-handling button:active { background-color: rgb(247, 233, 246); } #top-page-handling { margin-bottom: -1rem; margin-top: 2rem; } #bottom-page-handling { margin-bottom: 10rem; } /* Media queries (tablet) */ @media only screen and (max-width: 1050px) { /* Navbar */ .navbar { height: 4rem; } .nav-title { font-size: 1rem; } .nav-searchbar { width: 25rem; right: 2rem; } /* Sidebar */ .sidebar-button { height: 2.6rem; width: 5rem; } .sidebar { top: 4rem; } .sidebar-hidden { top: 4rem; } /* Feed */ .content-container { top: 4rem; } .page-handling { height: 3rem; padding: 0.5rem; } .page-handling button { height: 2rem; width: 2rem; font-size: 1.4rem; margin: 0 0.4rem; } } @media only screen and (max-width: 800px) { .navbar { position: static; } .nav-title-desktop { display: none; } .nav-title-mobile { display: inline-flex; color: orchid; padding-left: 1.5rem; font-family: 'Open Sans', sans-serif; } .nav-searchbar { width: 12rem; right: 7rem; } .sidebar-button { position: fixed; right: 0; top: 0.6rem; width: 4.5rem; } .content-container { top: 0; } .feed { width: 95vw; } .page-handling { width: 15rem; height: 2rem; } .page-handling button { height: 1.5rem; width: 1.5rem; font-size: 1rem; } }