mobile.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @media screen and (max-width: 400px) {
  2. .buku {
  3. flex-direction: column;
  4. justify-content: center;
  5. align-items: center;
  6. margin: 1em auto;
  7. width: 100%;
  8. }
  9. .buku__cover {
  10. width: 98%;
  11. margin: 0px auto;
  12. background-color: yellow;
  13. }
  14. img.cover {
  15. width: 100% !important;
  16. height: auto;
  17. }
  18. .buku__info {
  19. width: 98%;
  20. margin: 1em auto;
  21. }
  22. .info__desc, .info__h4 {
  23. width: 90%;
  24. padding: 0;
  25. }
  26. .info__h4, .info__author {
  27. padding-left: 14px;
  28. }
  29. ol, ul { width: 100% }
  30. .selayang{
  31. width: 99%;
  32. }
  33. img.layang {
  34. transform: none;
  35. }
  36. .selayang__cover:hover img.layang {
  37. transform: none;
  38. }
  39. }
  40. @media screen and (max-width: 800px) {
  41. .judul, .subtitle, .gray, p, blockquote, ol, ul, h3 {
  42. width: 95% !important;
  43. }
  44. .buku {
  45. width: 98%;
  46. }
  47. img, pre {
  48. width: 100%;
  49. display: block;
  50. }
  51. pre code {
  52. padding: 10px;
  53. display: block;
  54. hyphens: manual;
  55. white-space: pre-wrap;
  56. }
  57. .gray {
  58. text-align: center;
  59. }
  60. p, blockquote {
  61. text-align: justify;
  62. }
  63. .judul {
  64. font: 1.8em/1.4 var(--chunk);
  65. font-weight: 800;
  66. }
  67. .g__gals {
  68. grid-template-columns: 1fr;
  69. width: 90%;
  70. row-gap: 2%;
  71. }
  72. .masthead {
  73. width: 100%;
  74. }
  75. } /* < 600px */
  76. @media screen and (min-width: 600px) and (max-width: 800px) {
  77. .judul {
  78. font: 2.2em/1.4 var(--chunk);
  79. font-weight: bold;
  80. }
  81. } /* 600 - 800px */