simple.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. html, body {
  2. margin: 0;
  3. padding: 0;
  4. font-family: 'Roboto', sans-serif;
  5. color: white;
  6. background-color: black;
  7. }
  8. canvas#background {
  9. position: absolute;
  10. top: 0;
  11. left: 0;
  12. z-index: 1;
  13. }
  14. section {
  15. margin: 15px;
  16. padding: 10px;
  17. }
  18. section h2 {
  19. text-align: center;
  20. opacity: 1;
  21. }
  22. section img {
  23. display: inline-block;
  24. margin-left: auto;
  25. margin-right: auto;
  26. }
  27. section ul {
  28. margin: 0;
  29. padding: 0;
  30. }
  31. article {
  32. padding: 8px;
  33. margin: 15px;
  34. /*border-radius: 4px;*/
  35. /*color: black;*/
  36. border: 4px solid rgba(255, 255, 255, 1);
  37. background-color: rgba(255, 255, 255, 0.1);
  38. display: flex;
  39. flex-flow: row wrap;
  40. }
  41. article h3 {
  42. text-align: center;
  43. margin: 6px;
  44. }
  45. article ul {
  46. margin-left: 20px;
  47. }
  48. article a {
  49. color: white;
  50. text-decoration: none;
  51. }
  52. article a:hover {
  53. text-decoration: underline;
  54. }
  55. header {
  56. flex: 0 0 100%;
  57. }
  58. header h1 {
  59. text-align: center;
  60. }
  61. nav {
  62. flex: 0 0 100%;
  63. }
  64. nav a {
  65. color: white;
  66. text-decoration: none;
  67. }
  68. nav a:hover {
  69. color: white;
  70. text-decoration: underline;
  71. }
  72. nav ul {
  73. list-style-type: none;
  74. margin: 0;
  75. padding: 0;
  76. text-align: center;
  77. }
  78. nav li {
  79. display: inline;
  80. }
  81. content {
  82. display: flex;
  83. flex-flow: row wrap;
  84. }
  85. aside {
  86. padding: 5px;
  87. flex: 1;
  88. }
  89. main {
  90. z-index: 10;
  91. flex: 6;
  92. display: flex;
  93. flex-flow: row wrap;
  94. }
  95. footer {
  96. padding: 5px;
  97. }
  98. footer p {
  99. text-align: center;
  100. }
  101. .project {
  102. position: relative;
  103. border: 1px solid white;
  104. width: 300px;
  105. min-height: 200px;
  106. text-align: center;
  107. }
  108. .project img {
  109. width: 45%;
  110. min-width: 300px;
  111. }
  112. .project .image-carousel {
  113. display: none;
  114. }
  115. .project:hover .image-carousel {
  116. display: block;
  117. }
  118. #starfield-container {
  119. margin: 5px;
  120. margin-left: auto;
  121. margin-right: auto;
  122. height: 400px;
  123. }
  124. #boxes-container {
  125. width: 300px;
  126. height: 200px;
  127. }
  128. @media all and (max-width: 768px) {
  129. content {
  130. flex-flow: column wrap;
  131. }
  132. aside {
  133. flex: 1;
  134. order: 2;
  135. }
  136. main {
  137. flex: 1;
  138. order: 1;
  139. }
  140. img {
  141. width: 100%;
  142. }
  143. }