mobile.styl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. // < 767px
  3. +mobile() {
  4. }
  5. */
  6. +mobile-small() {
  7. // For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
  8. .content-wrap {
  9. padding: initial !important;
  10. }
  11. // For all schemes wider width.
  12. .posts-expand {
  13. .post-meta {
  14. margin: 3px 0 10px 0 !important;
  15. }
  16. }
  17. .post-block {
  18. margin-top: initial !important;
  19. // Inside posts blocks content padding (default 40px).
  20. padding: $content-mobile-padding 18px $content-mobile-padding !important;
  21. }
  22. .posts-collapse {
  23. margin-left: 0;
  24. margin-right: 0;
  25. }
  26. .post-body {
  27. // For headers narrow width.
  28. h1, h2, h3, h4, h5, h6 {
  29. margin: 10px 0 8px;
  30. }
  31. // Rewrite paddings & margins inside tags.
  32. .note, .tabs .tab-content .tab-pane {
  33. h1, h2, h3, h4, h5, h6 {
  34. margin: 0 5px;
  35. }
  36. }
  37. // For paragraphs narrow width.
  38. > p {
  39. margin: 0 0 10px 0;
  40. }
  41. // Rewrite paddings & margins inside tags.
  42. .note > p, .tabs .tab-content .tab-pane > p {
  43. padding: 0 5px;
  44. }
  45. img, video {
  46. margin-bottom: 10px !important;
  47. }
  48. .note {
  49. margin-bottom: 10px !important;
  50. padding: 10px !important;
  51. if (hexo-config('note.icons')) {
  52. &:not(.no-icon) {
  53. padding-left: 35px !important;
  54. }
  55. }
  56. }
  57. .tabs .tab-content .tab-pane {
  58. padding: 10px 10px 0 10px !important;
  59. }
  60. }
  61. .post-eof {
  62. margin: 40px auto 20px !important;
  63. }
  64. .pagination {
  65. margin-top: 40px;
  66. }
  67. }
  68. /*
  69. // < 413px
  70. +mobile-smallest() {
  71. }
  72. */