style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @tailwind base;
  2. @tailwind components;
  3. body {
  4. display: grid;
  5. grid-template-columns: auto 1fr;
  6. grid-template-rows: auto auto 1fr;
  7. grid-template-areas: "header header" "nav nav" "main main";
  8. min-height: 100vh;
  9. }
  10. header {
  11. @apply bg-gray-800 text-gray-50 flex justify-between items-center select-none;
  12. grid-area: header;
  13. box-shadow: 0 -3px 10px 3px black;
  14. z-index: 1;
  15. }
  16. header>* {
  17. @apply p-3;
  18. }
  19. a.brand {
  20. @apply flex items-center;
  21. }
  22. a.brand:hover {
  23. @apply bg-gray-900;
  24. }
  25. a.brand span {
  26. @apply mx-2 font-sans text-sm text-gray-100;
  27. }
  28. a.brand img {
  29. @apply h-7 w-auto;
  30. }
  31. aside.menu {
  32. @apply bg-gray-700 text-white p-2 w-full select-none;
  33. grid-area: nav;
  34. box-shadow: -3px 0 10px 2px black;
  35. }
  36. main {
  37. @apply py-8 mx-5;
  38. grid-area: main;
  39. }
  40. .center {
  41. @apply mx-auto;
  42. }
  43. .menu .menu-title {
  44. @apply text-gray-200 uppercase text-xs font-sans py-2;
  45. }
  46. .menu .menu-list a {
  47. @apply py-1 px-2 rounded-sm text-white block;
  48. }
  49. .menu .menu-list a:hover {
  50. @apply text-gray-700 bg-white;
  51. }
  52. .menu .menu-list a.is-active {
  53. @apply bg-blue-500 text-white;
  54. }
  55. .content {
  56. @apply prose max-w-full;
  57. }
  58. .content.big {
  59. @apply prose-xl;
  60. }
  61. .artifacts-header {
  62. @apply text-4xl font-bold mt-20;
  63. }
  64. .artifacts-list {
  65. display: grid;
  66. grid-template-columns: auto;
  67. gap: 0.2rem 0.5rem;
  68. align-items: center;
  69. }
  70. .artifacts-list .artifact-link {
  71. @apply text-white bg-blue-600 rounded-sm p-1 px-2 no-underline font-normal mt-2;
  72. height: min-content;
  73. }
  74. .artifacts-list .artifact-link:hover {
  75. @apply bg-blue-700;
  76. }
  77. .artifacts-list .artifact-desc {
  78. @apply italic text-sm;
  79. }
  80. .artifact-item {
  81. @apply bg-gray-200 my-3;
  82. }
  83. .artifact-item .artifact-contents {
  84. @apply p-4 hidden;
  85. }
  86. .artifact-item .artifact-contents.contents-visible {
  87. @apply block;
  88. }
  89. .artifact-contents .changelog {
  90. @apply text-sm;
  91. }
  92. .artifact-contents .changelog li {
  93. @apply my-0;
  94. }
  95. .artifact-contents .changelog li::before {
  96. font-family: "fontello";
  97. content: '\f105';
  98. top: calc(0.875em - 0.73em);
  99. background-color: transparent;
  100. left: 0.5em;
  101. }
  102. .artifact-details {
  103. @apply flex items-center bg-gray-300 select-none;
  104. }
  105. .artifact-details .icon-downup {
  106. @apply ml-auto mr-2 text-gray-500;
  107. }
  108. .artifact-details:hover {
  109. @apply cursor-pointer bg-gray-200;
  110. }
  111. .artifact-details .artifact-id {
  112. @apply p-4 bg-blue-500 font-bold text-white text-lg;
  113. }
  114. .artifact-details:hover .artifact-id {
  115. @apply bg-blue-400;
  116. }
  117. .artifact-details .hash-button {
  118. @apply mx-4 py-1 px-3 border-blue-600 rounded border font-mono text-blue-600;
  119. }
  120. .artifact-details .hash-button:hover {
  121. @apply bg-blue-600 text-white;
  122. }
  123. .artifact-details .build-date-text {
  124. @apply text-gray-600 text-lg;
  125. }
  126. @screen md {
  127. body {
  128. grid-template-areas: "header header" "header header" "nav main";
  129. }
  130. aside.menu {
  131. @apply w-56;
  132. }
  133. .menu .menu-view {
  134. @apply sticky top-0;
  135. }
  136. }
  137. @screen xl {
  138. .artifacts-list {
  139. grid-template-columns: max-content auto;
  140. gap: 0.5rem 0.5rem;
  141. }
  142. .artifacts-list .artifact-link {
  143. @apply mt-0;
  144. }
  145. main {
  146. @apply mx-40;
  147. }
  148. aside.menu {
  149. @apply w-72;
  150. }
  151. }
  152. @tailwind utilities;