baseline_mint.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /*
  2. This is my baseline for creating websites. All pages MUST inherit
  3. from these styles in order to be thrown into production.
  4. You can expand them at will to, for example, create a color scheme,
  5. but these minimal rules must remain intact.
  6. This library is provided under the conditions of the GNU GPL.
  7. For more information, please visit http://www.gnu.org/licences
  8. THEME: mint.
  9. */
  10. html {
  11. background: #DAE4DF;
  12. color: #475747;
  13. }
  14. /*
  15. * Ok, so font choice is a hard one.
  16. * It seems that Verdana is more readable at smaller sizes, but Trebuchet
  17. * seems a little more presentable at larger sizes.
  18. */
  19. body {
  20. font-family: Verdana, Arial, sans-serif;
  21. font-size: 12pt;
  22. }
  23. h1, h2, h3 {
  24. font-family: "Trebuchet MS", Verdana, sans-serif;
  25. font-weight: normal;
  26. }
  27. h1 {
  28. font-size: 2.5em;
  29. }
  30. h2 {
  31. font-size: 2em;
  32. }
  33. h3 {
  34. font-size: 1.7em;
  35. }
  36. p, li, blockquote {
  37. line-height: 1.5em;
  38. }
  39. a, a:visited {
  40. color: #3EAB75;
  41. text-decoration: none;
  42. }
  43. a:hover {
  44. color: #30C67C;
  45. text-decoration: underline;
  46. }
  47. blockquote {
  48. font-size: 1.3em;
  49. width: 400px;
  50. font-style: italic;
  51. padding: 5px;
  52. margin: 0 auto;
  53. }
  54. .rightfloat {
  55. float: right;
  56. margin: 10px;
  57. }
  58. .leftfloat {
  59. float: left;
  60. margin: 10px;
  61. }
  62. img {
  63. border: 5px solid #888;
  64. display: block;
  65. margin: 5px 10px;
  66. border-radius: 4px;
  67. }
  68. form label {
  69. display: block;
  70. margin: 5px 0;
  71. }
  72. form {
  73. margin: 10px;
  74. padding: 10px;
  75. background: #cecece;
  76. }
  77. /* All the text inputs in HTML */
  78. form input[type="text"], form input[type="password"],
  79. form input[type="email"], form input[type="search"], form textarea {
  80. border: 1px solid #000;
  81. padding: 5px;
  82. }
  83. form input[type="text"]:focus, form input[type="password"]:focus,
  84. form input[type="email"]:focus, form input[type="search"]:focus,
  85. form textarea:focus {
  86. box-shadow: 0 0 2px 3px #009b28;
  87. }
  88. form input[type="button"], form input[type="submit"],
  89. form button {
  90. padding: 7px;
  91. background: #aeaeae;
  92. margin: 5px;
  93. border: 1px solid #444;
  94. cursor: pointer;
  95. }
  96. form input[type="button"]:hover, form input[type="submit"]:hover,
  97. form button:hover {
  98. background: #bfbfbf;
  99. }
  100. form input[type="button"]:active, form input[type="submit"]:active,
  101. form button:active {
  102. background: #939393;
  103. }
  104. form input[type="button"].alt, form input[type="submit"].alt,
  105. form button.alt {
  106. padding: 7px;
  107. background: #c82626;
  108. margin: 5px;
  109. color: #FFF;
  110. border: 1px solid #9d0909;
  111. cursor: pointer;
  112. }
  113. form input[type="button"].alt:hover, form input[type="submit"].alt:hover,
  114. form button.alt:hover {
  115. background: #d94a4a;
  116. }
  117. form input[type="button"].alt:active, form input[type="submit"].alt:active,
  118. form button.alt:active {
  119. background: #9d0909;
  120. }
  121. form textarea {
  122. height: 300px;
  123. width: 95%;
  124. }
  125. /* tables need love too */
  126. table {
  127. border-spacing: 0;
  128. background: #FFF;
  129. border: 1px solid #888;
  130. }
  131. table thead {
  132. background: #555;
  133. color: #FFF;
  134. }
  135. table td, table th {
  136. border: 1px solid #888;
  137. }
  138. table tbody tr:nth-child(2n+1) {
  139. background: #CCC;
  140. }
  141. footer {
  142. background: #555;
  143. color: #FFF;
  144. text-align: center;
  145. font-size: 0.8em;
  146. margin: 0;
  147. padding: 20px;
  148. }
  149. /*Responsive design section*/
  150. @media screen and (min-width: 900px) {
  151. body {
  152. width: 900px;
  153. margin: 0 auto;
  154. }
  155. }
  156. @media screen and (max-width: 899px) {
  157. body {
  158. margin: 0 5%;
  159. font-size: 12pt;
  160. }
  161. form input:not([type="checkbox"],[type="radio"]), form textarea,
  162. form button {
  163. width: 93%;
  164. }
  165. blockquote {
  166. width: 80%;
  167. }
  168. .rightfloat, .leftfloat, img {
  169. float: none;
  170. display: block;
  171. margin: 0 auto;
  172. }
  173. img {
  174. max-width: 92%;
  175. }
  176. /* REQUIRES WORK! Has to be scrollable in mobile devices... */
  177. table {
  178. width: 95%;
  179. overflow: scroll;
  180. }
  181. table td, table th {
  182. min-width: 150px;
  183. }
  184. }