main.scss 2.4 KB

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