style.css 2.8 KB

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