Skip to content

Commit

Permalink
Merge pull request #47 from minsoftk/develop
Browse files Browse the repository at this point in the history
design: #12 search, draw css 디자인
  • Loading branch information
minsoftk authored Nov 16, 2021
2 parents c6277bd + 73ae9cf commit 427ae51
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 29 deletions.
7 changes: 6 additions & 1 deletion src/sass/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@
outline: 0;
text-indent: rem(10px);
padding-right: rem(50px);

width: rem(600px);
height: rem(50px);
@include border;
border-radius: rem(5px);
transition: border 0.3s ease-in-out;
@include desktop {
margin: 0 rem(30px);
}
@include mobile {
width: 100%;
margin: 0 auto;
}
}

Expand All @@ -36,7 +41,7 @@
height: rem(20px);
width: rem(20px);
position: absolute;
right: rem(10px);
right: rem(40px);
}

fieldset {
Expand Down
61 changes: 33 additions & 28 deletions src/sass/pages/_draw.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
@use './../utils' as *;

.draw {
position: relative;
@include desktop {
margin: 0 rem(30px);
}

@include mobile {
margin: 0 rem(20px);
display: block;
}

&__title {
display: inline-block;
width: 100%;
@include desktop {
padding: 0 rem(20px) rem(80px) 0;
padding: rem(60px) rem(20px) rem(40px) 0;
@include fontSB($size: rem(40px), $bold: 700);
}
@include mobile {
display: block;
padding: rem(50px) rem(20px) rem(20px) rem(20px);
text-align: center;
@include fontSB($size: rem(30px), $bold: 700);
padding: rem(60px) rem(20px) rem(20px) 0;
}
@include fontSB($size: rem(30px), $bold: 700);
}

&__button {
@include desktop {
@include position($right: 0, $top: rem(20px));
margin-top: rem(30px);
padding: rem(10px);
border-radius: rem(3px);
@include border;
}
@include border;
@include position($right: 0, $top: rem(60px));
border-radius: rem(3px);
width: rem(50px);
height: rem(50px);
@include mobile {
display: none;
}
Expand All @@ -31,7 +38,7 @@
@include border($color: white);
color: white;
background: black;
transition: all 0.3s ease-in-out;
transition: all 0.2s ease-in-out;
}

&__list {
Expand All @@ -58,60 +65,58 @@
}
}

&__figcaption{
&__figcaption {
@include flexbox($direction: column, $items: start);
em {
font-weight: 700;
font-size: 2.4rem;
margin-top: rem(50px);
margin-bottom: rem(20px);
@include mobile{
@include mobile {
font-size: 1.4rem;
margin-top: rem(30px);
margin-bottom: rem(10px);
}
}
p{
p {
display: inline-block;
font-size: 2rem;
margin-bottom: rem(150px);
@include mobile{
@include mobile {
font-size: 1.2rem;
margin-bottom: rem(100px);
}
}
}

li{
li {
position: relative;
}

&__detail{
&__detail {
display: none;
}

&__figure:hover +
&__detail {
@include desktop{
&__figure:hover + &__detail {
@include desktop {
display: block;
width: 100%;
color: $lightwhite;
font-weight: 700;
font-size: 2rem;
// @include fontSB($size:rem(32px), $bold)
@include position($top: 30%);
background-color: rgba(0, 0, 0,.6);
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
padding: rem(30px);
li{
li {
display: inline-block;
@include marginY(50px);
}
li:nth-child(n+2)::before{
li:nth-child(n + 2)::before {
content: '\007C';
@include marginX(20px);
}
}

}

}
}

0 comments on commit 427ae51

Please sign in to comment.