-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.css
More file actions
175 lines (151 loc) · 2.67 KB
/
Copy pathtest.css
File metadata and controls
175 lines (151 loc) · 2.67 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
@charset "UTF-8";
/* scss는 css랑 똑같음 문제는 웹브라우저는 scss는 이해하지 못함. */
/* scss -> css 로 변환 */
/* $변수명 으로 해서 변수 사용가능*/
/* css내에서의 변수 사용 */
/* :root {
--main-color : red;
} */
/* 외부 파일 가져오기 */
body {
margin: 0;
padding: 20px;
}
div {
box-sizing: border-box;
}
/* nesing 문법*/
.main-bg h4 {
font-size: 16px;
}
.main-bg button {
color: red;
}
/* 임시클래스 - 단독 컴파일 안됨.*/
.btn-red, .btn-green {
width: 100px;
height: 100px;
padding: 20px;
}
/* @extend 문법 */
.btn-green {
color: green;
}
.btn-red {
color: red;
}
.container-blue, .container-red, .container-green {
width: 200px;
height: 200px;
padding: 20px;
}
.container-green {
background: green;
}
.container-red {
background-color: red;
}
.container-blue {
background-color: blue;
}
/* @mixin 문법 - 약간 함수랑 비슷 */
/* 가변적으로 사용이 가능 - parameter */
h2 {
font-size: 30px;
letter-spacing: -1px;
width: 100px;
color: brown;
}
h3 {
font-size: 20px;
letter-spacing: -1px;
width: 100px;
}
.background {
background-color: #3498db;
font-size: 16px;
}
.box {
width: 100%;
font-size: 18px;
}
li {
list-style: none;
border: 1px solid rgb(204, 204, 204);
width: 250px;
padding: 10px;
}
li.active {
background-color: rgb(88, 95, 165);
color: white;
border: 1px solid rgb(88, 95, 165);
}
.alert-success {
background-color: rgb(151, 239, 151);
color: rgb(55, 116, 55);
width: auto;
height: auto;
padding: 20px;
border-radius: 5px;
font-size: 14px;
margin-top: 10px;
}
.alert-attention {
background-color: rgb(132, 177, 254);
color: rgb(37, 41, 97);
width: auto;
height: auto;
padding: 20px;
border-radius: 5px;
font-size: 14px;
margin-top: 10px;
}
.alert-warning {
background-color: rgb(222, 151, 121);
color: rgb(134, 90, 56);
width: auto;
height: auto;
padding: 20px;
border-radius: 5px;
font-size: 14px;
margin-top: 10px;
}
.alert-success p {
display: inline;
}
.alert-success p.bold {
font-weight: bold;
}
.alert-attention p {
display: inline;
}
.alert-attention p.bold {
font-weight: bold;
}
.alert-warning p {
display: inline;
}
.alert-warning p.bold {
font-weight: bold;
}
.row {
width: 100%;
background-color: rgba(182, 156, 196, 0.566);
--bs-gutter-x: 0px;
margin-top: 10px;
}
.col-6 {
width: 50%;
border: 1px solid rgb(141, 112, 156);
padding: 10px;
}
.col-4 {
width: 33.3333333333%;
border: 1px solid rgb(141, 112, 156);
padding: 10px;
}
.col-3 {
width: 25%;
border: 1px solid rgb(141, 112, 156);
padding: 10px;
}/*# sourceMappingURL=test.css.map */