main.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. $menu-item-color: hsl(0, 0%, 100%);
  2. $menu-item-hover-color: hsl(0, 0%, 0%);
  3. $menu-item-hover-background-color: hsl(0, 0%, 96%);
  4. $menu-label-color: hsl(0, 0%, 96%);
  5. @import "bulma/bulma.sass";
  6. @media (max-width: $desktop) {
  7. .hide-sm {
  8. display: none;
  9. }
  10. div#main-view {
  11. min-height: initial;
  12. }
  13. a.button-scale {
  14. width: initial !important;
  15. }
  16. }
  17. @media (min-width: $tablet) {
  18. nav {
  19. position: fixed !important;
  20. top: 0;
  21. width: 100%;
  22. }
  23. body {
  24. padding-top: $navbar-height;
  25. }
  26. aside#project-menu {
  27. position: fixed;
  28. width: inherit;
  29. top: $navbar-height + $column-gap;
  30. padding-right: $column-gap * 3;
  31. }
  32. }
  33. aside#project-menu {
  34. user-select: none;
  35. }
  36. @media (max-width: $tablet) {
  37. div#ci-menu {
  38. padding-right: 1.5rem;
  39. }
  40. }
  41. div#main-contents {
  42. padding-left: 2rem;
  43. padding-right: 2rem;
  44. }
  45. div#main-view {
  46. margin-top: 0;
  47. min-height: calc(100vh - #{$navbar-height});
  48. }
  49. div#ci-view {
  50. padding-bottom: 20rem;
  51. }
  52. div#ci-menu {
  53. background-color: hsl(0, 0%, 15%);
  54. box-shadow: -3px 0 10px 2px black;
  55. padding-left: 1.5rem;
  56. }
  57. nav {
  58. box-shadow: 0 -3px 10px 3px black;
  59. user-select: none;
  60. }
  61. hr.content-divider {
  62. background-color: hsl(0, 0%, 80%);
  63. margin-top: 0.1rem;
  64. height: 1px;
  65. }
  66. table td.min-size {
  67. width: 1%;
  68. white-space: nowrap;
  69. }
  70. div.artifact-item {
  71. $artifact-item-radius: 2px;
  72. margin-bottom: 0.75rem;
  73. & > div.artifact-details {
  74. @extend .columns, .is-mobile;
  75. background-color: hsl(0, 0%, 85%);
  76. user-select: none;
  77. align-items: center;
  78. margin-top: 0;
  79. cursor: pointer;
  80. & > div.artifact-id {
  81. @extend .column, .is-narrow, .has-text-white-ter;
  82. background-color: hsl(204, 86%, 53%);
  83. border-top-left-radius: $artifact-item-radius;
  84. border-bottom-left-radius: $artifact-item-radius;
  85. }
  86. & > div.artifact-info {
  87. @extend .column;
  88. padding: 0;
  89. padding-left: 1rem;
  90. padding-right: 1rem;
  91. & > div.artifact-info-content {
  92. @extend .columns, .is-mobile;
  93. & > p {
  94. @extend .column, .is-size-5;
  95. }
  96. & > div.dropdown-button {
  97. @extend .column, .is-narrow;
  98. }
  99. }
  100. }
  101. &:hover {
  102. background-color: hsl(0, 0%, 88%);
  103. & > div.artifact-id {
  104. background-color: hsl(204, 86%, 58%);
  105. }
  106. }
  107. }
  108. & > div.artifact-contents {
  109. @extend .columns;
  110. background-color: hsl(0, 0%, 90%);
  111. border-bottom-left-radius: $artifact-item-radius;
  112. border-bottom-right-radius: $artifact-item-radius;
  113. margin-bottom: 0 !important;
  114. & > div > h2 {
  115. @extend .is-size-4;
  116. }
  117. &:not(.contents-visible) {
  118. display: none;
  119. }
  120. }
  121. }
  122. a.hash-button {
  123. @extend .button, .is-info, .is-outlined;
  124. font-family: "Lucida Console", Monaco, monospace;
  125. margin-right: 0.5rem;
  126. margin-left: 0;
  127. }