Skip to content

Commit

Permalink
[add] scss pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy-port committed Aug 18, 2021
1 parent 781115d commit 5f292b6
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 73 deletions.
4 changes: 4 additions & 0 deletions app/assets/style/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
@import './utilities/spacing';
@import './utilities/sizing';

@import './mixin/spacing';
@import './mixin/sizing';

@import './components/notification';
@import './components/swiper';
@import './components/timeline';
@import './components/scrollbar';
Expand Down
18 changes: 18 additions & 0 deletions app/assets/style/components/_notification.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.notification-circle{

&::after{
content:"";
position: absolute;
top: -10px;
right: -10px;
width: 20px;
height: 20px;

border-radius: 50%;
background-color: $secondary;
color: $white;
font-size: $font-size-base;
font-family: Roboto, sans-serif;

}
}
35 changes: 35 additions & 0 deletions app/assets/style/mixin/_sizing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* width */
.w-md-350 {
@include media-breakpoint-up(md) {
width: 350px;
}
}

/* height */
.h-md-256 {
@include media-breakpoint-up(md) {
height: 256px;
}
}

.h-md-350 {
@include media-breakpoint-up(md) {
height: 350px;
}
}

/* vh */

.vh-100-minus-header {
height: calc(100vh - 60px);
@include media-breakpoint-up(md) {
height: calc(100vh - 82px);
}
}

.vh-100-minus-header-navbar {
height: calc(100vh - 115px);
@include media-breakpoint-up(md) {
height: calc(100vh - 135px);
}
}
18 changes: 18 additions & 0 deletions app/assets/style/mixin/_spacing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* rwd */
.pb-md-52 {
@include media-breakpoint-up(md) {
padding-bottom: 52px;
}
}

.pt-md-80 {
@include media-breakpoint-up(md) {
padding-top: 80px;
}
}

.mb-md-42 {
@include media-breakpoint-up(md) {
margin-bottom: 42px;
}
}
20 changes: 0 additions & 20 deletions app/assets/style/pages/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@
text-indent: 101%;
}
}

.shopping-cart{

&::after{
content:"";
position: absolute;
top: -10px;
right: -10px;
width: 20px;
height: 20px;

border-radius: 50%;
background-color: $secondary;
color: $white;
font-size: $font-size-base;
font-family: Roboto, sans-serif;

}
}

/* menu */
.menu-list{
height: 3.25rem;
Expand Down
20 changes: 1 addition & 19 deletions app/assets/style/utilities/_sizing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,14 @@
.w-540 {
width: 540px;
}
.w-md-350 {
@include media-breakpoint-up(md) {
width: 350px;
}
}

/* height */

.h-120 {
height: 120px;
}

.h-128{
.h-128 {
height: 128px;
}
.h-256 {
Expand All @@ -45,16 +40,3 @@
.h-560 {
height: 560px;
}

.h-md-256 {
@include media-breakpoint-up(md) {
height: 256px;
}
}

.h-md-350 {
@include media-breakpoint-up(md) {
height: 350px;
}
}

19 changes: 0 additions & 19 deletions app/assets/style/utilities/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,4 @@

.mb-42 {
margin-bottom: 42px;
}

/* rwd */
.pb-md-52 {
@include media-breakpoint-up(md) {
padding-bottom: 52px;
}
}

.pt-md-80 {
@include media-breakpoint-up(md) {
padding-top: 80px;
}
}

.mb-md-42 {
@include media-breakpoint-up(md) {
margin-bottom: 42px;
}
}
14 changes: 0 additions & 14 deletions app/assets/style/utilities/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@
}
}

.vh-100-minus-header {
height: calc(100vh - 60px);
@include media-breakpoint-up(md) {
height: calc(100vh - 82px);
}
}

.vh-100-minus-header-navbar {
height: calc(100vh - 115px);
@include media-breakpoint-up(md) {
height: calc(100vh - 135px);
}
}

/* color */
.bg-primary-dark{
background-color: #190014CC;
Expand Down
2 changes: 1 addition & 1 deletion app/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
aria-controls="cart-offcanvas"
>
<span
class="material-icons | shopping-cart | text-black align-middle"
class="material-icons | notification-circle | text-black align-middle"
>
confirmation_number
</span>
Expand Down

0 comments on commit 5f292b6

Please sign in to comment.