KnotMeDaddy

css

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