- 웨일 확장앱 - 색상 추출
- CSS 심화
- 색상은 변수로 선언해서 사용하기
- transition : 특정 변화를 부드럽게 만들어주는 옵션
- transform : 이미지 효과</li>
- cubic-bezier : 이미지 효과 확인하는 사이트
https://cubic-bezier.com/
- @media를 이용해서 반응형 웹 구현
- CSS 프레임워크
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/header.css" />
</head>
<body>
<header>
<div class="info-bar">
<div class="info-bar__time">20:55</div>
<div class="info-bar__icons">
<img src="assets/chart-bar.svg" alt="chart-bar" />
<img src="assets/wifi.svg" alt="wifi" />
<img src="assets/battery.svg" alt="battery" />
</div>
</div>
<div class="menu-bar">
<div class="menu-bar__location">
<div>역삼1동</div>
<div class="menu-bar__location_icon">
<img src="assets/arrow.svg" alt="donw-arrow" />
</div>
</div>
<div class="menu-bar__icons">
<img src="assets/search.svg" alt="search" />
<img src="assets/menu.svg" alt="menu" />
<img src="assets/alert.svg" alt="alert" />
</div>
</div>
</header>
<main></main>
<footer></footer>
</body>
</html>
/* 헤더바 */
header {
margin-top: 10px;
border-bottom: 1px solid #ededef;
padding-bottom: 10px;
}
/* info바 */
.info-bar {
display: flex;
justify-content: space-between;
padding: 0 10px 0 10px; /* 시계방향 */
}
.info-bar__time {
font-size: 14px;
font-weight: bold;
}
.info-bar__icons img {
width: 15px;
}
.menu-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.menu-bar__location {
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
padding-left: 10px;
}
.menu-bar__location img {
width: 15px;
}
.menu-bar__location_icon {
display: flex;
justify-content: center;
align-items: center;
}
.menu-bar__icons {
display: flex;
justify-content: center;
align-items: center;
}
.menu-bar__icons img {
width: 25px;
margin-right: 10px;
}
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}