<div class="frame">
<div>#01</div>
<div>#02</div>
<div>#03</div>
</div>
.frame {
display: flex;
gap: 10px;
div {
flex: 1;
height: 150px;
border-radius: 5px;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
// div안의 글씨를 수직수평중앙
display: flex;
justify-content: center;
align-items: center;
transition: 0.35s;
&:hover {
color: #fff;
transform: translateY(-5px);
}
&:nth-child(1) {
background-color: crimson;
}
&:nth-child(2) {
background-color: yellowgreen;
}
&:nth-child(3) {
background-color: royalblue;
}
}
}
<div class="signin">
<h1>Sign in</h1>
<div class="sign-inner">
<input type="button" value="Sign in with Google">
<input type="email">
<input type="password">
<input type="checkbox" checked> Remember me for 30 days
<input type="submit" value="Sign In">
</div>
</div>
input[type=button],
input[type=email],
input[type=password],
input[type=submit] {
display: block;
width: 100%;
margin: 10px 0;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
}
input[type=button] {
margin-bottom: 20px;
cursor: pointer;
background-color: #fff;
transition: 0.35s;
&:hover {
background-color: #ddd;
}
}
input[type=email] {
transition: 0.35s;
&:focus {
background-color: rgb(255, 255, 168);
}
}
input[type=submit] {
cursor: pointer;
background-color: #27ae68;
color: #fff;
}
@ : at-sign
& : empersand
~ : tild
^ : caret
<div class="frame">
<h1 class="heading">
CodingWorks Publishing class in Inflearn
</h1>
</div>
<h1 class="heading">This is @at-root</h1>
.frame {
padding: 20px;
border: 1px solid #000;
text-align: center;
@at-root .heading {
font-size: 36px;
color: crimson;
font-weight: normal;
}
}
.frame {
padding: 20px;
border: 1px solid #000;
text-align: center;
}
.heading {
font-size: 36px;
color: crimson;
font-weight: normal;
}