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