common.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*
  2. Copyright (C) 2021 Echedey López Romero <elr@disroot.org>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. html {
  15. font-size: 16px;
  16. background-image: url("./../images/manchester-united-background.webp");
  17. background-size: auto;
  18. background-repeat: no-repeat;
  19. background-position: center;
  20. }
  21. * {
  22. margin: 0;
  23. box-sizing: border-box;
  24. border-radius: 0.5rem;
  25. }
  26. body {
  27. margin: 0 auto;
  28. width: 64rem;
  29. background-color: rgb(255, 140, 0, 0.75);
  30. padding: 2rem;
  31. }
  32. header {
  33. display: flex;
  34. flex-direction: row;
  35. width: 100%;
  36. margin-bottom: 2rem;
  37. background-color: rgb(217, 62, 65, 0.75);
  38. padding: 0.25rem;
  39. }
  40. header img {
  41. width: 8rem;
  42. margin-right: 0.25rem;
  43. }
  44. header h1 {
  45. flex: 1;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. margin: 0;
  50. text-align: center;
  51. background-image: url("./../images/manchester-united-panorama.webp");
  52. background-size: cover;
  53. background-position: center;
  54. color: white;
  55. font-size: 3rem;
  56. font-weight: 900;
  57. color: rgb(255, 226, 66);
  58. }
  59. nav {
  60. width: 100%;
  61. margin-bottom: 2rem;
  62. }
  63. nav > ul {
  64. display: flex;
  65. width: 100%;
  66. padding: 0.5rem;
  67. }
  68. nav li {
  69. list-style-type: none;
  70. display: inline-block;
  71. flex: 1;
  72. text-align: center;
  73. }
  74. nav li:not(:last-child) {
  75. margin-right: 0.5rem;
  76. }
  77. nav li:nth-child(odd) {
  78. background-color: rgb(217, 62, 65);
  79. }
  80. nav li:nth-child(odd) > a {
  81. color: rgb(255, 226, 66);
  82. border-width: 0.15rem;
  83. border-style: dashed;
  84. border-color: rgb(217, 62, 65);
  85. }
  86. nav li:nth-child(odd) > a:hover {
  87. text-decoration: underline;
  88. border-width: 0.15rem;
  89. border-style: dashed;
  90. border-color: rgb(255, 226, 66);
  91. }
  92. nav li:nth-child(even) {
  93. background-color: rgb(255, 226, 66);
  94. }
  95. nav li:nth-child(even) > a {
  96. color: rgb(217, 62, 65);
  97. border-width: 0.15rem;
  98. border-style: dashed;
  99. border-color: rgb(255, 226, 66);
  100. }
  101. nav li:nth-child(even) > a:hover{
  102. text-decoration: underline;
  103. border-width: 0.15rem;
  104. border-style: dashed;
  105. border-color: rgb(217, 62, 65);
  106. }
  107. nav a {
  108. text-decoration: none;
  109. display: block;
  110. padding: 0.75rem;
  111. margin: auto;
  112. font-weight: bold;
  113. }
  114. main {
  115. margin-bottom: 2rem;
  116. padding: 0.5rem;
  117. overflow: hidden;
  118. color: rgb(255, 226, 66);
  119. }
  120. main a {
  121. color: rgb(255, 226, 66);
  122. }
  123. footer {
  124. text-align: center;
  125. background-color: rgb(217, 62, 65);
  126. color: white;
  127. padding: 0.5rem;
  128. }
  129. footer a {
  130. color: rgb(255, 226, 66);
  131. }