mlsoc / styles /style.css
Yacine Jernite
imporove overview linking
b1f7a7d
/* || General setup */
html, body {
margin: 0;
padding: 0;
}
html {
font-size: 10px;
background-color: #aad1ea;
}
body {
width: 70%;
margin: 0 auto;
}
/* || typography */
h1, h2, h3 {
font-family: 'Open Sans Condensed', sans-serif;
color: #2a2a2a;
}
p, input, li {
font-family: 'Open Sans Condensed', sans-serif;
color: #2a2a2a;
}
h1 {
font-size: 4rem;
text-align: center;
color: white;
text-shadow: 2px 2px 10px black;
}
article h2 {
text-align: left;
}
h2 {
font-size: 3rem;
text-align: center;
}
h3 {
font-size: 2.2rem;
}
p, li {
font-size: 1.6rem;
line-height: 1.5;
}
/* || header layout */
nav, article, aside, footer {
background-color: white;
padding: 1%;
}
.outer {
background-color: #cbf5e1;
padding: 5px;
}
.inner {
background-color: white;
margin-bottom: 10px;
}
nav {
height: 50px;
background-color: #67dca5;
display: flex;
margin-bottom: 10px;
}
nav ul {
padding: 0;
list-style-type: none;
flex: 2;
display: flex;
}
nav li {
display: inline;
text-align: center;
flex: 1;
}
nav a {
display: inline-block;
font-size: 2rem;
text-transform: uppercase;
text-decoration: none;
color: black;
}
nav form {
flex: 1;
display: flex;
align-items: center;
height: 100%;
padding: 0 2em;
}
footer {
height: 50px;
background-color: #67dca5;
display: flex;
margin-bottom: 10px;
}
/* || main layout */
main {
display: flex;
}
article {
flex: 4;
margin-left: 5px;
}
aside {
float: left;
flex: 1;
/* margin-left: 10px; */
background-color: #67dca5;
}
aside ul {
list-style-type: none;
padding-left: 0px;
}
aside li {
padding-bottom: 10px;
border: 1px solid rgb(43, 145, 44);
}
footer {
margin-top: 10px;
}
/* || Overview Gallery */
#vignettes {
display: flex;
}
#itemSidebar {
flex: 0 0 20%;
max-width: 20%;
border: 1px solid rgb(43, 145, 44);
padding-left: 5px;
margin-right: 5px;
}
#tagList {
padding: 5px;
list-style-type: none;
}
.tagListItem{
background-color: white;
border: 1px solid rgb(43, 145, 44);
padding: 2px;
margin: 2px;
}
#itemGallery {
flex: 1;
border: 1px solid rgb(43, 145, 44);
display: grid;
grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
grid-auto-flow: row; /* This ensures items fill out columns before moving to the next row */
}
.item {
border: 1px solid rgb(43, 145, 44);
background-size: cover;
background-position: center;
height: 200px;
position: relative;
margin: 5px;
}
.item h3 {
position: absolute;
padding: 5px;
text-align: center;
}
.item p {
position: absolute;
bottom: 0;
background-color: #cbf5e1;
margin: 0;
padding: 5px;
text-align: center;
}
/* Previous css */
/*
html {
background-color: rgb(201, 239, 201);
font-size: 20px;
}
ul {
background: red;
padding: 10px;
border: 1px solid black;
}
li {
margin-left: 15px;
background: rgb(182, 139, 173);
border: 1px solid rgb(43, 145, 44);
}
h1, h2 {
color: purple;
}
p {
color: rgb(140, 62, 149);
} */