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.

354 lines
6.2 KiB

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