Guest User

Untitled

a guest
Sep 8th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.26 KB | None | 0 0
  1. /* icons */
  2. @import url("https://kit.fontawesome.com/f90922f667.js");
  3. /* font */
  4. @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
  5.  
  6. /* Colour palette */
  7. :root {
  8.     --riverbed: #495464;
  9.     --frenchgrey: #838896;
  10.     --mercury: #e8e8e8;
  11.     --lightgrey: #f4f4f2;
  12.     --good: #75b200;
  13.     --darkgood: #406300;
  14.     --decent: #ddd75a;
  15.     --darkdecent: #7c7831;
  16.     --poor: #f8bc4c;
  17.     --darkpoor: #795b25;
  18.     --bad: #e56565;
  19.     --darkbad: #7a3535;
  20. }
  21.  
  22. html * {
  23.     font-family: Roboto, FontAwesome !important;
  24. }
  25.  
  26. h1 {
  27.     text-align: center;
  28. }
  29.  
  30. button {
  31.     box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  32.     border: none;
  33.     transition-duration: 350ms;
  34.     -webkit-transition-duration: 350ms;
  35.     background-color: var(--frenchgrey);
  36.     color: white;
  37.     cursor: pointer;
  38. }
  39.  
  40. /* Extend container to bottom of page */
  41. html,
  42. body {
  43.     height: 100%;
  44.     width: 100%;
  45.     margin: 0 0 0 0;
  46.     overflow: -moz-scrollbars-none;
  47.     -ms-overflow-style: none;
  48.     scroll-behavior: smooth;
  49.     background-image: linear-gradient(to left, var(--riverbed), var(--mercury) 25%, var(--mercury) 75%, var(--riverbed) 100%);
  50.     /* background-size: cover !important; */
  51.     background-attachment: scroll !important;
  52.     background-size: cover;
  53. }
  54.  
  55. a:link,
  56. a:visited,
  57. a:hover,
  58. a:active {
  59.     text-decoration: none;
  60. }
  61.  
  62. .input,
  63. select {
  64.     width: 100%;
  65.     padding: 12px 10px;
  66.     margin: 8px 0;
  67.     display: inline-block;
  68.     border: 1px solid var(--mercury);
  69.     border-radius: 4px;
  70.     box-sizing: border-box;
  71.     background-color: white;
  72. }
  73.  
  74. abbr[title] {
  75.     border-bottom: none !important;
  76.     cursor: inherit !important;
  77.     text-decoration: none !important;
  78. }
  79.  
  80. .scroll-button {
  81.     display: none;
  82.     position: fixed;
  83.     bottom: 30px;
  84.     right: 30px;
  85.     outline: none;
  86.     padding: 15px;
  87.     border-radius: 10px;
  88. }
  89.  
  90. .submitbutton {
  91.     width: 100%;
  92.     padding: 14px 20px;
  93.     margin: 8px 0;
  94.     border-radius: 4px;
  95. }
  96.  
  97. .submitbutton:hover {
  98.     background-color: var(--lightgrey);
  99.     color: var(--riverbed);
  100. }
  101.  
  102. .submitbutton:active {
  103.     color: white;
  104.     background-color: var(--riverbed);
  105. }
  106.  
  107. .note {
  108.     font-size: 12px;
  109.     padding: 5px;
  110.     margin: 3px 0px 3px 0px;
  111.     border-width: 6px;
  112.     border-left-style: solid;
  113. }
  114.  
  115. .good {
  116.     color: var(--good)
  117. }
  118.  
  119. .goodnote {
  120.     background-color: var(--good);
  121.     border-color: var(--darkgood);
  122. }
  123.  
  124. .decent {
  125.     color: var(--decent)
  126. }
  127.  
  128. .decentnote {
  129.     background-color: var(--decent);
  130.     border-color: var(--darkdecent);
  131. }
  132.  
  133. .poor {
  134.     color: var(--poor)
  135. }
  136.  
  137. .poornote {
  138.     background-color: var(--poor);
  139.     border-color: var(--darkpoor);
  140. }
  141.  
  142. .bad {
  143.     color: var(--bad)
  144. }
  145.  
  146. .badnote {
  147.     background-color: var(--bad);
  148.     border-color: var(--darkbad);
  149. }
  150.  
  151. .topnav {
  152.     background-color: var(--frenchgrey);
  153.     overflow: hidden;
  154. }
  155.  
  156. /* Hide scroll bar  */
  157. body::-webkit-scrollbar {
  158.     width: 0 !important
  159. }
  160.  
  161. .container {
  162.     display: flex;
  163.     flex-direction: column;
  164.     max-width: 650px;
  165.     padding: 10px;
  166.     margin: auto;
  167.     min-height: 100%;
  168.     bottom: 0px;
  169. }
  170.  
  171. .topnav a {
  172.     float: left;
  173.     display: block;
  174.     color: white;
  175.     text-align: center;
  176.     padding: 14px 16px;
  177.     text-decoration: none;
  178.     font-size: 17px;
  179.     transition-duration: 350ms;
  180.     -webkit-transition-duration: 350ms;
  181. }
  182.  
  183. .topnav a:hover,
  184. .scroll-button:hover {
  185.     background-color: var(--mercury);
  186.     color: var(--riverbed);
  187. }
  188.  
  189. .topnav a.active,
  190. .scroll-button:active {
  191.     background-color: var(--riverbed);
  192.     color: white;
  193. }
  194.  
  195. .topnav .icon {
  196.     display: none;
  197. }
  198.  
  199. .sticky {
  200.     position: fixed;
  201.     top: 0;
  202.     width: 100%;
  203. }
  204.  
  205. .sticky+.container {
  206.     padding-top: 60px;
  207. }
  208.  
  209. @media screen and (max-width: 600px) {
  210.     .topnav a:not(:first-child) {
  211.         display: none;
  212.     }
  213.  
  214.     .topnav a.icon {
  215.         float: right;
  216.         display: block;
  217.     }
  218. }
  219.  
  220. @media screen and (max-width: 600px) {
  221.     .topnav.responsive {
  222.         position: relative;
  223.     }
  224.  
  225.     .topnav.responsive a.icon {
  226.         position: absolute;
  227.         right: 0;
  228.         top: 0;
  229.     }
  230.  
  231.     .topnav.responsive a {
  232.         float: none;
  233.         display: block;
  234.         text-align: left;
  235.     }
  236. }
Advertisement
Add Comment
Please, Sign In to add comment