css rework
This commit is contained in:
parent
c54bafaf2b
commit
e2cdbc55fa
5 changed files with 165 additions and 0 deletions
11
effects.css
Normal file
11
effects.css
Normal file
|
@ -0,0 +1,11 @@
|
|||
a{
|
||||
color: var(--text);
|
||||
transition: color 0.5s;
|
||||
}
|
||||
a:visited{
|
||||
color: var(--text);
|
||||
}
|
||||
a:hover{
|
||||
color: black;
|
||||
}
|
||||
|
32
fontScaler.css
Normal file
32
fontScaler.css
Normal file
|
@ -0,0 +1,32 @@
|
|||
.font_scaler{
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.font_scaler button{
|
||||
background: none;
|
||||
background-color: var(--backing);
|
||||
border: none;
|
||||
margin-left: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px;
|
||||
transition: background-color 0.5s;
|
||||
}
|
||||
|
||||
.font_scaler img{
|
||||
width: 3vw;
|
||||
height: 3vw;
|
||||
}
|
||||
|
||||
.font_scaler button::hover, .font_scaler img::hover{
|
||||
background-color: grey;
|
||||
}
|
||||
|
||||
@media (orientation: portrait) {
|
||||
.font_scaler img{
|
||||
width: 15vw;
|
||||
height: 15vw;
|
||||
}
|
||||
|
||||
}
|
78
gallery.css
Normal file
78
gallery.css
Normal file
|
@ -0,0 +1,78 @@
|
|||
.gallery{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
.gallery figure{
|
||||
width: 200px;
|
||||
height: 250px;
|
||||
background-color: var(--backing);
|
||||
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
|
||||
.gallery figure:hover:not(.maximised){
|
||||
transform: rotate(-5deg);
|
||||
}
|
||||
|
||||
.gallery figure img{
|
||||
width: 90%;
|
||||
height: 75%;
|
||||
object-fit: fill;
|
||||
margin: 5%;
|
||||
}
|
||||
|
||||
.gallery figcaption{
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
||||
.maximised{
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
/* left: 0; */
|
||||
/* top: 0; */
|
||||
|
||||
z-index: 10;
|
||||
|
||||
height: 90vh !important;
|
||||
width: 80vh !important;
|
||||
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
}
|
||||
.maximised:before{
|
||||
background-color: var(--backing);
|
||||
content: "click the photo again to close it";
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
@media screen and (max-width:1000px){
|
||||
|
||||
.maximised{
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
/* left: 0; */
|
||||
/* top: 0; */
|
||||
|
||||
|
||||
z-index: 10;
|
||||
|
||||
height: 90vw !important;
|
||||
width: 80vw !important;
|
||||
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.gallery figure{
|
||||
width: 350px;
|
||||
height: 400px;
|
||||
}
|
||||
}
|
29
home.css
Normal file
29
home.css
Normal file
|
@ -0,0 +1,29 @@
|
|||
#home_page_content{
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
grid-template-areas:
|
||||
"head open"
|
||||
"qual book";
|
||||
grid-template-columns: 3fr 1fr;
|
||||
}
|
||||
|
||||
#times{
|
||||
text-align: center;
|
||||
grid-area: open
|
||||
}
|
||||
|
||||
#head{
|
||||
grid-area: head;
|
||||
}
|
||||
|
||||
#qual{
|
||||
grid-area: qual
|
||||
}
|
||||
|
||||
#book{
|
||||
grid-area: book;
|
||||
}
|
||||
|
||||
@media screen and (max-width:1000px){
|
||||
|
||||
}
|
15
socials.css
Normal file
15
socials.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
.socials{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
padding: 0 10% 0 10%;
|
||||
}
|
||||
|
||||
.socials img{
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
main .socials{
|
||||
margin: auto;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue