Advertisement
BlackDragon_B

layout

Jan 21st, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. colors {
  2. --white: #c8d6e5;
  3. --lightGray: #8395a7;
  4. --darkGray: #3e3e4f;
  5. --darkerGray: #373542;
  6. --black: #221111;
  7.  
  8. --darkRed: #8e3333;
  9. --red: #c0392b;
  10. --redWhite: #bb7777;
  11. --yellow: #dede6c;
  12. --green: #42f55d;
  13. --darkgreen: #1db527;
  14. }
  15.  
  16. * {
  17. display: block;
  18. }
  19.  
  20. body {
  21. background-color: black;
  22. }
  23.  
  24. header {
  25. position: relative;
  26.  
  27. /* content: "DragonShop"; */
  28. /* background: url(myLogo.nfp); */
  29. /* background-position: center; */
  30. /* Content and Background (Images) are mutually exclusive, with content taking precedence if both are present */
  31.  
  32. background-color: red;
  33.  
  34. width: 100%;
  35. padding: 1px;
  36.  
  37. color: white;
  38. text-align: center;
  39. text-transform: uppercase;
  40.  
  41. font-size: 2em; /* Either 1em or 2em, no other sizes are currently supported */
  42. }
  43.  
  44. aside {
  45. position: relative;
  46. right: 0;
  47.  
  48. /* Since `top` (and bottom) are omitted here, it will be positioned relative to the last positioned element,
  49. which is exactly where we want it to be.. */
  50.  
  51. width: 100%;
  52. height: 100rem; /* In Xenon CSS, rem doesn't stand for Root Em, it stands for Remaining space, so this is 100% of the remaining space */
  53.  
  54. text-align: left;
  55. padding: 1px;
  56.  
  57. background-color: transparent;
  58. color: redWhite;
  59. }
  60.  
  61. table {
  62. position: relative;
  63.  
  64. background-color: black;
  65.  
  66. width: calc(100% - 2px);
  67. height: calc(100rem - 4px); /* See note under aside height */
  68.  
  69. top: 1px;
  70. left: 1px;
  71. }
  72.  
  73. td {
  74. color: white;
  75. padding: 0 1px 0 0;
  76. }
  77.  
  78. .stock, .price {
  79. text-align: right;
  80. }
  81.  
  82. .stock {
  83. color: lightGray;
  84. width: 7px;
  85. }
  86.  
  87. .stock.low {
  88. color: yellow;
  89. }
  90.  
  91. .stock.critical {
  92. color: red;
  93. }
  94.  
  95. .name {
  96. flex: 1; /* tr elements implicitly have flex-box like behavior, it is the only element that (currently) supports this feature */
  97. }
  98.  
  99. .price-container, .price {
  100. text-align: right;
  101. width: 10px;
  102. }
  103.  
  104. .addy-full, .addy {
  105. color: lightGray;
  106. width: 15px;
  107. }
  108.  
  109. thead tr {
  110. margin-bottom: 1px;
  111. background-color: darkRed;
  112. }
  113.  
  114. tbody tr {
  115. line-height: 3px;
  116. background-color: darkGray;
  117. }
  118.  
  119. tr:nth-child(2n) {
  120. background-color: darkerGray;
  121. }
  122.  
  123. th {
  124. color: white;
  125. padding: 1px 1px 1px 0;
  126. }
  127.  
  128. details {
  129. position: absolute;
  130. left: 0;
  131. bottom: 0;
  132.  
  133. background-color: transparent;
  134. color: white;
  135.  
  136. text-align: right;
  137.  
  138. width: 100%;
  139. height: 1px;
  140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement