main.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /*
  2. * main.css
  3. * CSS stylesheet for the Dragora GNU/Linux-Libre website
  4. * (https://www.dragora.org)
  5. *
  6. *
  7. * Copyright (C)
  8. * 2019-2021, Matias Fonzo and Michael Siegel
  9. * 2019 Chris F. A. Johnson
  10. * 2023 Matias Fonzo
  11. *
  12. * Licensed under the Apache License, Version 2.0 (the "License");
  13. * you may not use this file except in compliance with the License.
  14. * You may obtain a copy of the License at
  15. *
  16. * http://www.apache.org/licenses/LICENSE-2.0
  17. *
  18. * Unless required by applicable law or agreed to in writing, software
  19. * distributed under the License is distributed on an "AS IS" BASIS,
  20. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. * See the License for the specific language governing permissions and
  22. * limitations under the License.
  23. */
  24. body {
  25. font-family:Helvetica,"Helvetica Neue",DejaVuSans,FreeSans,"Nimbus Sans L",sans-serif;
  26. font-size:18px;
  27. background-color:#ffffff;
  28. color:#000000;
  29. }
  30. /** Headings **/
  31. h1 {
  32. margin:0;
  33. font-size:2.33rem;
  34. color:#005500;
  35. }
  36. h2 {
  37. margin-top:1.5rem;
  38. margin-bottom:1.33rem;
  39. font-size:1.67rem;
  40. color:#005500;
  41. }
  42. h3 {
  43. margin-top:1.33rem;
  44. margin-bottom:1.17rem;
  45. font-size:1.5rem;
  46. color:#005500;
  47. }
  48. h4 {
  49. margin-top:1.17rem;
  50. margin-bottom:1rem;
  51. font-size:1.17rem;
  52. color:#005500;
  53. }
  54. /** Paragraphs **/
  55. p {
  56. margin:1rem 0;
  57. text-align:justify;
  58. }
  59. /** Quote blocks **/
  60. blockquote {
  61. margin:1rem 2rem;
  62. }
  63. /** Lists **/
  64. dl, ol, ul {
  65. margin:1rem 0;
  66. padding-left:2rem;
  67. }
  68. dl dd {
  69. margin-left:1rem;
  70. }
  71. /* Add space between each list item. */
  72. li {
  73. margin:0.3em 0;
  74. }
  75. /* Switch vertical margins off for nested lists. */
  76. dl dl, ol ol, ul ul {
  77. margin:0;
  78. }
  79. /** Tables **/
  80. table {
  81. margin:1rem auto;
  82. margin-left:3rem;
  83. border:1px solid #999999;
  84. border-collapse:collapse;
  85. }
  86. table.alt_rows tbody tr:nth-child(odd) {
  87. background-color:#ffffcc;
  88. }
  89. th, td {
  90. border:1px solid #999999;
  91. padding:.33rem;
  92. text-align:justify;
  93. }
  94. th {
  95. background-color:#cccccc;
  96. }
  97. /** Misc **/
  98. hr {
  99. margin:.5rem auto;
  100. border: 1px inset;
  101. }
  102. /*** Inline elements ***/
  103. code {
  104. padding:0 .25rem;
  105. font-family:monospace;
  106. font-weight:lighter;
  107. background-color:#fffafa;
  108. }
  109. kbd {
  110. padding:0 .25rem;
  111. font-family:monospace;
  112. font-weight:normal;
  113. background-color:#fffafa;
  114. }
  115. /** Links **/
  116. a:link {
  117. color:#00008b;
  118. /* color:#002288; */
  119. }
  120. a:visited {
  121. color:#666666;
  122. }
  123. a:hover {
  124. color:#ff69b4;
  125. }
  126. a:active {
  127. color:#bc8f8f;
  128. }
  129. /** Classes **/
  130. .imgcenter {
  131. display: block;
  132. margin-left: auto;
  133. margin-right: auto;
  134. width: 18%;
  135. }
  136. .imgright {
  137. float: right;
  138. }