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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# cssBayan
# cssBayan
https://technot1k.github.io/cssBayan/cssBayan/index.html
Binary file added cssBayan/img/1.png
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 cssBayan/img/2.png
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 cssBayan/img/3.png
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 cssBayan/img/4.png
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 cssBayan/img/download.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions cssBayan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<div class="wrapper">
<div class="accordion">
<h1>CSS Bayan</h1>
<hr />
<div class="container-me">
<div class="item">
<input type="radio" id="me1" name="mem" class="input-item" checked>
<label for="me1" class="title">You can't just copy and paste CSS
<span class="item-icon"></span>
</label>
<div class="content">
<img class="img1" src="img/download.png" width="250" height="250" alt="mem1">
</div>
<hr />
</div>
</div>
<div class="container-me">
<div class="item">
<input type="radio" id="me2" name="mem" class="input-item">
<label for="me2" class="title">Keep calm and carry on
<span class="item-icon"></span>
</label>
<div class="content">
<img class="img1" src="img/1.png" width="250" height="250" alt="mem1">
</div>
<hr />
</div>
</div>
<div class="container-me">
<div class="item">
<input type="radio" id="me3" name="mem" class="input-item">
<label for="me3" class="title">Work-life balance
<span class="item-icon"></span>
</label>
<div class="content">
<img class="img1" src="img/2.png" width="250" height="250" alt="mem1">
</div>
<hr />
</div>
</div>
<div class="container-me">
<div class="item">
<input type="radio" id="me4" name="mem" class="input-item">
<label for="me4" class="title">Dude, where is JS?
<span class="item-icon"></span>
</label>
<div class="content">
<img class="img1" src="img/3.png" width="250" height="250" alt="mem1">
</div>
<hr />
</div>
</div>
<div class="container-me">
<div class="item">
<input type="radio" id="me5" name="mem" class="input-item">
<label for="me5" class="title">Relax and take it
<span class="item-icon"></span>
</label>
<div class="content">
<img class="img1" src="img/4.png" width="250" height="250" alt="mem1">
</div>
<hr />
</div>
</div>
</div>
</div>
</div>
</body>
</html>
72 changes: 72 additions & 0 deletions cssBayan/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
* {
font-family: Arial, Helvetica, sans-serif;
}

html {
width:100vw;
}

body {
background-color: cornsilk;
}

.container {
width: 100%;
min-height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}

.accordion {
font-size: large;
font-weight: bolder;
width: 40%;
margin: 0 auto;
}

.title {
display: flex;
align-items: center;
justify-content: space-between;
padding:1em 1em;
cursor: pointer;
}
.title::after {
content: '>';
transition: transform 0.5s ease-in-out;
}

.input-item {
display: none;
}

.input-item:checked ~ .content {
display: block;
text-align: center;

}
.content {
display: none;
}


.input-item:hover ~ .content {
display: block;
text-align: center;
transition: all 1s;
}

.input-item:checked ~ .title::after {
transform: rotate(90deg);
}

.input-item:hover ~ .title::after {
transform: rotate(90deg);
}

.title:hover::after {
content: '>';
transition: transform 0.5s ease-in-out;
visibility: visible;
}