decred.org/dcrdex@v1.0.3/client/webserver/site/src/css/main.scss (about)

     1  @import "~bootstrap/scss/mixins";
     2  @import "mixins";
     3  
     4  /* elements */
     5  html {
     6    height: 100%;
     7  }
     8  
     9  body {
    10    position: fixed;
    11    top: 0;
    12    bottom: 0;
    13    left: 0;
    14    right: 0;
    15    display: flex;
    16    flex-direction: column;
    17    justify-content: flex-start;
    18    background-color: var(--body-bg);
    19    color: var(--text-color);
    20  }
    21  
    22  header#header {
    23    width: 100%;
    24    height: 70px;
    25    min-height: 70px;
    26    display: flex;
    27    justify-content: space-between;
    28    align-items: center;
    29    z-index: 100;
    30    background-color: var(--section-bg);
    31  
    32    a,
    33    a:visited,
    34    a:hover,
    35    .plainlink,
    36    .plainlink:visited,
    37    .plainlink:hover {
    38      text-decoration: none;
    39    }
    40  
    41    .hoverbright:hover {
    42      color: var(--subtle-link-hover);
    43    }
    44  }
    45  
    46  section {
    47    background-color: var(--section-bg);
    48    margin: 0.5rem 0;
    49    border: 1px solid var(--border-color);
    50    border-radius: 0.25rem;
    51  }
    52  
    53  div.main {
    54    display: flex;
    55    flex-grow: 1;
    56    min-height: 0;
    57    position: relative;
    58  }
    59  
    60  div.mainlinks {
    61    &>div,
    62    &>a {
    63      color: var(--text-color-secondary);
    64      padding: 0.5rem 0.75rem;
    65    }
    66  }
    67  
    68  @include media-breakpoint-up(md) {
    69    div.mainlinks>div,
    70    div.mainlinks>a {
    71      padding: 0.75rem 1rem;
    72    }
    73  }
    74  
    75  .spinner {
    76    animation: spin 2s infinite linear;
    77  
    78    &.fast {
    79      animation: spin 1s infinite linear;
    80    }
    81  }
    82  
    83  div.note-indicator {
    84    width: 6px;
    85    height: 6px;
    86    border-radius: 3px;
    87  
    88    &.good {
    89      background-color: var(--indicator-good);
    90    }
    91  
    92    &.bad {
    93      background-color: $danger;
    94    }
    95  
    96    &.warn {
    97      background-color: var(--text-warning);
    98    }
    99  }
   100  
   101  .z10 {
   102    z-index: 10;
   103  }
   104  
   105  span.brand::before {
   106    content: "Bison Wallet";
   107  }
   108  
   109  img.dex-logo {
   110    content: var(--dex-url);
   111  }
   112  
   113  img.logo-square {
   114    content: url("/img/bison-square_50.png");
   115  
   116    &.small {
   117      height: 25px;
   118      width: 25px;
   119    }
   120  }
   121  
   122  img.logo-full {
   123    content: url("/img/bison-full_97x50.png");
   124  
   125    &.small {
   126      height: 25px;
   127      width: 48.5px;
   128    }
   129  }
   130  
   131  body.dex-branding {
   132    img.logo-square,
   133    img.logo-full {
   134      width: 50px;
   135      height: 50px;
   136      content: url("/img/softened-icon.png");
   137  
   138      &.small {
   139        height: 25px;
   140        width: 25px;
   141      }
   142  
   143      &.micro-icon {
   144        height: 15px;
   145        width: 15px;
   146      }
   147    }
   148  
   149    &.dark img.logo-square,
   150    &.dark img.logo-full {
   151      content: url("/img/softened-icon-dark.png");
   152    }
   153  
   154    span.brand::before {
   155      content: "DCRDEX";
   156    }
   157  }
   158  
   159  #noteIndicator {
   160    position: absolute;
   161    top: 0;
   162    left: 20px;
   163    font-size: 16px;
   164    line-height: 1;
   165    font-family: $demi-sans;
   166    font-weight: bold;
   167    z-index: 2;
   168  
   169    &.good {
   170      color: var(--indicator-good);
   171    }
   172  
   173    &.bad {
   174      color: $danger;
   175    }
   176  
   177    &.warn {
   178      color: var(--text-warning);
   179    }
   180  }
   181  
   182  div.popup-notes {
   183  align-items: flex-end;
   184  border-radius: 4px;
   185  bottom: 0;
   186  display: flex;
   187  flex-direction: column;
   188  max-width: 750px;
   189  position: fixed;
   190  right: 5px;
   191  z-index: 1000;
   192  
   193    & > span {
   194      line-height: 1;
   195      max-width: 100%;
   196      display: inline-block;
   197      overflow: hidden;
   198      text-overflow: ellipsis;
   199      white-space: nowrap;
   200      background-color:var(--popup-notes-bg);
   201      color: var(--popup-notes-color);
   202      padding: 4px 10px;
   203      margin: 3px 0 0;
   204    }
   205  
   206    .note-indicator {
   207      margin-bottom: 2px;
   208    }
   209  }
   210  
   211  [data-unit] {
   212    color: var(--hint-color);
   213  }
   214  
   215  [data-unit-box] {
   216    cursor: default;
   217    position: relative;
   218    overflow: visible;
   219  
   220    & > div { // unit choice menu
   221      left: -2rem;
   222      z-index: 10;
   223      color: var(--text-color);
   224    }
   225  }
   226  
   227  #profileBox,
   228  #noteBox {
   229    position: fixed;
   230    display: flex;
   231    flex-direction: column;
   232    align-items: stretch;
   233    background-color: var(--section-bg);
   234  
   235    @include border;
   236  
   237    z-index: 100;
   238    min-width: 150px;
   239    line-height: 1.5;
   240    max-height: 90%;
   241  
   242    .icon {
   243      position: absolute;
   244      right: 15px;
   245      top: 8px;
   246    }
   247  
   248    .header {
   249      @include border-bottom;
   250  
   251      background-color: var(--section-bg);
   252  
   253      &>div {
   254        opacity: 0.5;
   255        cursor: pointer;
   256  
   257        &.active {
   258          opacity: 1;
   259        }
   260      }
   261    }
   262  
   263    &:not(.authed) .authed-only {
   264      display: none !important;
   265    }
   266  }
   267  
   268  #noteBox {
   269    width: 425px;
   270  
   271    div.note.firstview {
   272      background-color: var(--tertiary-bg);
   273    }
   274  
   275    div.note:not(:last-child) {
   276      @include border-bottom;
   277    }
   278  }
   279  
   280  #profileBox {
   281    min-width: 250px;
   282  }
   283  
   284  #loader {
   285    background-color: var(--body-bg-lower-opacity);
   286  }
   287  
   288  #requiredActions {
   289    position: absolute;
   290    bottom: 0;
   291    left: 0;
   292    z-index: 98;
   293  
   294    & > div {
   295      background-color: var(--body-bg);
   296      border: 3px solid var(--border-color);
   297    }
   298  }
   299  
   300  @include media-breakpoint-up(sm) {
   301    section {
   302      margin: 0.5rem;
   303    }
   304  }
   305  
   306  @include media-breakpoint-up(lg) {
   307    section,
   308    .w-lg-auto {
   309      width: auto;
   310    }
   311  }