File tree Expand file tree Collapse file tree 10 files changed +51
-35
lines changed Expand file tree Collapse file tree 10 files changed +51
-35
lines changed Original file line number Diff line number Diff line change 1
- @import ' normalize.scss' ;
1
+ @import ' ./scss/normalize.scss' ;
2
+ @import ' ./scss/variables.scss' ;
3
+
4
+ #app {
5
+ min-width : 320px ; // iphone5
6
+ max-width : 768px ; // tablet
7
+ margin-left : auto ;
8
+ margin-right : auto ;
9
+ }
2
10
3
11
.container {
4
- margin : 0 15px 0 15px ;
12
+ margin-left : $span * 2 ;
13
+ margin-right : $span * 2 ;
5
14
}
15
+
6
16
header {
7
- border-bottom : 1px #ccc solid ;
8
- padding : 15 px 0 15 px 0 ;
17
+ border-bottom : 1px solid $border-color ;
18
+ margin : 0 ;
9
19
text-align : center ;
10
20
}
11
21
.content {
12
- border : 1px solid #ccc ;
22
+ border : 1px solid $border-color ; ;
13
23
}
Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
5
6
< title > 검색< %= env %> </ title >
6
7
</ head >
7
8
< body >
8
- < header >
9
- < h2 class ="container "> 검색</ h2 >
10
- </ header >
11
-
12
- < div class ="container ">
13
- < form class ="FormView ">
14
- < input type ="text " placeholder ="검색어를 입력하세요 " autofocus >
15
- < button type ="reset " class ="btn-reset "> </ button >
16
- </ form >
17
-
18
- < div class ="content ">
19
- < div id ="tabs "> </ div >
20
- < div id ="search-keyword "> </ div >
21
- < div id ="search-history "> </ div >
22
- < div id ="search-result "> </ div >
9
+ < div id ="app ">
10
+ < header >
11
+ < h2 class ="container "> 검색</ h2 >
12
+ </ header >
13
+
14
+ < div class ="container ">
15
+ < form class ="FormView ">
16
+ < input type ="text " placeholder ="검색어를 입력하세요 " autofocus >
17
+ < button type ="reset " class ="btn-reset "> </ button >
18
+ </ form >
19
+
20
+ < div class ="content ">
21
+ < div id ="tabs "> </ div >
22
+ < div id ="search-keyword "> </ div >
23
+ < div id ="search-history "> </ div >
24
+ < div id ="search-result "> </ div >
25
+ </ div >
23
26
</ div >
24
27
</ div >
25
28
Original file line number Diff line number Diff line change 1
- $brand-color : #2ac1bc ;
2
- $brand-color-light : lighten ($brand-color , 30 );
3
- $grey-color : #eee ;
4
- $grey-color-light : lighten ($grey-color , 30 );
5
- $grey-color-dark : darken ($grey-color , 30 );
6
- $white-color : #fff ;
7
- $span : 4px ;
1
+ @import ' ./variables.scss' ;
8
2
9
3
@mixin btn-close {
10
4
$width : 20px ;
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ $brand-color : #2ac1bc ;
2
+ $primary-color : blue ;
3
+ $secondary-color : #aaa ;
4
+ $white-color : #fff ;
5
+
6
+ $border-color : lighten ($secondary-color , 20 );
7
+
8
+ $span : 4px ;
9
+
Original file line number Diff line number Diff line change 1
- @import ' variables .scss' ;
1
+ @import ' ../scss/mixins .scss' ;
2
2
3
3
4
4
.FormView {
Original file line number Diff line number Diff line change 1
- @import ' variables .scss' ;
1
+ @import ' ../scss/mixins .scss' ;
2
2
3
3
.HistoryView {
4
4
@include list ();
Original file line number Diff line number Diff line change 1
- @import ' variables .scss' ;
1
+ @import ' ../scss/mixins .scss' ;
2
2
3
3
.KeywordView {
4
4
@include list ();
Original file line number Diff line number Diff line change 1
- @import ' variables.scss' ;
1
+ @import ' ../scss/ variables.scss' ;
2
2
3
3
.ResultView {
4
4
ul {
Original file line number Diff line number Diff line change 1
- @import ' variables.scss' ;
1
+ @import ' ../scss/ variables.scss' ;
2
2
3
3
.TabView {
4
4
display : flex ;
10
10
padding : 15px ;
11
11
text-align : center ;
12
12
box-sizing : border-box ;
13
- border-bottom : 1px solid $grey -color-light ;
14
- background-color : $grey -color ;
15
- color : $grey -color-dark ;
13
+ border-bottom : 1px solid $border -color ;
14
+ background-color : $white -color ;
15
+ color : $secondary -color ;
16
16
& :hover {
17
17
cursor : pointer ;
18
18
}
You can’t perform that action at this time.
0 commit comments