tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

shared_error_style.css (3456B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 :root {
      6  --moz-vertical-spacing: 10px;
      7  --moz-background-height: 32px;
      8  /* Default values just to indicate what color variables we use */
      9  --background-color: #f9f9fb;
     10  --text-color: #15141a;
     11  --primary-button-color: #312a65;
     12  --primary-button-text-color: #ffffff;
     13  --secondary-button-color: #e0e0e6;
     14  --secondary-button-text-color: #20123a;
     15  --header-color: var(--text-color);
     16 }
     17 
     18 html,
     19 body {
     20  margin: 0;
     21  padding: 0;
     22  height: 100%;
     23 }
     24 
     25 body {
     26  background-size: 64px var(--moz-background-height);
     27  background-repeat: repeat-x;
     28  background-color: var(--background-color);
     29  color: var(--text-color);
     30  padding: 0 40px;
     31  font-size: 14px;
     32  font-family: sharp-sans, sans-serif;
     33  -moz-text-size-adjust: none;
     34 }
     35 
     36 ul {
     37  /* Shove the list indicator so that its left aligned, but use outside so that text
     38    * doesn't don't wrap the text around it */
     39  padding: 0 1em;
     40  margin: 0;
     41  list-style-type: disc;
     42 }
     43 
     44 #errorShortDesc,
     45 li:not(:last-of-type) {
     46  /* Margins between the li and buttons below it won't be collapsed. Remove the bottom margin here. */
     47  margin: var(--moz-vertical-spacing) 0;
     48 }
     49 
     50 h1 {
     51  padding: 0;
     52  margin: var(--moz-vertical-spacing) 0;
     53  color: var(--header-color);
     54  font-weight: bold;
     55  font-size: 20px;
     56  line-height: 24px;
     57 }
     58 
     59 p {
     60  line-height: 20px;
     61  margin: var(--moz-vertical-spacing) 0;
     62 }
     63 
     64 button {
     65  display: block;
     66  height: 36px;
     67  box-sizing: content-box;
     68  width: 100%;
     69  border: 0;
     70  padding: 6px 0;
     71  font-family: inherit;
     72  background-color: transparent;
     73  color: var(--primary-button-text-color);
     74  font-size: 14px;
     75  font-weight: bold;
     76  margin: 0 auto;
     77  text-align: center;
     78  position: relative;
     79 }
     80 
     81 button::after {
     82  background-color: var(--primary-button-color);
     83  content: "";
     84  border-radius: 5px;
     85  display: block;
     86  position: absolute;
     87  top: 6px;
     88  left: 0;
     89  right: 0;
     90  bottom: 6px;
     91  z-index: -1;
     92 }
     93 
     94 hr {
     95  height: 1px;
     96  border: 0;
     97  background: rgba(21, 20, 26, 0.12);
     98  margin: 32px 0;
     99 }
    100 
    101 .horizontalLine {
    102  margin-left: -40px;
    103  margin-right: -40px;
    104 }
    105 
    106 .buttonSecondary {
    107  background-color: transparent;
    108  color: var(--secondary-button-text-color);
    109 }
    110 
    111 .buttonSecondary::after {
    112  background-color: var(--secondary-button-color);
    113 }
    114 
    115 #errorPageContainer {
    116  /* If the page is greater than 550px center the content.
    117    * This number should be kept in sync with the media query for tablets below */
    118  max-width: 550px;
    119  margin: 0 auto;
    120  min-height: 100%;
    121  align-content: center;
    122 }
    123 
    124 /* On large width devices, apply specific styles here. Often triggered by landscape mode or tablets */
    125 @media (min-width: 550px) {
    126  button,
    127  .buttonSecondary {
    128    margin: var(--moz-vertical-spacing) auto;
    129    min-width: 400px;
    130    width: auto;
    131  }
    132 
    133  /* If the device is tall as well, add some padding to make content feel a bit more centered */
    134  @media (min-height: 550px) {
    135    #errorPageContainer {
    136      padding-top: 64px;
    137      min-height: calc(100% - 64px);
    138    }
    139  }
    140 }
    141 
    142 #badCertTechnicalInfo {
    143  overflow: auto;
    144  white-space: pre-line;
    145 }
    146 
    147 #advancedPanelButtonContainer {
    148  display: flex;
    149  justify-content: center;
    150 }
    151 
    152 #imageContainer {
    153  display: flex;
    154  align-items: center;
    155  justify-content: center;
    156 }
    157 
    158 #errorLongContent {
    159  margin: 16px 0;
    160 }
    161 
    162 #errorTryAgain {
    163  margin-top: 16px;
    164 }