main.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. }
  14. @media (min-width: $tablet) {
  15. nav {
  16. position: fixed !important;
  17. top: 0;
  18. width: 100%;
  19. }
  20. body {
  21. padding-top: $navbar-height;
  22. }
  23. aside#project-menu {
  24. position: fixed;
  25. width: inherit;
  26. top: $navbar-height + $column-gap;
  27. padding-right: $column-gap * 3;
  28. user-select: none;
  29. }
  30. }
  31. @media (max-width: $tablet) {
  32. div#ci-menu {
  33. padding-right: 1.5rem;
  34. }
  35. }
  36. div#main-contents {
  37. padding-left: 2rem;
  38. padding-right: 2rem;
  39. }
  40. div#main-view {
  41. margin-top: 0;
  42. min-height: calc(100vh - #{$navbar-height});
  43. }
  44. div#ci-view {
  45. padding-bottom: 20rem;
  46. }
  47. div#ci-menu {
  48. background-color: hsl(0, 0%, 15%);
  49. box-shadow: -3px 0 10px 2px black;
  50. padding-left: 1.5rem;
  51. }
  52. nav {
  53. box-shadow: 0 -3px 10px 3px black;
  54. user-select: none;
  55. }
  56. hr.content-divider {
  57. background-color: hsl(0, 0%, 80%);
  58. margin-top: 0.1rem;
  59. height: 1px;
  60. }
  61. div.artifact-item {
  62. $artifact-item-radius: 2px;
  63. margin-bottom: 0.75rem;
  64. & > div.artifact-details {
  65. @extend .columns, .is-mobile;
  66. user-select: none;
  67. align-items: center;
  68. margin-top: 0;
  69. cursor: pointer;
  70. & > div.artifact-id {
  71. @extend .column, .is-narrow, .has-text-white-ter;
  72. background-color: hsl(204, 86%, 53%);
  73. border-top-left-radius: $artifact-item-radius;
  74. border-bottom-left-radius: $artifact-item-radius;
  75. }
  76. & > div.artifact-info {
  77. @extend .column;
  78. background-color: hsl(0, 0%, 85%);
  79. & > div.artifact-info-content {
  80. @extend .columns, .is-mobile;
  81. & > p {
  82. @extend .column, .is-size-5;
  83. }
  84. & > div.dropdown-button {
  85. @extend .column, .is-narrow;
  86. }
  87. }
  88. }
  89. &:hover {
  90. & > div.artifact-info {
  91. background-color: hsl(0, 0%, 88%);
  92. }
  93. & > div.artifact-id {
  94. background-color: hsl(204, 86%, 58%);
  95. }
  96. }
  97. }
  98. & > div.artifact-contents {
  99. @extend .columns;
  100. background-color: hsl(0, 0%, 90%);
  101. border-bottom-left-radius: $artifact-item-radius;
  102. border-bottom-right-radius: $artifact-item-radius;
  103. margin-bottom: 0 !important;
  104. & > div > h2 {
  105. @extend .is-size-4;
  106. }
  107. &:not(.contents-visible) {
  108. display: none;
  109. }
  110. }
  111. }