Skip to content

Commit

Permalink
fix: fix scss file indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoyadmoon committed May 4, 2022
1 parent af43a4e commit 176bc6f
Show file tree
Hide file tree
Showing 39 changed files with 1,251 additions and 1,251 deletions.
66 changes: 33 additions & 33 deletions packages/core/src/styles/Avatar.scss
Expand Up @@ -4,48 +4,48 @@
// Component Block
// -------------------------------------
.#{$prefix}-avatar {
width: 2.2rem;
height: 2.2rem;
overflow: hidden;
margin: .2rem .45rem .2rem .25rem;
background-color: $c-gray;
flex-shrink: 0;
width: 2.2rem;
height: 2.2rem;
overflow: hidden;
margin: .2rem .45rem .2rem .25rem;
background-color: $c-gray;
flex-shrink: 0;

// ----------------------
// <Avatar> variants
// ----------------------
&--square {
border-radius: 0;
}
// ----------------------
// <Avatar> variants
// ----------------------
&--square {
border-radius: 0;
}

&--rounded {
border-radius: 6px;
}
&--rounded {
border-radius: 6px;
}

&--circle {
border-radius: 50%;
}
&--circle {
border-radius: 50%;
}

// ----------------------
// Inner image
// ----------------------
& > img {
width: 100%;
height: 100%;
text-align: center;
object-fit: cover;
}
// ----------------------
// Inner image
// ----------------------
& > img {
width: 100%;
height: 100%;
text-align: center;
object-fit: cover;
}
}

// Override the default left margin on <ListRow>
.#{$prefix}-list-row > .#{$prefix}-avatar {
&:first-child {
margin-left: 0;
}
&:first-child {
margin-left: 0;
}
}

.#{$prefix}-list-row__body > .#{$prefix}-avatar {
&:first-child {
margin-left: 0;
}
&:first-child {
margin-left: 0;
}
}
184 changes: 92 additions & 92 deletions packages/core/src/styles/Button.scss
@@ -1,138 +1,138 @@
@import "./mixins";

@mixin solid-button($color) {
background-color: $color;
background-color: $color;

&:hover,
&:focus {
background-color: lighten($color, 7%);
}
&:hover,
&:focus {
background-color: lighten($color, 7%);
}

&:active {
background-color: darken($color, 5%);
}
&:active {
background-color: darken($color, 5%);
}

.#{$prefix}-tag > span {
color: $color;
}
.#{$prefix}-tag > span {
color: $color;
}
}

.#{$prefix}-button {
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;

// ----------------------
// <Button> states
// ----------------------
&:hover,
&:focus {
background-color: $c-comp-bg-hover;
}

&:active {
background-color: $c-comp-bg-active;
}

// ----------------------
// <Button> variants
// ----------------------
&--blue {
color: $c-blue;
}

&--red {
color: $c-red;
}

&--white {
color: $c-white;
}
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;

// ----------------------
// <Button> states
// ----------------------
&:hover,
&:focus {
background-color: $c-comp-bg-hover;
}

&:active {
background-color: $c-comp-bg-active;
}

// ----------------------
// <Button> variants
// ----------------------
&--blue {
color: $c-blue;
}

&--red {
color: $c-red;
}

&--white {
color: $c-white;
}

&--black {
color: $c-black;
}
&--black {
color: $c-black;
}

&--primary {
font-weight: $font-weight-bold;
}
&--primary {
font-weight: $font-weight-bold;
}
}

// ----------------------
// Solid <Button>
// ----------------------
.#{$prefix}-button--solid {
color: $c-white;
border-radius: rem($button-border-radius);
box-shadow: inset 0 0 1px $c-black;

// ----------------------
// Color variants
// ----------------------
&.#{$prefix}-button--blue {
@include solid-button($c-blue);
}
color: $c-white;
border-radius: rem($button-border-radius);
box-shadow: inset 0 0 1px $c-black;

&.#{$prefix}-button--red {
@include solid-button($c-red);
}
// ----------------------
// Color variants
// ----------------------
&.#{$prefix}-button--blue {
@include solid-button($c-blue);
}

&.#{$prefix}-button--white {
background-color: $c-white;
color: $c-black;
&.#{$prefix}-button--red {
@include solid-button($c-red);
}

&:hover,
&:focus {
background-color: $c-comp-bg-hover;
}
&.#{$prefix}-button--white {
background-color: $c-white;
color: $c-black;

&:active {
background-color: $c-comp-bg-active;
}
&:hover,
&:focus {
background-color: $c-comp-bg-hover;
}

&.#{$prefix}-button--black {
background-color: $c-black;
&:active {
background-color: $c-comp-bg-active;
}
}

&:hover,
&:focus {
background-color: lighten($c-black, 20%);
}
&.#{$prefix}-button--black {
background-color: $c-black;

&:active {
background-color: darken($c-black, 10%);
}
&:hover,
&:focus {
background-color: lighten($c-black, 20%);
}

.#{$prefix}-tag > span {
color: $c-black;
}
&:active {
background-color: darken($c-black, 10%);
}

.#{$prefix}-tag > span {
color: $c-black;
}
}
}

// ----------------------
// Icon-only <Button>
// ----------------------
.#{$prefix}-button--icon-only {
color: inherit;
color: inherit;
}

.#{$prefix}-button--tinted {
.#{$prefix}-icon {
opacity: .5;
}
.#{$prefix}-icon {
opacity: .5;
}
}

// ----------------------
// Custom <Button> tag
// ----------------------
button.#{$prefix}-button {
background: transparent;
border: 0;
outline: 0;
appearance: none;
user-select: none;
background: transparent;
border: 0;
outline: 0;
appearance: none;
user-select: none;
}

a.#{$prefix}-button {
text-decoration: none;
text-decoration: none;
}
52 changes: 26 additions & 26 deletions packages/core/src/styles/Checkbox.scss
@@ -1,34 +1,34 @@
@import "./mixins";

.#{$prefix}-checkbox {
&__icon-wrapper {
position: relative;
flex: 0 0 auto;
}
&__icon-wrapper {
position: relative;
flex: 0 0 auto;
}

&__input {
position: absolute;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
z-index: 2;
cursor: pointer;
}
&__input {
position: absolute;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
z-index: 2;
cursor: pointer;
}

&__button {
position: relative;
z-index: 1;
background: url('../icons/svg/radio-empty.svg');
}
&__button {
position: relative;
z-index: 1;
background: url('../icons/svg/radio-empty.svg');
}

&__input:checked + &__button,
&__input:checked + .#{$prefix}-iconlayout > &__button {
background: url('../icons/svg/radio-selected.svg');
}
&__input:checked + &__button,
&__input:checked + .#{$prefix}-iconlayout > &__button {
background: url('../icons/svg/radio-selected.svg');
}

&__input:indeterminate + &__button,
&__input:indeterminate + .#{$prefix}-iconlayout > &__button {
background: url('../icons/svg/radio-half.svg');
}
&__input:indeterminate + &__button,
&__input:indeterminate + .#{$prefix}-iconlayout > &__button {
background: url('../icons/svg/radio-half.svg');
}
}
10 changes: 5 additions & 5 deletions packages/core/src/styles/Closable.scss
@@ -1,9 +1,9 @@
@import "./mixins";

.#{$prefix}-closable {
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
}

0 comments on commit 176bc6f

Please sign in to comment.