main.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @import "tailwindcss";
  2. @import "tailwindcss/theme.css" layer(theme);
  3. @import "tailwindcss/preflight.css" layer(base);
  4. @import "tailwindcss/utilities.css" layer(utilities);
  5. @layer theme, base, components, utilities;
  6. @plugin "@tailwindcss/typography";
  7. @plugin "daisyui" {
  8. themes: lofi --default;
  9. }
  10. @plugin "daisyui/theme" {
  11. name: "lofi";
  12. default: true;
  13. --color-primary: 'white';
  14. --color-info: '@0284c7';
  15. --color-success: '@4e9a06';
  16. --color-error: '#cc0000';
  17. --color-base-100: 'black';
  18. --rounded-badge: "1rem";
  19. --animation-input: "0.1s";
  20. }
  21. @theme {
  22. --font-heading: "Oswald";
  23. --font-sans: "Open Sans";
  24. --text-base: 24px;
  25. }
  26. div.noscript {
  27. background: white;
  28. color: black;
  29. font-size: 1.5rem;
  30. padding: 1rem;
  31. a {
  32. text-decoration: underline;
  33. color: dodgerblue;
  34. }
  35. }
  36. h1, h2, h3, h4, h5, h6 {
  37. font-family: "Oswald";
  38. font-weight: 400;
  39. }
  40. a {
  41. text-decoration: underline theme('colors.sky.500');
  42. text-decoration-thickness: 2px;
  43. text-underline-offset: 2px;
  44. }
  45. .prose p {
  46. &.calltoaction {
  47. text-align: center;
  48. display: block;
  49. margin: theme(spacing.6) 0;
  50. padding: theme(spacing.6) 0;
  51. background-color: #e7f2fd;
  52. font-size: 1.5em;
  53. font-family: Oswald,sans-serif;
  54. }
  55. }
  56. .prose strong a {
  57. font-weight: bold;
  58. }
  59. .prose figure {
  60. position: relative;
  61. img {
  62. width: 100%;
  63. }
  64. figcaption {
  65. position: absolute;
  66. width: 100%;
  67. bottom: 0;
  68. font-size: .75rem;
  69. font-weight: bold;
  70. color: #fff;
  71. line-height: 1.75rem;
  72. background: rgba(0,0,0,.666);
  73. padding: 0 theme("spacing.3") .2em theme("spacing.3");
  74. border-bottom-right-radius: .25rem;
  75. border-bottom-left-radius: .25rem;
  76. a {
  77. color: white;
  78. text-decoration: underline;
  79. }
  80. &:before {
  81. content: "\203A\2002";
  82. }
  83. }
  84. }