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

     1  @use 'sass:math';
     2  @use 'variables' as *;
     3  @use 'mixins/outline' as *;
     4  @use 'components/daterangepicker';
     5  @use 'components/labels';
     6  @use 'components/tagsbar';
     7  @use 'components/button';
     8  
     9  @import './reset.scss';
    10  @import 'common.scss';
    11  @import 'login.scss';
    12  
    13  //global color variables
    14  @import './variables.css';
    15  
    16  html {
    17    width: 100vw;
    18  }
    19  
    20  body {
    21    font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
    22      Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    23  
    24    background-color: var(--ps-ui-background);
    25    color: var(--ps-neutral-2);
    26    -webkit-font-smoothing: antialiased;
    27  }
    28  
    29  .logo-main {
    30    background-image: url('../images/logo-v3-small.svg');
    31    background-size: 36px 36px;
    32    width: 36px;
    33    height: 36px;
    34    background-position: 0px 0px;
    35    background-repeat: no-repeat;
    36    display: inline-block;
    37    vertical-align: middle;
    38    margin-right: 8px;
    39  }
    40  
    41  .followed-by-btn {
    42    border-radius: 4px 0 0 4px;
    43  }
    44  
    45  .followed-by-btn + .btn {
    46    border-left: none;
    47    border-radius: 0 4px 4px 0;
    48  }
    49  
    50  .btn.btn-active {
    51    background-color: #999;
    52    border-color: #999;
    53    // font-weight: 500;
    54  }
    55  
    56  .hidden {
    57    visibility: hidden;
    58  }
    59  
    60  .svg-container,
    61  .canvas-container {
    62    //  border-radius: 4px;
    63    //  // box-shadow: 0 1px 2px rgba(0,0,0,0.33);
    64    //  background-color: #212124;
    65    //  border: 1px solid #141414;
    66  }
    67  
    68  .comparison-container {
    69    display: flex;
    70    flex-direction: row;
    71  }
    72  
    73  body {
    74    // this is the width of GitHub README page. so we're targeting this width so that it looks good for demo gif
    75    min-width: 838px;
    76  }
    77  
    78  // see previous comment about min-width
    79  @media only screen and (max-width: 1439px) {
    80    .navbar-links {
    81      display: none;
    82    }
    83  }
    84  @media only screen and (max-width: 1023px) {
    85    .logo::after {
    86      content: '';
    87    }
    88    .labels {
    89      margin-left: 5px;
    90    }
    91    .drp-button {
    92      max-width: 375px;
    93    }
    94  }
    95  
    96  #timeline-chart-single,
    97  #timeline-chart-double,
    98  #timeline-chart-left,
    99  #timeline-chart-right,
   100  #timeline-chart-diff,
   101  #timeline-chart-explore-page {
   102    cursor: crosshair;
   103  }
   104  
   105  .flot-tick-label.tickLabel {
   106    white-space: nowrap;
   107  }
   108  
   109  $pane-width: 6px;
   110  
   111  .diff-instructions-wrapper {
   112    display: flex;
   113    gap: 15px;
   114  }
   115  
   116  .diff-instructions-wrapper-side {
   117    flex: 1 1 0;
   118  }
   119  
   120  .left-instructions-wrapper {
   121    display: flex;
   122    justify-content: flex-start;
   123    padding-left: 16px;
   124  }
   125  
   126  .left-instructions-text {
   127    color: rgba(200, 102, 204, 1);
   128    font-size: 12px;
   129  }
   130  
   131  .right-instructions-wrapper {
   132    display: flex;
   133    justify-content: flex-end;
   134    padding-right: 16px;
   135  }
   136  
   137  .right-instructions-text {
   138    color: var(--ps-blue-primary);
   139    font-size: 12px;
   140  }
   141  
   142  .modal-close-btn {
   143    position: absolute;
   144    display: block;
   145    top: 20px;
   146    right: 20px;
   147    cursor: pointer;
   148    &:after {
   149      content: '✕';
   150      position: absolute;
   151      top: 0;
   152      right: 0;
   153      display: block;
   154      text-align: center;
   155      width: 20px;
   156      height: 20px;
   157      line-height: 20px;
   158    }
   159    // hit-area
   160    &:before {
   161      content: '';
   162      cursor: pointer;
   163      top: -20px;
   164      right: -20px;
   165      display: block;
   166      position: absolute;
   167  
   168      width: 60px;
   169      height: 60px;
   170      border-radius: 50%;
   171    }
   172  }
   173  
   174  .footer {
   175    display: block;
   176    // display: flex;
   177    padding: 20px 15px;
   178    text-align: center;
   179    .footer-space-filler {
   180      // flex-grow: 1;
   181    }
   182    a {
   183      color: var(--ps-neutral-2);
   184      text-decoration: none;
   185      &:hover span {
   186        text-decoration: underline;
   187      }
   188    }
   189  }
   190  
   191  html,
   192  body,
   193  #root {
   194    height: 100%;
   195    min-height: 100%;
   196  }
   197  
   198  // This was used for the sidebar setup
   199  // The trick here is to have 2 items
   200  // The sidebar and the app
   201  // And ONLY scroll the app
   202  // which should occuppy the rest of screen width
   203  // making it look like it's the body's toolbar!
   204  .app {
   205    height: 100vh;
   206    display: flex;
   207  }
   208  
   209  .pyroscope-app {
   210    overflow-y: auto;
   211    flex-grow: 1;
   212  
   213    // define the padding here instead of each individual component
   214    // to make it easier to maintain
   215    padding: 0 15px;
   216  }
   217  
   218  .pyroscope-app {
   219    //  display: flex;
   220    //  flex-direction: column;
   221  }
   222  
   223  .main-wrapper {
   224    flex: 1 0 auto;
   225    min-width: 890px;
   226  
   227    .singleView-timeline-title {
   228      margin-bottom: 15px;
   229    }
   230  }
   231  // stretch all main-wrapper children by default
   232  // so that we don't have to define it for every single page
   233  .main-wrapper > * {
   234    width: 100%;
   235  }
   236  
   237  .no-data-message {
   238    text-align: center;
   239    margin: 40px 0;
   240    display: none;
   241    &.visible {
   242      display: block;
   243    }
   244  }
   245  
   246  // used to generate gifs with no scrollbars
   247  .demo-mode {
   248    body {
   249      overflow: hidden;
   250    }
   251  
   252    .root {
   253      width: 100%;
   254      height: 100%;
   255      overflow-y: scroll;
   256      padding-right: 17px;
   257      margin-right: -17px;
   258      box-sizing: content-box;
   259    }
   260  }
   261  
   262  .navbar-space-filler {
   263    flex-grow: 1;
   264  }