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.
 
 
 
 
 

166 lines
3.8 KiB

  1. /**
  2. * This file provides the design styles for the the detail template
  3. * (media details)
  4. */
  5. #dokuwiki__detail {
  6. /* + + + + + linked image + + + + + */
  7. @media screen {
  8. .img-link {
  9. text-align: center;
  10. a {
  11. position: relative;
  12. left: 0;
  13. display: inline-block;
  14. max-width: 100%;
  15. color: @ini_button_color;
  16. margin: 0 auto 1.4em;
  17. &::before {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. display: block;
  22. width: 100%;
  23. box-sizing: border-box;
  24. background: @ini_button_background;
  25. line-height: @line-height-default;
  26. padding: @margin-small;
  27. }
  28. img {
  29. margin: 0;
  30. display: block;
  31. border: 1px dotted @ini_background_site;
  32. position: relative;
  33. }
  34. &:hover,
  35. &:focus,
  36. &:active {
  37. text-decoration: none;
  38. &::before {
  39. content: attr(title);
  40. }
  41. img {
  42. border: 1px solid @ini_button_background;
  43. }
  44. }
  45. }
  46. }
  47. }
  48. /* + + + + + meta data + + + + + */
  49. div.img_detail {
  50. @media screen {
  51. /* vertical minus margin of .img-detail corresponds to the padding of .page */
  52. background-color: @ini_background_page_header;
  53. border: solid @ini_border_light;
  54. border-width: 1px 0;
  55. margin: @margin-default -(@margin-default);
  56. h1,
  57. h2,
  58. h3,
  59. h4,
  60. h5,
  61. h6,
  62. p {
  63. padding-left: @margin-default;
  64. padding-right: @margin-default;
  65. }
  66. > h4 {
  67. padding-top: (@margin-default / 2);
  68. }
  69. }
  70. dl {
  71. @media screen {
  72. .display-flex();
  73. .flex-wrap();
  74. width: 100%;
  75. dt,
  76. dd {
  77. box-sizing: border-box;
  78. margin: .2em 0;
  79. padding: (@small-spacing * 2) @small-spacing;
  80. }
  81. }
  82. dt {
  83. background-color: @ini_highlight;
  84. color: @ini_highlight_text;
  85. @media @screen_min-xs {
  86. width: 33.3%;
  87. }
  88. @media @screen_max-xs {
  89. width: 40%;
  90. }
  91. }
  92. dd {
  93. padding-left: (@small-spacing * 2);
  94. @media @screen_min-xs {
  95. width: 66.6%;
  96. }
  97. @media @screen_max-xs {
  98. width: 59.9%;
  99. }
  100. }
  101. }
  102. .os-map {
  103. p {
  104. text-align: right;
  105. }
  106. iframe {
  107. border: solid @ini_button_background;
  108. border-width: 1px 0;
  109. margin: 0;
  110. padding: 0;
  111. }
  112. }
  113. @media @screen_max-md {
  114. margin-right: -(@margin-default * 1.6);
  115. h1,
  116. h2,
  117. h3,
  118. h4,
  119. h5,
  120. h6,
  121. p {
  122. padding-right: (@margin-default * 1.6);
  123. }
  124. }
  125. @media @screen_max-xs {
  126. margin-left: -(@margin-small);
  127. h1,
  128. h2,
  129. h3,
  130. h4,
  131. h5,
  132. h6,
  133. p {
  134. padding-left: @margin-small;
  135. }
  136. }
  137. }
  138. }