Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- float
- ๋ฌธ์์ด
- Em
- ์๋ฐ์คํฌ๋ฆฝํธ
- scss
- layout
- ์ฝ๋ฉํ ์คํธ
- input
- VSCODE๋จ์ถํค
- css
- string
- ํฉ๊ณ ์๊ณ ๋ฆฌ์ฆ
- @mixin
- ์ ๊ฐ์ฐ์ฐ์
- ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ฉํ ์คํธ
- HTML
- SASS
- ์ธ๋ผ์ธ
- vscode
- ์๊ณ ๋ฆฌ์ฆ
- object
- ํ๋ก๊ทธ๋๋จธ์ค
- javascript
- inline
- ์ธ๋ผ์ธ๋ธ๋ก
- ::before
- html ํ๊ทธ
- js
- carousel slider
- TAG
Archives
- Today
- Total
Outputor
SASS layout 1 ๋ณธ๋ฌธ
๋๋ณด๊ธฐ
๋๋ณด๊ธฐ
๋๋ณด๊ธฐ
HTML
<!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" href="./scssEx.css" />
</head>
<body>
<div class="body-container">
<div class="inner">
<!-- LIST -->
<ul class="lists-box">
<li class="list active">๋์ดํค</li>
<li class="list">์๋๋ค์ค</li>
<li class="list">๋ฐ์ค</li>
</ul>
<!-- BOX -->
<div class="boxs">
<div class="box1">
<p>์ฐธ ์ํ์ด์. ์์ผ๋ก๋ ๊ณ์ ์๋ถํํฉ๋๋ค</p>
</div>
<div class="box2">
<p>์ด์ ๋๋ฉด ๊ด์ฐฎ์์. ์กฐ๊ธ ๋ ๋ฐ์ ํ๋ฉด ์ข๊ฒ ์ต๋๋ค</p>
</div>
<div class="box3">
<p>๋๋ฌด ๋ถ์กฑํ๋ค์. ์ด๋ฌ๋ฉด ๊ฐ์ด ๊ฐ๊ธฐ ํ๋ค์ด์</p>
</div>
</div>
<!-- COLUMN LAYOUY -->
<div class="column-layout">
<div class="half">
<div>
<p>1 of 2</p>
</div>
<div>
<p>2 of 2</p>
</div>
</div>
<div class="third">
<div>
<p>1 of 3</p>
</div>
<div>
<p>2 of 3</p>
</div>
<div>
<p>3 of 3</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
๋๋ณด๊ธฐ
๋๋ณด๊ธฐ
๋๋ณด๊ธฐ
SCSS
// LIST
@mixin list () {
border: 1px solid #e9ecef;
padding: 10px 0px 10px 10px;
font-size: 20px;
}
@mixin active () {
background-color: #1c7ed6;
color: #fff;
}
ul {
list-style: none;
margin: 0;
padding: 10px;
.list {
@include list();
}
.list:nth-child(2),
.list:last-child {
border-top: none;
}
.active {
@include active();
}
}
// BOX
@mixin box ($bgColor, $color) {
background-color: $bgColor;
color: $color;
padding: 10px;
border-radius: 8px;
margin: 10px;
font-weight: bold;
box-sizing: border-box;
}
.boxs {
margin-top: 50px;
.box1 {
@include box(#d3f9d8, #2b8a3e);
}
.box2 {
@include box(#d0ebff, #1864ab)
}
.box3 {
@include box(#ffe3e3, #c92a2a)
}
}
// COLUMN LAYOUY
@mixin halfThrid () {
margin: 0 10px 10px 10px;
border: 1px solid #9775fa;
box-sizing: border-box;
}
@mixin column ($width) {
float: left;
width: $width;
box-sizing: border-box;
background: #e5dbff;
padding-left: 10px;
}
@mixin clearfix () {
content:'';
clear: both;
display: block;
}
.column-layout {
margin-top: 50px;
}
.half {
@include halfThrid();
div {
@include column((100%/2));
}
div:first-child {
border-right: 1px solid #9775fa;
}
&::after {
@include clearfix();
}
}
.third {
@include halfThrid();
div {
@include column((100% / 3));
}
div:first-child,
div:nth-child(2) {
border-right: 1px solid #9775fa;
}
&::after {
@include clearfix();
}
}
'๐ฆ ํ๋ก์ ํธ ๐ป > ๐ ํ๋ก์ ํธ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
carousel slider ์ฌ์ด ๋ฒ์ (0) | 2022.01.27 |
---|---|
Admin page 1 (0) | 2022.01.23 |
layout 3 (0) | 2022.01.13 |
Shadow DOM (0) | 2022.01.06 |
layout 2 (0) | 2022.01.05 |