vitess.io/vitess@v0.16.2/web/vtadmin/src/components/Code.module.scss (about) 1 /** 2 * Copyright 2021 The Vitess Authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 .table { 17 margin: 8px 0; 18 } 19 20 .table tr { 21 border: none; 22 } 23 24 .table td { 25 border: none; 26 line-height: 1.6; 27 margin: 0; 28 } 29 30 .lineNumber { 31 box-sizing: border-box; 32 color: var(--textColorSecondary); 33 font-family: var(--fontFamilyMonospace); 34 font-size: theme('fontSize.base'); 35 line-height: 2.4rem; 36 min-width: 5rem; 37 padding: 0 1.2rem; 38 text-align: right; 39 user-select: none; 40 vertical-align: top; 41 white-space: nowrap; 42 width: 1%; 43 } 44 45 .lineNumber::before { 46 content: attr(data-line-number); 47 } 48 49 .code { 50 font-family: var(--fontFamilyMonospace); 51 font-size: theme('fontSize.base'); 52 line-height: 2.4rem; 53 padding: 0 1.2rem; 54 tab-size: 8; 55 white-space: pre; 56 }