github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/sass/login.scss (about)

     1  @use 'sass:math';
     2  
     3  body.login-page {
     4    $c0: darken(#feb40e, 10%);
     5    $c1: darken(#3dc1d3, 10%);
     6    $c2: darken(#d12838, 30%);
     7    // $c2: darken(#3dc1d3, 10%);
     8    background: radial-gradient(
     9        farthest-side at 0% 0%,
    10        rgba(0, 0, 0, 0.3) 60%,
    11        rgba(0, 0, 0, 0.6)
    12      ),
    13      url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22160%22%20height%3D%2215%22%20viewBox%3D%220%200%20160%2015%22%20preserveAspectRatio%3D%22xMinYMin%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-opacity%3D%220.13%22%20stroke-miterlimit%3D%2210%22%20d%3D%22M0%200.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0-4.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0-9.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0%205.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0%2010.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14%22%2F%3E%3C%2Fsvg%3E),
    14      linear-gradient(180deg, $c1 0, $c2 100%) fixed;
    15    background-size: cover, auto, auto;
    16    display: flex;
    17    justify-content: center;
    18    align-items: center;
    19  }
    20  
    21  .bg-2 {
    22    position: absolute;
    23    left: 0;
    24    right: 0;
    25    top: 0;
    26    bottom: 0;
    27    background-image: radial-gradient(
    28      farthest-corner at 0% 0%,
    29      rgba(0, 0, 0, 0.5) 0%,
    30      rgba(0, 0, 0, 1)
    31    );
    32    transition: background-size 2s ease-out, opacity 2s ease-out;
    33    &.fade-out {
    34      opacity: 0;
    35      background-size: 150% 150%;
    36    }
    37  }
    38  
    39  .login-form {
    40    width: 450px;
    41    // height: 550px;
    42    padding: 0 0;
    43    background-color: rgba(0, 0, 0, 0.6);
    44    box-shadow: 0 3px 30px 0 rgba(0, 0, 0, 0.3);
    45    // background-color: darken(#3dc1d3, 48%);
    46    border-radius: 10px;
    47    margin: auto;
    48    text-align: center;
    49  
    50    position: absolute;
    51    left: 0;
    52    right: 0;
    53    padding-bottom: 50px;
    54    overflow: hidden; //adding overflow hidden
    55  
    56    .login-to-continue {
    57      margin: 20px 70px 30px;
    58      a {
    59        color: rgb(35, 133, 224);
    60      }
    61    }
    62  
    63    hr {
    64      opacity: 0.3;
    65      margin: 30px 70px 40px;
    66    }
    67  }
    68  
    69  .welcome-logo {
    70    background-image: url('../images/logo-v3-small.svg');
    71    $w: 100px;
    72    width: $w;
    73    height: $w;
    74    display: inline-block;
    75    background-size: $w $w;
    76    margin: math.div($w, 2) auto math.div($w, 4);
    77    background-repeat: no-repeat;
    78  }
    79  .welcome-title {
    80    margin-top: 0;
    81  }
    82  
    83  .sign-in-buttons {
    84    padding: 0 80px;
    85  }
    86  
    87  .sign-in-button {
    88    display: block;
    89    list-style: none;
    90    line-height: 1;
    91    padding: 10px 20px;
    92    height: 40px;
    93    border-radius: 4px;
    94    text-decoration: none;
    95    width: 100%;
    96    color: white;
    97    margin: 0 auto 15px;
    98    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.33);
    99    transition: background-color 0.2s ease-in;
   100    svg {
   101      display: inline-block;
   102      vertical-align: middle;
   103      width: 20px;
   104      height: 20px;
   105    }
   106    span {
   107      line-height: 1;
   108      display: inline-block;
   109      vertical-align: middle;
   110      width: 160px;
   111      text-align: left;
   112    }
   113  }
   114  
   115  .sign-in-button-github {
   116    background-color: #464646;
   117    &:hover {
   118      background-color: darken(#464646, 5%);
   119    }
   120  }
   121  
   122  .sign-in-button-gitlab {
   123    background-color: #fc6d26;
   124    &:hover {
   125      background-color: darken(#fc6d26, 5%);
   126    }
   127  }
   128  
   129  .sign-in-button-google {
   130    background-color: #e84d3c;
   131    &:hover {
   132      background-color: darken(#e84d3c, 5%);
   133    }
   134  }
   135  
   136  .sign-in-button-go-back {
   137    background-color: #333;
   138    span {
   139      width: 180px;
   140    }
   141    &:hover {
   142      background-color: darken(#333, 5%);
   143    }
   144  }
   145  
   146  .sign-in-button-signup {
   147    background-color: #333;
   148    span {
   149      width: 180px;
   150    }
   151    &:hover {
   152      background-color: darken(#333, 5%);
   153    }
   154  }
   155  
   156  .signin-form {
   157    padding: 0 3em 0 3em;
   158    & > div {
   159      text-align: start;
   160      padding-top: 0.5em;
   161      label {
   162        font-weight: bolder;
   163      }
   164    }
   165  
   166    button.sign-in-button,
   167    button.sign-up-button {
   168      background-color: rgb(61, 113, 217);
   169      color: white;
   170      padding-top: 0.5em;
   171      cursor: pointer;
   172  
   173      &:hover {
   174        background-color: darken(rgb(61, 113, 217), 5%);
   175      }
   176    }
   177  
   178    & > .error {
   179      color: white;
   180      background-color: #8a1722;
   181      font-weight: bold;
   182      padding: 0px 1em 0px 1em;
   183    }
   184  }
   185  
   186  .signup-form {
   187    padding: 0 3em 0 3em;
   188    & > div {
   189      text-align: start;
   190      padding-top: 0.5em;
   191      label {
   192        font-weight: bolder;
   193      }
   194    }
   195  
   196    button.sign-in-button,
   197    button.sign-up-button {
   198      background-color: rgb(61, 113, 217);
   199      color: white;
   200      padding-top: 0.5em;
   201  
   202      &:hover {
   203        background-color: darken(rgb(61, 113, 217), 5%);
   204      }
   205    }
   206  }
   207  
   208  .login-page-div {
   209    display: flex;
   210    flex-direction: row;
   211    align-items: center;
   212  
   213    padding: 0 3em 0 3em;
   214  
   215    & > div {
   216      flex: 2;
   217      align-content: center;
   218    }
   219  
   220    & > div:nth-child(2) {
   221      flex: 4;
   222    }
   223  
   224    hr {
   225      margin: 20px 0px 20px 0px;
   226      background-color: white;
   227      opacity: 1;
   228      box-shadow: none;
   229      border-bottom-style: none;
   230      border-top-style: 1px solid white;
   231    }
   232  }