A site that displays information about books I've read for a class assignment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

347 lines
6.0 KiB

  1. :root {
  2. --main-bg-color: #568ea3;
  3. --main-card-bg-color: #E96400;
  4. --main-highlight-color: #a40e4c;
  5. }
  6. * {
  7. box-sizing: border-box;
  8. }
  9. html {
  10. height: 100%;
  11. scroll-behavior: smooth;
  12. }
  13. body {
  14. margin: 0;
  15. font-family: 'Roboto', sans-serif;
  16. height: 100%;
  17. background-color: var(--main-bg-color);
  18. }
  19. h1 {
  20. all: initial;
  21. }
  22. h1 {
  23. font-family: 'Roboto', sans-serif;
  24. color: white;
  25. padding-right: 8px;
  26. font-size: 23.5px;
  27. }
  28. a {
  29. color: white;
  30. }
  31. a:hover {
  32. color: var(--main-highlight-color);
  33. }
  34. .go-down {
  35. color: white;
  36. background-color: var(--main-card-bg-color);
  37. font-family: 'Roboto', sans-serif;
  38. font-size: 1.75em;
  39. cursor: pointer;
  40. border: 0;
  41. transition-duration: 0.3s;
  42. padding: 0.5em;
  43. border-radius: 0.5em;
  44. border: 0.1em solid var(--main-highlight-color);
  45. }
  46. .go-down:hover {
  47. transition: ease-in-out;
  48. -webkit-transition: ease-in-out;
  49. -moz-transition: ease-in-out;
  50. -o-transition: ease-in-out;
  51. background-color: var(--main-highlight-color);
  52. border: 0.1em solid var(--main-card-bg-color);
  53. color: black;
  54. }
  55. .go-down:active {
  56. outline: 0 !important;
  57. }
  58. .go-down:focus {
  59. outline: 0 !important;
  60. }
  61. .go-down-container {
  62. text-align: center;
  63. }
  64. .page-container {
  65. position: relative;
  66. min-height: 100vh;
  67. }
  68. .content-wrap {
  69. padding-bottom: 8.5rem;
  70. }
  71. .Navbar {
  72. background-color: var(--main-card-bg-color);
  73. display: flex;
  74. padding: 16px;
  75. font-family: 'Roboto', sans-serif;
  76. color: white;
  77. }
  78. .Navbar__Link {
  79. padding-right: 8px;
  80. font-size: 18.5px;
  81. }
  82. .Navbar__Link-brand {
  83. padding-right: 8px;
  84. font-size: 18.5px;
  85. }
  86. .Navbar__Link a,
  87. h1 {
  88. color: white;
  89. }
  90. .Navbar__Link a:link {
  91. text-decoration: none;
  92. }
  93. .Navbar__Link a:visited {
  94. text-decoration: none;
  95. }
  96. .Navbar__Link a:hover {
  97. text-decoration: underline;
  98. }
  99. .Navbar__Link a:active {
  100. text-decoration: underline;
  101. }
  102. .Navbar__Items {
  103. display: flex;
  104. }
  105. .Navbar__Items--right {
  106. margin-left: auto;
  107. }
  108. .Navbar__Link-toggle {
  109. display: none;
  110. }
  111. .banner {
  112. width: 100%;
  113. height: fit-content;
  114. padding: 10px;
  115. }
  116. .column {
  117. float: left;
  118. width: 33.33%;
  119. width: calc(100% / 3);
  120. padding: 15px;
  121. height: 200px;
  122. padding-bottom: 20px;
  123. }
  124. .row:after {
  125. content: "";
  126. display: table;
  127. clear: both;
  128. }
  129. .row {
  130. margin-left: 0px;
  131. margin-right: 0px;
  132. height: auto;
  133. padding-bottom: 20px;
  134. }
  135. .card {
  136. height: 100%;
  137. width: 100%;
  138. background-color: var(--main-card-bg-color);
  139. box-shadow: 5px 10px var(--main-highlight-color);
  140. cursor: pointer;
  141. position: relative;
  142. }
  143. .card:hover {
  144. box-shadow: 10px 20px var(--main-highlight-color);
  145. transition: box-shadow 0.25s ease-in-out;
  146. -webkit-transition: box-shadow 0.25s ease-in-out;
  147. -o-transition: box-shadow 0.25s ease-in-out;
  148. -moz-transition: box-shadow 0.25s ease-in-out;
  149. }
  150. .card-top-banner {
  151. height: 100%;
  152. width: 100%;
  153. }
  154. .top-banner-text {
  155. color: white;
  156. text-align: center;
  157. font-size: 3em;
  158. padding: 0;
  159. margin-bottom: 0.5em;
  160. margin-top: 0.5em;
  161. }
  162. .top-banner-text-medium {
  163. color: white;
  164. text-align: center;
  165. font-size: 2em;
  166. padding: 0;
  167. margin-bottom: 0em;
  168. margin-top: 0em;
  169. }
  170. .top-banner-text-smaller {
  171. color: white;
  172. text-align: center;
  173. font-size: 1.5em;
  174. padding: 0;
  175. margin-bottom: 25px;
  176. }
  177. .card-header {
  178. color: white;
  179. font-family: 'Roboto', sans-serif;
  180. text-align: center;
  181. font-size: 1.75em;
  182. padding: 10px;
  183. margin: 0;
  184. width: 100%;
  185. position: absolute;
  186. top: 50%;
  187. left: 50%;
  188. -ms-transform: translate(-50%, -50%);
  189. transform: translate(-50%, -50%);
  190. }
  191. .footer {
  192. background-color: var(--main-card-bg-color);
  193. color: white;
  194. text-align: center;
  195. position: absolute;
  196. bottom: 0;
  197. width: 100%;
  198. height: 5rem;
  199. }
  200. .footer-links {
  201. padding-top: 10px;
  202. padding-bottom: 10px;
  203. width: 100%;
  204. height: 100%;
  205. line-height: 1em;
  206. }
  207. .footer a {
  208. background-color: transparent;
  209. font-size: 1.1em;
  210. }
  211. .footer p {
  212. background-color: transparent;
  213. font-size: 1.1em;
  214. }
  215. .main-box {
  216. color: white;
  217. padding-top: 0;
  218. padding-bottom: 0;
  219. margin-left: 400px;
  220. margin-right: 400px;
  221. height: 600px;
  222. line-height: 1em;
  223. background-color: var(--main-card-bg-color);
  224. box-shadow: 10px 15px var(--main-highlight-color);
  225. position: relative;
  226. align-items: center;
  227. justify-content: center;
  228. }
  229. .main-box:hover {
  230. box-shadow: 20px 30px var(--main-highlight-color);
  231. transition: box-shadow 0.25s ease-in-out;
  232. -webkit-transition: box-shadow 0.25s ease-in-out;
  233. -o-transition: box-shadow 0.25s ease-in-out;
  234. -moz-transition: box-shadow 0.25s ease-in-out;
  235. }
  236. .main-box-text {
  237. padding: 10px;
  238. font-size: 1.5em;
  239. line-height: 1.25em;
  240. text-align: center;
  241. position: absolute;
  242. width: 100%;
  243. height: 100%;
  244. top: 50%;
  245. left: 50%;
  246. -ms-transform: translate(-50%, -50%);
  247. transform: translate(-50%, -50%);
  248. }
  249. @media only screen and (max-width: 1366px) {
  250. .main-box {
  251. margin-left: 200px;
  252. margin-right: 200px;
  253. height: 800px;
  254. }
  255. }
  256. @media only screen and (max-width: 1024px) {
  257. .Navbar__Items,
  258. .Navbar {
  259. flex-direction: column;
  260. }
  261. .Navbar__Items {
  262. display: none;
  263. }
  264. .Navbar__Items--right {
  265. margin-left: 0;
  266. }
  267. .Navbar__ToggleShow {
  268. display: flex;
  269. }
  270. .Navbar__Link-toggle {
  271. align-self: flex-end;
  272. display: initial;
  273. position: absolute;
  274. cursor: pointer;
  275. }
  276. .column {
  277. width: 100%;
  278. }
  279. .main-box {
  280. margin-left: 50px;
  281. margin-right: 50px;
  282. height: 800px;
  283. }
  284. }
  285. @media only screen and (max-width: 500px) {
  286. .column {
  287. height: 400px;
  288. }
  289. .main-box {
  290. margin-left: 20px;
  291. margin-right: 20px;
  292. height: 800px;
  293. }
  294. }
  295. @media only screen and (max-width: 400px) {
  296. .main-box {
  297. margin-left: 20px;
  298. margin-right: 20px;
  299. height: 1200px;
  300. }
  301. }