You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
2.7 KiB

5 years ago
5 years ago
5 years ago
  1. /**
  2. * variables
  3. *
  4. */
  5. $text-color: #000;
  6. $link-color: #fefe5b;
  7. $background-color: #000084;
  8. $background-contrast-color: #bbbbbb;
  9. /**
  10. * default elements
  11. *
  12. */
  13. body {
  14. color: $text-color;
  15. background-color: $background-color;
  16. font-family: 'PxPlus IBM VGA8', sans-serif;
  17. font-style: normal;
  18. font-size: 1.2rem;
  19. }
  20. *:first-letter {
  21. color: $link-color;
  22. }
  23. a {
  24. color: $text-color;
  25. text-decoration: none;
  26. }
  27. /**
  28. * navigation
  29. *
  30. *
  31. */
  32. nav {
  33. ul {
  34. list-style: none;
  35. border: 3px solid #000;
  36. margin: 0;
  37. padding: 0.6em 0.8em;
  38. a {
  39. display: block;
  40. padding: 0.1em;
  41. margin: -0.1em;
  42. &:hover, &.current {
  43. color: #fff;
  44. background-color: $text-color;
  45. }
  46. }
  47. }
  48. }
  49. /**
  50. *
  51. *
  52. */
  53. main {
  54. max-width: 960px;
  55. margin: 2em auto 0;
  56. }
  57. /**
  58. * footer
  59. *
  60. *
  61. */
  62. footer {
  63. text-align: center;
  64. font-size: 3rem;
  65. width: 100%;
  66. background: #000;
  67. padding: 0.8em 0;
  68. i {
  69. color: #fff !important;
  70. }
  71. }
  72. /**
  73. * section
  74. *
  75. *
  76. */
  77. .section {
  78. padding: 4em;
  79. margin: 1em 0;
  80. line-height: 1.8;
  81. background-color: $background-contrast-color;
  82. }
  83. /**
  84. * icons
  85. *
  86. *
  87. */
  88. [class^="icon-tiny"], [class*=" icon-tiny"] {
  89. font-family: 'PxPlus IBM VGA8', sans-serif !important;
  90. font-style: normal;
  91. color: $link-color;
  92. }
  93. .icon-tiny-hamburger-open, .icon-tiny-hamburger-close {
  94. position: absolute;
  95. top: 3px;
  96. transition: transform .2s;
  97. margin: 3px;
  98. &:after {
  99. content: '\2bc5';
  100. }
  101. }
  102. .icon-tiny-hamburger-open {
  103. transform: rotate(0deg);
  104. }
  105. .icon-tiny-hamburger-close {
  106. transform: rotate(180deg);
  107. }
  108. /**
  109. * tiny-tiny-hamburger
  110. *
  111. *
  112. */
  113. .tiny-hamburger {
  114. &__inner {
  115. padding: 4px 8px 5px;
  116. }
  117. // modal with animation
  118. &__modal {
  119. height: auto;
  120. max-height: 0;
  121. overflow: hidden;
  122. transition: max-height 0.2s;
  123. }
  124. &__button {
  125. appearance: none;
  126. border: none;
  127. background: transparent;
  128. padding: 0.3em 0.5em;
  129. &:hover {
  130. cursor: pointer;
  131. outline: none;
  132. background-color: $background-contrast-color;
  133. }
  134. &:focus {
  135. outline: none;
  136. }
  137. }
  138. }
  139. .navbar {
  140. position: fixed;
  141. width: 100%;
  142. text-align: center;
  143. background-color: white;
  144. li {
  145. display: inline-block;
  146. margin: 0 0.3em;
  147. a {
  148. display: block;
  149. transition: all .1s ease-in-out;
  150. &:hover {
  151. transform: scale(1.3);
  152. }
  153. }
  154. &.current {
  155. a {
  156. transform: scale(1.3);
  157. }
  158. }
  159. }
  160. }