djledda.de main
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.
 
 

186 lines
3.2 KiB

  1. :root {
  2. --subject-spacing: 40px;
  3. }
  4. html,
  5. body {
  6. height: 100%;
  7. width: 100%;
  8. margin: 0;
  9. padding: 0;
  10. }
  11. body {
  12. background-color: #292929;
  13. font-family: "Roboto", serif;
  14. }
  15. .title_name {
  16. font-size: 50px;
  17. color: floralwhite;
  18. font-family: "Roboto Slab", "Times New Roman", Times, serif;
  19. text-align: center;
  20. }
  21. .title_name img {
  22. margin: 20px;
  23. height: 100px;
  24. width: auto;
  25. vertical-align: middle;
  26. }
  27. .spinMe {
  28. animation: spin 1s infinite linear;
  29. }
  30. .shakeMe {
  31. animation: shake 0.2s infinite linear;
  32. }
  33. @keyframes shake {
  34. 0% {
  35. transform: scale(1) translate(1px, 1px) rotate(0deg);
  36. }
  37. 25% {
  38. transform: scale(0.95) translate(-1px, -2px) rotate(-1deg);
  39. }
  40. 50% {
  41. transform: scale(0.9) translate(-3px, 0px) rotate(1deg);
  42. }
  43. 75% {
  44. transform: scale(0.95) translate(3px, 2px) rotate(0deg);
  45. }
  46. 100% {
  47. transform: scale(1) translate(-1px, 2px) rotate(-1deg);
  48. }
  49. }
  50. @keyframes spin {
  51. 0% {
  52. transform: rotate(0deg) scale(1);
  53. filter: hue-rotate(0deg) saturate(5);
  54. }
  55. 25% {
  56. transform: rotate(90deg) scale(2);
  57. }
  58. 50% {
  59. transform: rotate(180deg) scale(1);
  60. }
  61. 75% {
  62. transform: rotate(270deg) scale(2);
  63. }
  64. 100% {
  65. transform: rotate(360deg) scale(1);
  66. filter: hue-rotate(360deg) saturate(5);
  67. }
  68. }
  69. .supercontainer {
  70. padding-top: 3em;
  71. margin: auto;
  72. }
  73. .main {
  74. width: 50em;
  75. margin: 20px auto;
  76. text-align: center;
  77. }
  78. @media only screen and (max-width: 1024px) {
  79. .main {
  80. width: 35em;
  81. padding: 20px;
  82. }
  83. :root {
  84. --subject-spacing: 20px;
  85. }
  86. }
  87. @media only screen and (max-width: 768px) {
  88. .title_name img {
  89. margin: 10px;
  90. height: 60px;
  91. width: auto;
  92. }
  93. .title_name {
  94. font-size: 30px;
  95. }
  96. .main {
  97. width: 20em;
  98. padding: 20px;
  99. }
  100. }
  101. span.subjecttitle {
  102. height: 100%;
  103. font-family: "Roboto Slab", "Times New Roman", Times, serif;
  104. font-size: 20px;
  105. padding-right: 5px;
  106. }
  107. .subject:first-child {
  108. margin-top: 0;
  109. }
  110. .subject:last-child {
  111. margin-bottom: 0;
  112. }
  113. .subject {
  114. margin-top: var(--subject-spacing);
  115. margin-bottom: var(--subject-spacing);
  116. }
  117. .resourcelist {
  118. margin-top: 2px;
  119. background-color: white;
  120. border-style: solid;
  121. border-color: #292929;
  122. border-width: 1px;
  123. border-radius: 5px;
  124. a:first-of-type {
  125. .resource {
  126. padding: 15px 20px 10px 20px;
  127. border-radius: 5px 5px 0 0;
  128. }
  129. }
  130. a:last-of-type {
  131. .resource {
  132. padding: 10px 20px 15px 20px;
  133. border-radius: 0 0 5px 5px;
  134. }
  135. }
  136. a:only-of-type {
  137. .resource {
  138. border-radius: 5px;
  139. }
  140. }
  141. }
  142. .resource {
  143. position: relative;
  144. background-color: white;
  145. padding: 10px 20px 10px 20px;
  146. display: block;
  147. color: #333333;
  148. text-decorAtion: none;
  149. transition: background-color 200ms;
  150. }
  151. .resource:hover {
  152. background-color: #bde4ff;
  153. }
  154. .resource:active {
  155. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.50) inset;
  156. }
  157. a {
  158. color: #000;
  159. text-decoration: none;
  160. cursor: pointer;
  161. }