logo

Grimgrains

[mirror] Plant-based cooking website <https://grimgrains.com/>

main.css (8140B)


  1. * { margin:0;padding:0;border:0;text-decoration:none;font-weight:inherit;font-style:inherit;color:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;list-style:none;border-collapse:collapse;border-spacing:0; -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}
  2. @font-face { font-family: 'alte_haas_grotesk_regular'; src: url('../media/fonts/alte_haas_grotesk_regular.ttf') format('truetype'); font-weight: normal; font-style: normal }
  3. @font-face { font-family: 'alte_haas_grotesk_bold'; src: url('../media/fonts/alte_haas_grotesk_bold.ttf') format('truetype'); font-weight: normal; font-style: normal }
  4. body { font-family: 'Helvetica Neue', Helvetica, Arial; margin: 0px;padding: 45px 30px;background: white; border-top:45px solid black; margin-top:-40px }
  5. hr { clear:both }
  6. ul { display: block }
  7. img { max-width: 100% }
  8. p { margin-bottom: 25px; font-size: 18px; line-height: 30px; max-width: 600px }
  9. p a { font-weight: bold; cursor: pointer; text-decoration: underline }
  10. p a:hover { text-decoration: none }
  11. p a:focus { text-decoration: dotted underline }
  12. h1,h2,h3,h4 { font-weight: normal; font-family: 'alte_haas_grotesk_bold'; margin-bottom: 30px }
  13. header a { cursor: pointer; transition: all 250ms; max-width: 800px; margin: 0px auto }
  14. header a:hover { opacity: 0.7 }
  15. header a:focus { opacity: 0.7 }
  16. header a img { max-width: 240px; display: block; margin:0px auto; margin-bottom:30px }
  17. nav { margin-bottom: 30px }
  18. nav ul { display: block;line-height: 40px; border-bottom: 2px solid black; overflow: hidden;min-height: 40px; max-width: 800px; margin: 0px auto }
  19. nav ul li { display: inline-block; margin-right:15px; margin-bottom: -2px; line-height: 40px; border-bottom: 5px solid transparent }
  20. nav ul li a { display: inline-block; font-family: 'alte_haas_grotesk_bold'; font-size:14px; line-height: 40px; border-bottom:2px solid transparent }
  21. nav ul li.right { float: right;margin-right:0px;margin-left:10px }
  22. main { max-width: 800px; margin: 0px auto }
  23. main h1 { text-transform: capitalize; font-size:36px; max-width:400px; max-width: 600px; margin-bottom:30px }
  24. main h2 { text-transform: capitalize; font-size:28px }
  25. main h2.serving { float:right; font-size:32px; line-height: 40px }
  26. main h3 { text-transform: capitalize; font-size:24px; border-bottom:2px solid black; line-height: 45px }
  27. main h4 { text-transform: capitalize; font-size:20px; line-height: 45px }
  28. main > p.notice { background: #eee;padding: 20px;line-height: 20px;font-size: 14px }
  29. main > div { margin-bottom: 45px }
  30. main > div > p { margin-bottom: 25px; font-size: 18px; line-height: 30px; max-width: 600px }
  31. main > div > p.small { font-size:14px; line-height: 22px; max-width: 500px }
  32. main > div.col2 { columns: 2; max-width: 800px; column-gap: 45px }
  33. main > div > p > img { display: inline-block }
  34. main > div > p a { font-weight: bold; cursor: pointer; text-decoration: underline }
  35. main > div > p a:hover { text-decoration: none }
  36. main > div > p a:focus { text-decoration: dotted underline }
  37. main > div > p a.external:after { content:"*"; color:#999 }
  38. main > div > p b { font-weight: bold }
  39. main > p b { font-weight: bold }
  40. main > div > p b.head { text-transform: capitalize;font-size: 24px;line-height: 45px;display: block;margin: 30px 0px }
  41. main > ul.col2 { columns: 2; margin-bottom:30px; position: relative }
  42. main > ul { display: block; margin-bottom:30px; position: relative }
  43. main > ul > li { max-width:550px; margin-bottom:15px; font-size:18px; padding-left:30px; line-height: 24px; font-size:18px; position: relative;}
  44. main > ul > li:before { content:"•"; position: absolute; margin-left:-30px }
  45. main > ul > li > b { font-weight: bold }
  46. main > ul > li > a { font-weight: bold; cursor: pointer; text-decoration: underline }
  47. main > ul > li > a:hover { text-decoration: none }
  48. main > ul > li > a:focus { text-decoration: dotted underline }
  49. main > img { margin-bottom: 30px }
  50. main > img.right { float:right; width:130px }
  51. main img.detail { max-width: 80px; float: left;padding: 20px;margin: 0px 20px 20px 0px; }
  52. main dl.ingredients { display: inline-block; margin-right:15px; font-size:0; padding-left:20px; margin-bottom:30px }
  53. main dl.ingredients h3 { margin-left:-20px }
  54. main dl.ingredients dt { width: 100px;margin-left:-20px;min-height: 210px;display: inline-block;text-align: center;vertical-align: top;border: 2px dashed transparent;border-radius: 10px }
  55. main dl.ingredients dt a:hover span.name { text-decoration: underline }
  56. main dl.ingredients dt a:focus span.name { text-decoration: underline; border: 1px dotted black }
  57. main dl.ingredients dt img { max-width: 100%; display: block;}
  58. main dl.ingredients dt b { display: block; font-family: 'alte_haas_grotesk_bold'; font-size:14px; margin-bottom: 5px;padding:0px 10px }
  59. main dl.ingredients dt u { display: block; font-size:12px }
  60. main ul.instructions { margin-bottom:30px; position: relative;}
  61. main ul.instructions li { max-width:600px; margin-bottom:15px; font-size:18px; padding-left:30px; line-height: 30px}
  62. main ul.instructions li:before { content:"•"; position: absolute; margin-left:-30px }
  63. main ul.instructions li a { font-weight: bold }
  64. main ul.instructions note { max-width:700px; margin-bottom:15px; font-size:18px; padding-left:30px; display: block; font-style: italic; font-size:14px; margin-bottom:30px }
  65. main ul.instructions a { font-weight: bold; }
  66. main ul.instructions a:hover { text-decoration: underline; cursor: pointer }
  67. main ul.instructions a:focus { text-decoration: underline; cursor: pointer }
  68. main ul.instructions i { font-weight: bold }
  69. main ul.instructions u { font-size: 12px;text-transform: uppercase;padding: 3px 5.5px;display: inline-block;font-weight: bold;border-radius: 3px;border: 2px solid black;line-height: 15px}
  70. main ul.recipes { columns: 3; }
  71. main ul.recipes h3 { margin-top:20px }
  72. main ul.recipes h3:first-child { margin-top:0px }
  73. main ul.recipes li { font-size:14px; line-height: 25px; margin-bottom: 0px }
  74. main ul.recipes li a { text-decoration: none; text-transform: capitalize }
  75. main ul.recipes li a:hover { text-decoration: underline }
  76. main sub {vertical-align: sub; font-size: 10px;}
  77. footer { max-width: 800px; margin: 0px auto; padding:15px 0px;font-family: 'alte_haas_grotesk_bold'; font-size:14px; margin-top:60px }
  78. footer a:hover { text-decoration: underline; cursor: pointer }
  79. footer a:focus { text-decoration: underline; cursor: pointer }
  80. main > table.col tr th { text-align: left}
  81. main > table.col tr td { border-right:1.5px solid white}
  82. main > table.col tr > * { padding:5px 20px}
  83. main > table.col tr td:last-child { border-right: 0px }
  84. main > table.col tr > *:first-child { padding-left: 0px }
  85. main > table.col b { font-weight: bold }
  86. main img.characters {max-width: 100px;}
  87. body.home nav ul li.home, body.about nav ul li.about, body.tools nav ul li.tools, body.nutrition nav ul li.nutrition, body.sprouting nav ul li.sprouting, body.lactofermentation nav ul li.lactofermentation { border-bottom-color: black }
  88. @media (max-width: 650px){
  89. main ul.recipes { columns:1 }
  90. main p.col2 { columns:1 }
  91. main > div.col2 { columns: 1 }
  92. header a img { max-width: 200px }
  93. main dl.ingredients { display: block }
  94. main dl.ingredients dt { display:block; min-height: auto;text-align: left;border: 0; width: auto; line-height: 20px }
  95. main dl.ingredients dt > * { display: inline-block !important }
  96. main dl.ingredients dt b { display: inline !important; margin:0;padding:0px 10px 0px 0px }
  97. main dl.ingredients dt img { display: none !important }
  98. main dl.ingredients dt u { display: inline-block; font-size:12px }
  99. }
  100. @media (prefers-color-scheme: dark){
  101. body {background: #111; color: white;}
  102. header a img {filter: invert(1)}
  103. body.home nav ul li.home, body.about nav ul li.about, body.tools nav ul li.tools, body.nutrition nav ul li.nutrition, body.sprouting nav ul li.sprouting, body.lactofermentation nav ul li.lactofermentation { border-bottom-color: white }
  104. nav ul {border-bottom-color: white;}
  105. .monochrome {filter: invert(1);}
  106. main > p.notice {background: #111;color:white;}
  107. main ul.instructions u { border: 2px solid white;}
  108. main h3 { border-bottom:2px solid white;}
  109. }