Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# cssBayan
https://rRedq.github.io/cssBayan/index.html
102 changes: 102 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
html, body, input{
margin: 0;
padding: 0;
}
body{
background-color: rgb(187, 182, 170);
}
.wrapper{
width: 70rem;
margin: 0 auto;
}
.first_describe{
font: oblique 1.3em "Comic Sans MS", sans-serif;
font-size: 2rem;
font-weight: bold;
text-align: center;
}
.input_show{
width: 0;
height: 0;
}
.img_show{
display: block;
margin: 0 auto;
box-sizing: border-box;
width: 0;
visibility: hidden;
height:0;
transition: width 1s, height 1s, transform 1s;
}
.label_item{
display: block;
box-sizing: border-box;
overflow: hidden;
border-top: 0.1rem solid rgb(95, 95, 95);
padding-top: 0.4rem;
font: oblique 1.3em "Comic Sans MS", sans-serif;
cursor: pointer;
color:rgb(102, 102, 231);

}
.icon{
visibility: hidden;
width: 2%;
text-align: right;
margin-left: 98%;
transition: all 0.5s ease;
}
input:checked ~ .label_item{
color: black;
}
input:checked ~ label .icon{
transform: rotate(45deg);
}
input:checked ~ label .img_show{
visibility: visible;
height: 100%;
width: 22%;
}
@media (min-width: 320px) and (max-width: 820px){
.first_describe{
font-size: 1.7rem;
}
.label_item{
font-size: 1.1rem;
}
.wrapper:focus-within .list_item .label_item{
color: rgb(61, 61, 61);
}
.icon{
visibility: visible;
}
}
@media (min-width: 820px) and (max-width: 1920px){
.first_describe{
font-size: 1.8rem;
}
.label_item{
font-size: 1.2rem;
}
}
@media (min-width: 1920px) {
.wrapper:hover > .list_item > .label_item > .icon {
visibility: visible;
}
.wrapper:hover > .list_item > .label_item{
color: rgb(61, 61, 61);
}
.label_item:hover .icon{
visibility: visible;
transform: rotate(45deg);
}
.label_item:hover .img_show{
visibility: visible;
height: 100%;
width: 22%;
}
.img_show:hover{
transition: all 2s ease;
opacity: 0.5;
}
}
Binary file added image/mem1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/mem2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/mem3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/mem5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions image/plus-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSSBayan</title>
<link href="css/styles.css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<h1 class="first_describe">CSS Bayan</h1>
<div class="list_item">
<input id="checkbox_1" type="radio" class="input_show" name="list_input" checked>
<label for="checkbox_1" class="label_item">
Vzuuuh! Without magic...
<img class="icon" src="image/plus-solid.svg">
<img class="img_show" src="image/mem1.jpg" alt="">
</label>
</div>
<div class="list_item">
<input id="checkbox_2" type="radio" class="input_show" name="list_input">
<label for="checkbox_2" class="label_item">
Every day I'm drinking
<img class="icon" src="image/plus-solid.svg">
<img class="img_show" src="image/mem5.png" alt="">
</label>
</div>
<div class="list_item">
<input id="checkbox_3" type="radio" class="input_show" name="list_input">
<label for="checkbox_3" class="label_item">
Not me
<img class="icon" src="image/plus-solid.svg">
<img class="img_show" src="image/mem2.jpg" alt="">
</label>
</div>
<div class="list_item">
<input id="checkbox_4" type="radio" class="input_show" name="list_input">
<label for="checkbox_4" class="label_item">
God is God
<img class="icon" src="image/plus-solid.svg">
<img class="img_show" src="image/mem3.jpg" alt="">
</label>
</div>
</div>
</body>
</html>