Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CSS Document */
- /* Mobile first approach, meaning all styling without a media query aims at the mobile view */
- html {
- scroll-behavior: smooth;
- }
- body {
- font: 15px/1.5 Arial, Helvetica, sans-serif;
- background: #f4f4f4;
- margin: 0;
- padding: 0;
- }
- header {
- position: relative;
- border-bottom: 1px solid #EAEAEB;
- margin: 1%;
- }
- footer {
- text-align: center;
- border-top: 1px solid #EAEAEB;
- background: gray;
- }
- footer svg {
- color: black;
- margin-top: 1%;
- }
- .container {
- width: 100%;
- margin: auto;
- }
- .hamburger {
- font-size: 30px;
- cursor: pointer;
- position: relative;
- left: 80%;
- }
- .logo {
- float: left;
- font-family: 'Rock Salt', cursive;
- font-size: 1.5rem;
- color: lightgray;
- }
- .logo a {
- text-decoration: none;
- color: black;
- }
- .logo span {
- font-weight: bolder;
- }
- .me {
- display: block;
- min-width: 100%;
- height: 300px;
- object-fit: cover;
- }
- .overlay {
- height: 0%;
- width: 100%;
- position: fixed;
- z-index: 1;
- top: 0;
- left: 0;
- background-color: rgb(0, 0, 0);
- background-color: rgba(0, 0, 0, 0.9);
- overflow-y: hidden;
- transition: 0.5s;
- }
- .overlay-content {
- position: relative;
- top: 25%;
- width: 100%;
- text-align: center;
- margin-top: 30px;
- }
- .overlay a {
- padding: 8px;
- text-decoration: none;
- font-size: 36px;
- color: #818181;
- display: block;
- transition: 0.3s;
- }
- .overlay a:hover,
- .overlay a:focus {
- color: #f1f1f1;
- }
- .overlay .closebtn {
- position: absolute;
- top: 20px;
- right: 45px;
- font-size: 60px;
- }
- /* When the screen exceeds 800px the desktop version styling is applied */
- @media only screen and (min-width:800px) {
- .grid {
- display: grid;
- grid-template-columns: repeat(6, 1fr);
- grid-template-rows: 1fr 2fr 10%;
- column-gap: 4px;
- grid-row-gap: 4px;
- margin: 0;
- height: 100%;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement