CSY1018-assignment-1/blog/blog.css

83 lines
1.3 KiB
CSS
Raw Permalink Normal View History

.blog_post {
background-color: rgba(0, 0, 0, 80%);
2022-04-15 16:41:44 +00:00
margin-left: 2.5em;
min-width: 25em;
padding-left: 1em;
padding-right: 1em;
border-radius: 2em;
transition: transform 1s;
}
.blog_image {
max-width: 10em;
}
2022-04-14 17:29:05 +00:00
#first > .blog_image {
min-height: 4em;
min-width: 24em;
}
2022-04-15 17:15:51 +00:00
#second > .blog_image {
padding-left: 8em;
}
#third > .blog_image {
padding-left: 8em;
}
2022-04-15 18:08:24 +00:00
#fourth > .blog_image {
padding-left: 7em;
}
.blog {
display: grid;
grid-template-columns: repeat(3, 2fr);
gap: 1em;
}
2022-04-17 14:18:45 +00:00
.blog > h2 {
padding-top: 50em;
}
.blog_post#first:focus-within {
2022-04-17 14:22:04 +00:00
transform: scale(1.8, 1.8) translate(20em, 6em);
transition: transform 1s;
}
.blog_post#second:focus-within {
2022-04-17 14:22:04 +00:00
transform: scale(1.8, 1.8) translate(0em, 6em);
transition: transform 1s;
}
.blog_post#third:focus-within {
2022-04-17 14:22:04 +00:00
transform: scale(1.8, 1.8) translate(-20em, 6em);
transition: transform 1s;
}
.blog_post#fourth:focus-within {
2022-04-17 14:22:04 +00:00
transform: scale(1.8, 1.8) translate(20em, -13em);
transition: transform 1s;
}
.blog_post:focus-within > button.arrow {
transform: rotate(45deg);
transition: transform 1s;
}
.blog_post:focus-within {
z-index: 100;
}
button.arrow {
background-color: transparent;
margin: 0;
transform: rotate(225deg);
transition: transform 1s;
2022-04-16 18:51:06 +00:00
cursor: pointer;
}