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

     1  label {
     2    margin-bottom: 0.25rem;
     3    cursor: pointer;
     4  }
     5  
     6  input[type=text],
     7  input[type=date],
     8  input[type=password],
     9  input[type=number],
    10  input[type=url],
    11  textarea {
    12    display: block;
    13    width: 100%;
    14    padding: 0.375rem 0.75rem;
    15    border: 1px solid var(--form-input-border);
    16    border-radius: 5px;
    17    background-color: var(--form-input-bg);
    18    color: var(--text-color);
    19  
    20    &:focus {
    21      border-color: var(--form-input-border-focus);
    22      outline: none;
    23    }
    24  
    25    &.border-danger {
    26      border-color: var(--text-danger);
    27    }
    28    
    29    &.border-success {
    30      border-color: var(--indicator-good);
    31    }
    32  
    33    &.thin {
    34      width: 4rem;
    35    }
    36  
    37    &.micro {
    38      font-size: 14px;
    39      padding: 0 0.25rem;
    40      width: 3rem;
    41  
    42      &.wide {
    43        width: 5rem;
    44      }
    45  
    46      &.thin {
    47        width: 2rem;
    48      }
    49    }
    50  }
    51  
    52  select {
    53    background-color: var(--form-input-bg) !important;
    54  }
    55  
    56  .form-select {
    57    color: var(--text-color);
    58    background-color: var(--form-input-bg);
    59    border: 1px solid var(--form-input-border);
    60    border-radius: 3px;
    61  
    62    &:focus {
    63      border-color: var(--form-input-border-focus);
    64    }
    65  }
    66  
    67  #regAssetForm {
    68    input[data-tmpl=tradingTierInput] {
    69      width: 3em;
    70    }
    71  
    72    .readygreen {
    73      color: #009931;
    74    }
    75  
    76    .setuporange {
    77      color: #b89400;
    78    }
    79  }
    80  
    81  #confirmRegForm {
    82    width: 425px;
    83  
    84    button.submit {
    85      width: auto;
    86      padding: 12px 30px;
    87      border-radius: 3px;
    88      opacity: 0.9;
    89  
    90      &:hover {
    91        opacity: 1;
    92      }
    93    }
    94  
    95    input.app-pass {
    96      display: inline-block;
    97      max-width: 250px;
    98    }
    99  
   100    div.reg-conf-msg {
   101      width: 100%;
   102    }
   103  
   104    div.borderright {
   105      border-right: 1px solid #777;
   106    }
   107  
   108    .mw50 {
   109      max-width: 50%;
   110    }
   111  }
   112  
   113  #newWalletForm {
   114    width: 425px;
   115  
   116    [data-tmpl=walletTypeTabs] {
   117      .wtab.selected {
   118        opacity: 1;
   119        cursor: default;
   120        background-color: var(--form-selected-tab-bg);
   121      }
   122  
   123      .wtab:not(.selected) {
   124        opacity: 0.8;
   125        cursor: pointer;
   126  
   127        &:hover {
   128          opacity: 1;
   129        }
   130      }
   131    }
   132  
   133    .one-bttn {
   134      display: inline-block;
   135      font-size: 22px;
   136      padding: 10px 25px;
   137      background-color: #0b5831;
   138      border-radius: 5px;
   139      animation: glow 1.5s infinite alternate;
   140    }
   141  
   142    .one-bttn:hover {
   143      background-color: #0c5f36;
   144    }
   145  
   146    @keyframes glow {
   147      from {
   148        box-shadow: 0 0 4px -3px #fff7;
   149        opacity: 0.95;
   150      }
   151  
   152      to {
   153        box-shadow: 0 0 4px 0 #fff7;
   154        opacity: 1;
   155      }
   156    }
   157  }
   158  
   159  .form-check-label {
   160    user-select: none;
   161  }
   162  
   163  #forms {
   164    @extend .stylish-overflow;
   165    @extend .flex-center;
   166  
   167    position: fixed;
   168    top: 0;
   169    bottom: 0;
   170    left: 0;
   171    right: 0;
   172    padding: 25px 0;
   173    background-color: var(--forms-bg);
   174    backdrop-filter: blur(5px);
   175    z-index: 101;
   176  
   177    & > form {
   178      @extend .flex-stretch-column;
   179  
   180      box-sizing: content-box;
   181      margin: auto;
   182      position: relative;
   183      padding-bottom: 1rem;
   184  
   185      & > div {
   186        padding: 1rem 1rem 0;
   187  
   188        &.form-closer-unbound,
   189        &.form-closer {
   190          @extend .flex-center;
   191          @extend .hoverbg;
   192  
   193          cursor: pointer;
   194          line-height: 1;
   195          font-size: 0.8rem;
   196          padding: 0.75rem;
   197          position: absolute;
   198          top: 0;
   199          right: 0;
   200          z-index: 1;
   201  
   202          span {
   203            opacity: 0.6;
   204  
   205            &:hover {
   206              opacity: 1;
   207            }
   208          }
   209        }
   210      }
   211  
   212      header {
   213        @extend .flex-center;
   214  
   215        padding: 1rem;
   216        line-height: 1;
   217        border-bottom: 1px solid var(--border-color);
   218        font-size: 1.6rem;
   219      }
   220    }
   221  }
   222  
   223  div[data-handler=init],
   224  div[data-handler=login],
   225  div[data-handler=register] {
   226   #forms {
   227    margin-top: 70px;
   228    z-index: 99;
   229   } 
   230  }
   231  
   232  #walletWait {
   233    .icons {
   234      width: 25px;
   235    }
   236  
   237    .ico-check {
   238      color: #05a35a99;
   239    }
   240  }
   241  
   242  #dexAddrForm {
   243    .known-exchange {
   244      @extend .flex-center;
   245  
   246      font-size: 17px;
   247      padding: 5px 0;
   248      width: 100%;
   249      border: 1px solid #555;
   250      margin-bottom: 10px;
   251      border-radius: 3px;
   252      cursor: pointer;
   253  
   254      &:hover,
   255      &.selected {
   256        background-color: #7772;
   257      }
   258    }
   259  }
   260  
   261  #loginForm,
   262  #authorizeAccountImportForm,
   263  #disableAccountForm,
   264  #discoverAcctForm {
   265    width: 275px;
   266  }
   267  
   268  #changeAppPWForm,
   269  #resetAppPWForm,
   270  #dexAddrForm,
   271  #verifyForm,
   272  #deleteArchivedRecordsForm {
   273    width: 325px;
   274  }
   275  
   276  #appPWForm {
   277    width: 350px;
   278  }
   279  
   280  #sendForm,
   281  #vSendForm,
   282  #exportSeedAuth,
   283  #cancelForm,
   284  #quickConfigForm,
   285  #toggleWalletStatusConfirm,
   286  #walletWait {
   287    width: 375px;
   288  }
   289  
   290  #confirmRegistrationForm,
   291  #regAssetForm,
   292  #reconfigForm,
   293  #authorizeSeedDisplay,
   294  #seedBackupForm,
   295  #votingForm,
   296  #gameCodeForm {
   297    width: 425px;
   298  }
   299  
   300  a[data-tmpl=walletCfgGuide] {
   301    color: inherit;
   302    text-decoration: none;
   303  }
   304  
   305  #deposit {
   306    #copyAlert {
   307      margin-left: 12px;
   308      position: absolute;
   309    }
   310  }
   311  
   312  .mini-slider {
   313    padding: 0.5rem 0;
   314    cursor: pointer;
   315    user-select: none;
   316  
   317    div[data-tmpl=color] {
   318      width: 100%;
   319      height: 0.2rem;
   320      background-color: #7777;
   321      position: relative;
   322      overflow: visible;
   323  
   324      
   325  
   326      & > div[data-tmpl=track] {
   327        position: absolute;
   328        left: 0.375rem; // keep the ball inside of the color
   329        right: 0.375rem;
   330        bottom: 0;
   331        top: 0;
   332        overflow: visible;
   333  
   334        & > div[data-tmpl=ball] {
   335          width: 0.75rem;
   336          height: 0.75rem;
   337          top: 0.1rem;
   338          border-radius: 1rem;
   339          background-color: var(--text-grey);
   340          position: absolute;
   341          transform: translate(-50%, -50%);
   342          cursor: pointer;
   343        }
   344      }
   345    }
   346  
   347    &.small {
   348      div[data-tmpl=color] {
   349        height: 0.125rem;
   350  
   351        & > div[data-tmpl=track] {
   352          left: 0.25rem;
   353          right: 0.25rem;
   354    
   355          & > div[data-tmpl=ball] {
   356            width: 0.5rem;
   357            height: 0.5rem;
   358          }
   359        }
   360      }
   361    }
   362  }
   363  
   364  .slider-container,
   365  .order-opt {
   366    border: 1px solid #424242;
   367    border-radius: 3px;
   368    padding: 4px;
   369    margin-top: 8px;
   370  
   371    & > div.disabled {
   372      opacity: 0.8;
   373  
   374      [data-tmpl=sliderBox] {
   375        cursor: default;
   376  
   377        .slider .slider-handle {
   378          background-color: #777b;
   379        }
   380      }
   381    }
   382  
   383    div.opt-check {
   384      width: 15px;
   385      height: 15px;
   386      border-radius: 7.5px;
   387      border: 2px solid #424242;
   388      margin-top: 5px;
   389      cursor: pointer;
   390    }
   391  
   392    .xy-range-input {
   393      width: 35px;
   394      font-size: 14px;
   395      height: 16px;
   396    }
   397  
   398    [data-tmpl=sliderBox] {
   399      cursor: pointer;
   400  
   401      .slider {
   402        margin: 10px 10px 5px;
   403        height: 2px;
   404        background-color: grey;
   405        position: relative;
   406  
   407        .slider-handle {
   408          position: absolute;
   409          height: 20px;
   410          width: 14px;
   411          top: -9px;
   412          border-radius: 7px;
   413          background-color: #2cce9c;
   414          border: 2px solid #424242;
   415        }
   416      }
   417    }
   418  }
   419  
   420  div[data-tmpl=scoreTray] {
   421    background-color: var(--buy-color);
   422    height: 12px;
   423    border-radius: 100px;
   424    overflow: hidden;
   425  
   426    div[data-tmpl=scoreWarn] {
   427      background-color: var(--sell-color);
   428      position: absolute;
   429      top: 0;
   430      bottom: 0;
   431      left: 0;
   432    }
   433  }
   434  
   435  span[data-tmpl=scorePointer] {
   436    transform: translateX(-50%);
   437  
   438    span[data-tmpl=scoreData] {
   439      top: 0;
   440      bottom: 0;
   441  
   442      &.positive {
   443        right: calc(100% + 0.125rem);
   444      }
   445  
   446      &.negative {
   447        left: calc(100% + 0.125rem);
   448      }
   449    }
   450  }
   451  
   452  .penalty-marker {
   453    position: absolute;
   454    top: 0;
   455    bottom: 0;
   456    left: 10%;
   457    width: 2px;
   458    z-index: 2;
   459    background-color: black;
   460  }
   461  
   462  div[data-handler=init] {
   463    .quickconfig-asset-logo {
   464      width: 25px;
   465      height: 25px;
   466    }
   467  }
   468  
   469  .anitoggle {
   470    width: 1.5rem;
   471    height: 0.9rem;
   472    border-radius: 0.45rem;
   473    background-color: #777a;
   474    cursor: pointer;
   475  
   476    &.on {
   477      background-color: var(--indicator-good);
   478    }
   479  
   480    & > div {
   481      position: relative;
   482      top: 0.1rem;
   483      left: 0.1rem;
   484      width: 0.7rem;
   485      height: 0.7rem;
   486      border-radius: 0.35rem;
   487      transition: left 0.5s;
   488      background-color: var(--section-bg);
   489    }
   490  
   491    &.on > div {
   492      left: 0.7rem;
   493    }
   494  
   495    &.big {
   496      width: 35px;
   497      height: 20px;
   498      border-radius: 10px;
   499  
   500      & > div {
   501        top: 2px;
   502        left: 2px;
   503        width: 16px;
   504        height: 16px;
   505        border-radius: 12px;
   506      }
   507  
   508      &.on > div {
   509        left: 17px;
   510      }
   511    }
   512  }
   513  
   514  .selectable.selected {
   515    border: 2px solid green;
   516  }
   517  
   518  .dynamicopts {
   519    display: flex;
   520    align-items: stretch;
   521    justify-content: space-between;
   522    flex-wrap: wrap;
   523  
   524    & > div {
   525      min-height: 55px;
   526    }
   527  
   528    & > div:not(.repeatable, [data-tmpl=checkbox]) {
   529      width: 47%;
   530    }
   531  }
   532  
   533  .hoveropaque {
   534    opacity: 0.7;
   535  
   536    &:hover {
   537      opacity: 1;
   538    }
   539  }
   540  
   541  #placementsBody td[data-tmpl=error] {
   542    max-width: 200px;
   543  }
   544  
   545  body.dark {
   546    ::-webkit-calendar-picker-indicator {
   547      filter: invert(1);
   548    }
   549  
   550    #regAssetForm {
   551      div.reg-asset {
   552        .fader {
   553          background-image:
   554            linear-gradient(
   555              to bottom,
   556              #13202b00,
   557              #122739
   558              90%
   559            );
   560        }
   561  
   562        &:not(.nohover):hover {
   563          .fader {
   564            background-image:
   565              linear-gradient(
   566                to bottom,
   567                #202c3500,
   568                #202c35
   569                90%
   570              );
   571          }
   572        }
   573      }
   574    }
   575  }