mirror of https://github.com/lxndrblz/anatole.git

alexanderdavide
20.47.2022 708d5c1fbc80428f01cb5c8a627fc157ec4ca561
style: move themed below base declarations; add whitespace
11 files modified
72 ■■■■■ changed files
assets/scss/modules/_config.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/partials/_base.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/partials/_hugo.scss 6 ●●●● patch | view | raw | blame | history
assets/scss/partials/components/_alert.scss 14 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_category.scss 13 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_footer.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/partials/components/_info.scss 3 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_navbarburger.scss 8 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_pagination.scss 7 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_post.scss 17 ●●●●● patch | view | raw | blame | history
assets/scss/partials/components/_wrapper.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/modules/_config.scss
@@ -20,6 +20,7 @@
  @include desktop {
    @content;
  }
  @include print {
    @content;
  }
assets/scss/partials/_base.scss
@@ -5,6 +5,7 @@
    font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
    font-size: 1.6rem;
  }
  @include rtl {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.5rem;
assets/scss/partials/_hugo.scss
@@ -1,5 +1,6 @@
a {
  text-decoration: none;
  @include themed() {
    color: t('primary');
  }
@@ -12,16 +13,19 @@
}
blockquote {
  padding: 0 1em;
  @include themed() {
    color: t('primary');
    @include ltr {
      border-left: t('border');
    }
    @include rtl {
      border-right: t('border');
    }
  }
  padding: 0 1em;
}
p {
assets/scss/partials/components/_alert.scss
@@ -1,18 +1,15 @@
.alert {
  @include themed() {
    border-color: t('alert');
  }
  padding: 1rem;
  border-style: solid;
  border-radius: 0.25rem;
  border-width: 2px;
  margin-top: 1rem;
  &__indicator {
    @include themed() {
      color: t('accent');
      background-color: t('alert');
    border-color: t('alert');
    }
  &__indicator {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.5rem;
@@ -21,5 +18,10 @@
    text-align: center;
    font-weight: 800;
    margin-right: 0.75rem;
    @include themed() {
      color: t('accent');
      background-color: t('alert');
    }
  }
}
assets/scss/partials/components/_category.scss
@@ -1,17 +1,20 @@
.category {
  @include themed() {
    border: t('border');
    background-color: t('primary-lighter');
    color: t('primary') !important;
  }
  padding: 4px 6px;
  border-radius: 3px;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  @include themed() {
    border: t('border');
    background-color: t('primary-lighter');
    color: t('primary') !important;
  }
  @include ltr {
    margin: 5px 8px 5px 0;
  }
  @include rtl {
    margin: 5px 0 5px 8px;
  }
assets/scss/partials/components/_footer.scss
@@ -23,6 +23,7 @@
  &__sidebar {
    display: none;
    @include desktop_and_print {
      display: inline-block;
    }
assets/scss/partials/components/_info.scss
@@ -3,9 +3,11 @@
  &__icon {
    opacity: 0.5;
    @include ltr {
      margin-right: 4px;
    }
    @include rtl {
      margin-left: 4px;
    }
@@ -16,6 +18,7 @@
      @include ltr {
        margin-right: 4px;
      }
      @include rtl {
        margin-left: 4px;
      }
assets/scss/partials/components/_navbarburger.scss
@@ -7,9 +7,6 @@
  margin-left: auto;
  &__line {
    @include themed() {
      background-color: t('primary');
    }
    display: block;
    height: 1px;
    left: calc(50% - 8px);
@@ -20,6 +17,10 @@
    transition-timing-function: ease-out;
    width: 16px;
    @include themed() {
      background-color: t('primary');
    }
    &:nth-child(1) {
      top: calc(50% - 6px);
    }
@@ -32,6 +33,7 @@
      top: calc(50% + 4px);
    }
  }
  @include desktop {
    display: none;
  }
assets/scss/partials/components/_pagination.scss
@@ -9,13 +9,14 @@
    padding: 0;
    height: 13px;
    &-item {
      @include themed() {
        color: t('primary');
      }
      margin: 0 2px 0 2px;
      display: inline;
      line-height: 1;
      text-decoration: none;
      @include themed() {
        color: t('primary');
      }
    }
  }
}
assets/scss/partials/components/_post.scss
@@ -1,8 +1,9 @@
.post {
  margin: 30px;
  @include themed() {
    background-color: t('accent');
  }
  margin: 30px;
  &__more {
    font-size: 1.4rem;
@@ -15,14 +16,15 @@
    display: block;
    &-wrapper {
      @include themed() {
        box-shadow: t('shadow');
      }
      border-radius: 0.5em;
      width: 100%;
      margin-bottom: 1em;
      overflow: hidden;
      transition: box-shadow 0.3s ease;
      @include themed() {
        box-shadow: t('shadow');
      }
    }
  }
@@ -121,6 +123,7 @@
      &.right {
        @include desktop {
          max-width: 50%;
          @include ltr {
            float: right;
            margin-left: 1.5em;
@@ -136,6 +139,7 @@
      &.left {
        @include desktop {
          max-width: 50%;
          @include ltr {
            float: left;
            margin-right: 1.5em;
@@ -151,11 +155,12 @@
  }
  &__footer {
    font-size: 1.2rem;
    padding: 12px 0;
    @include themed() {
      border-bottom: t('border');
    }
    font-size: 1.2rem;
    padding: 12px 0;
    &-date {
      @include ltr {
assets/scss/partials/components/_wrapper.scss
@@ -16,6 +16,7 @@
    @include desktop_and_print {
      width: $content-width;
    }
    @include widescreen {
      width: calc(#{$content-ratio} * 80%);
    }