basics.scss 2.9 KB
Newer Older
Rob Colbert's avatar
Rob Colbert committed
1
@function hex-color($color) {
mgabdev's avatar
mgabdev committed
2
  @if type-of($color)=='color' {
Rob Colbert's avatar
Rob Colbert committed
3 4
    $color: str-slice(ie-hex-str($color), 4);
  }
mgabdev's avatar
mgabdev committed
5 6

  @return '%23'+unquote($color)
Rob Colbert's avatar
Rob Colbert committed
7 8 9 10 11 12 13 14 15 16 17 18
}

html {
  @include font-roboto();
  @include font-weight(normal);
  font-size: 62.5%;
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
mgabdev's avatar
mgabdev committed
19 20
  font-size: 16px;
  line-height: 19px;
Rob Colbert's avatar
Rob Colbert committed
21 22 23 24
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  font-feature-settings: "kern";
mgabdev's avatar
mgabdev committed
25
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
Rob Colbert's avatar
Rob Colbert committed
26
  -webkit-tap-highlight-color: transparent;
27
  color: white;
Rob Colbert's avatar
Rob Colbert committed
28
  background: $gab-background-base;
mgabdev's avatar
mgabdev committed
29

30
  &.theme-gabsocial-light {
31
    color: $gab-default-text-light;
32 33
    background: $gab-background-base-light;
  }
Rob Colbert's avatar
Rob Colbert committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

  &.system-font {
    // system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
    // -apple-system => Safari <11 specific
    // BlinkMacSystemFont => Chrome <56 on macOS specific
    // Segoe UI => Windows 7/8/10
    // Oxygen => KDE
    // Ubuntu => Unity/Ubuntu
    // Cantarell => GNOME
    // Fira Sans => Firefox OS
    // Droid Sans => Older Androids (<4.0)
    // Helvetica Neue => Older macOS <10.11
    // $font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", $font-sans-serif, sans-serif;
  }

  &.app-body {
    position: absolute;
    width: 100%;
    padding: 0;
    overflow: hidden;
    overflow-y: scroll;

    &.with-modals--active {
      overflow-y: hidden;
    }
  }

  &.lighter {
    background: $ui-base-color;
  }

  &.with-modals {
    overflow-x: hidden;
    overflow-y: scroll;

    &--active {
      overflow-y: hidden;
      margin-right: 13px;
    }
  }

  &.player {
    text-align: center;
  }

  &.embed {
    background: lighten($ui-base-color, 4%);
    margin: 0;
    padding-bottom: 0;

    .container {
      position: absolute;
      overflow: hidden;
mgabdev's avatar
mgabdev committed
88 89

      @include size(100%);
Rob Colbert's avatar
Rob Colbert committed
90 91 92 93 94 95 96
    }
  }

  &.admin {
    background: darken($ui-base-color, 4%);
    position: fixed;
    padding: 0;
mgabdev's avatar
mgabdev committed
97 98

    @include size(100%);
Rob Colbert's avatar
Rob Colbert committed
99 100 101 102 103 104 105 106
  }

  &.error {
    position: absolute;
    text-align: center;
    color: $darker-text-color;
    background: $ui-base-color;
    padding: 0;
mgabdev's avatar
mgabdev committed
107 108 109

    @include flex(center, center);
    @include size(100%);
Rob Colbert's avatar
Rob Colbert committed
110 111 112 113 114 115 116 117 118 119

    .dialog {
      vertical-align: middle;
      margin: 20px;

      &__illustration {
        img {
          display: block;
          max-width: 470px;
          margin-top: -120px;
mgabdev's avatar
mgabdev committed
120 121

          @include size(100%, auto);
Rob Colbert's avatar
Rob Colbert committed
122 123 124 125
        }
      }

      h1 {
mgabdev's avatar
mgabdev committed
126
        @include text-sizing(20px, 400, 28px);
Rob Colbert's avatar
Rob Colbert committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
      }
    }
  }
}

button {
  font-family: inherit;
  cursor: pointer;

  &:focus {
    outline: none;
  }
}

.app-holder {
  &,
mgabdev's avatar
mgabdev committed
143
  &>div {
Rob Colbert's avatar
Rob Colbert committed
144 145
    outline: 0 !important;

mgabdev's avatar
mgabdev committed
146 147 148 149
    @include flex(center, start);
    @include size(100%);
  }
}