Skip to content

Commit

Permalink
Create style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleliang919 authored Nov 25, 2023
1 parent c20faee commit c950c58
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/* global */
@import url('https://fonts.googleapis.com/css?family=Roboto');

.grid-2{
display: grid;
grid-template-columns: repeat(2,1fr);
}

body{
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
/*background-color: #101214;*/
background-color: #FFF;
color: #000;
/**background-image:url('images/background.jpg');**/
opacity: 2;

}

h2,.white{
color: #000;
}

a{
color: #000;
text-decoration: none;
}
/* section 1 */
.section-1{
padding-top: 40vh;
padding-left: 20vw;
text-align: center;
}

.section-1 p{
font-size: 1.1rem;
padding-bottom: 10px;
margin:0;
}

.section-1 h2{
font-size: 1.7rem;
margin-bottom: 10px;
}

.section-1 a{
font-size: 1.5rem;
padding: 10px;
}
/* section 2 */
.section-2{
padding-top: 20vh;
width: 70%;
}

.section-2 h2{
font-size: 1.7rem;
margin-bottom: 10px;
}

.section-2 p{
font-size: 1.1rem;
padding-bottom: 10px;
margin:0;
}
.section-2 a{
display: block;
padding: 5px;
font-size: 1.2rem;
padding-left: 0;
width: 700px;
}
/* animations / utilities */
.section-2 a:hover{
font-size: 1.3rem;
color: #C0C0C0;
cursor: pointer;
transition: 0.2s;
}

.section-1 a:hover{
color: #fff;
cursor: pointer;
transition: 0.3s;
}

.white:hover{
position: relative;
padding-left: 10px;
}

/* media queres */
@media(max-width:780px){
.grid-2{
grid-template-columns: 1fr;
}
.section-1{
padding:0;
padding-top: 5rem;
}
.section-2{
padding: 0;
padding-left: 1.5rem;
padding-top: 2rem;
}
}

0 comments on commit c950c58

Please sign in to comment.