style.css 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. body { margin: 0; padding: 0; overflow-x: hidden; font-family: "Roboto", sans-serif; }
  2. h1,h2,h3 { font-family: "Rubik Mono One", sans-serif; color: rgb(132, 132, 132); }
  3. h3 { margin-top: 2em; }
  4. header { position: fixed; text-align: center; top: 0; left: 0; right: 0; transition: background .5s; z-index: 50; }
  5. header ul { display: flex; margin: 0 auto; padding: .75em 0; list-style-type: none; max-width: 600px; }
  6. header li { flex: 1; display: inline-block; }
  7. header li a { color: white; text-decoration: none; }
  8. .body { display: inline-flex; margin: 0 auto; padding: 0 12%; width: 100vw; min-height: 100vh; box-sizing: border-box; background-repeat: no-repeat; background-position: center 82%; background-size: cover; }
  9. .body { text-align: center; justify-content: center; }
  10. .link-target { position: absolute; margin-top:-2.5em; padding-top: 2.5em; }
  11. .body.body-centered > .container { display: flex; text-align: center; align-items: center; width: 100%; }
  12. .body.body-centered > .container > * { width: 100%; max-width: 300px; margin: auto; text-align: center; }
  13. .body.body-fixed { overflow: auto; max-height: 1vh; }
  14. .body.body-fixed > .container { padding-top: 1.5rem; }
  15. .body.body-fixed > .container > div{ padding-top: 1.5rem; background: rgba(255, 255, 255, .3); display: block; }
  16. .joinform { background: rgba(0, 0, 0, 0.5); padding: 1em; border-radius: 20px; color: rgb(132, 132, 132); }
  17. .joinform .logo { margin: 0 auto; }
  18. .joinform h1 { margin-top: 0.5em; }
  19. .joinform button { margin-top: 1em; }
  20. .joinform label { display: block; margin-bottom: 1em; text-align: left; }
  21. .joinform * { width: 100%; }
  22. .container { width: 100%; font-size: 0; }
  23. .container > div { display: inline-block; vertical-align: top; font-size: 1rem; padding: 1em; box-sizing: border-box; text-align: left; }
  24. a { text-decoration: none; color: rgb(132, 132, 132); }
  25. ul.chancategory { padding: 0; list-style: none; }
  26. ul.chancategory > li { text-decoration: underline; }
  27. ul.chanlist { list-style: none; margin-bottom: 1em; }
  28. ul.serverconfig { list-style: none; }
  29. code { margin: 0.75em 0; padding: 0 0.75em; display: block; font-family: "Roboto Mono", monospace; }
  30. .body.body-fixed > .container > div.quizz-header { background: none; text-align: center; }
  31. .quizz-header .logo { height: 75px; vertical-align: -50%; }
  32. .body.quizz .container .period { display: flex; }
  33. .body.quizz .container .period .prev { flex: 1; text-align: left; }
  34. .body.quizz .container .period .current { flex: 1; text-align: center; }
  35. .body.quizz .container .period .next { flex: 1; text-align: right; }
  36. .body.quizz .score-table table { margin: auto; }
  37. .body.quizz .score-table table input { width: 100%; }
  38. .body.quizz .score-table .rank { text-align: right; padding-right: 15px; }
  39. .body.quizz .score-table .pseudo::before { content: ' '; display: inline-block; width: 0.8em; height: 0.8em; border-radius: 0.4em; vertical-align: -0.15em; margin-right: .5em; z-index: 2; position: relative; }
  40. .body.quizz .score-table .score { text-align: left; padding-left: 15px; }
  41. .body.quizz .score-table .pseudo { border-bottom: solid #d3d3d345 1px; font-family: "Roboto Mono", monospace; position: relative; }
  42. .body.quizz .score-table .rank-1 .pseudo::before { background-color: yellow; }
  43. .body.quizz .score-table .rank-2 .pseudo::before { background-color: grey; }
  44. .body.quizz .score-table .rank-3 .pseudo::before { background-color: brown; }
  45. .body.quizz .score-table .rank-1 .pseudo::after, .body.quizz .score-table .rank-2 .pseudo::after, .body.quizz .score-table .rank-3 .pseudo::after { position: absolute; left: 3px; top: 2px; width: 0.4em; height: 0.4em; transform: rotate(45deg); content: ' '; border: 3px solid blue; border-top: none; border-left: none; z-index: 1; }
  46. .block-1f1{ width: 100%; }
  47. .block-1f2 { width: 50%; }
  48. .block-1f3 { width: 33.333%; }
  49. .block-2f3 { width: 66.666%; }
  50. .block-1f4 { width: 25%; }
  51. .block-3f4 { width: 75%; }
  52. .block-1f5 { width: 20%; }
  53. .block-2f5 { width: 40%; }
  54. .block-3f5 { width: 60%; }
  55. .block-4f5 { width: 80%; }
  56. .block-1f6 { width: 16.666%; }
  57. .block-5f6 { width: 83.333%; }
  58. .block-0f { display: none !important; }
  59. @media screen and (max-width: 720px) {
  60. .body { margin: 0; padding: 0; }
  61. .block-1s1{ width: 100%; }
  62. .block-1s2 { width: 50%; }
  63. .block-1s3 { width: 33.333%; }
  64. .block-2s3 { width: 66.666%; }
  65. .block-1s4 { width: 25%; }
  66. .block-3s4 { width: 75%; }
  67. .block-1s5 { width: 20%; }
  68. .block-2s5 { width: 40%; }
  69. .block-3s5 { width: 60%; }
  70. .block-4s5 { width: 80%; }
  71. .block-1s6 { width: 16.666%; }
  72. .block-5s6 { width: 83.333%; }
  73. .block-0s { display: none !important; }
  74. }