wp.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. .alignnone {
  2. float: none !important;
  3. margin-bottom: 15px;
  4. }
  5. .textcenter {
  6. text-align: center;
  7. }
  8. .textright {
  9. text-align: right;
  10. }
  11. .alignright {
  12. float:right;
  13. margin: 1em 0 1em 1.5em;
  14. }
  15. .alignleft {
  16. float:left;
  17. margin: 1em 1.5em 1em 0;
  18. }
  19. .aligncenter {
  20. display: block;
  21. margin: 1em auto;
  22. }
  23. a img.alignright {
  24. float:right;
  25. margin: 0 0 20px 25px;
  26. }
  27. a img.alignnone {
  28. margin: 0px;
  29. }
  30. a img.alignleft {
  31. float:left;
  32. margin: 0 25px 20px 0;
  33. }
  34. a img.aligncenter {
  35. display: block;
  36. margin-left: auto;
  37. margin-right: auto
  38. }
  39. img.alignleft {
  40. margin: 0 25px 20px 0;
  41. }
  42. img.alignright {
  43. margin: 0 0 20px 25px;
  44. }
  45. img.aligncenter {
  46. display: block;
  47. margin: 0 auto;
  48. }
  49. img.alignnone {
  50. margin: 5px 0;
  51. }
  52. .wp-caption {
  53. max-width: 100%;
  54. a {
  55. border: var( --vamtam-no-border-link );
  56. }
  57. }
  58. .wp-caption .wp-caption-text,
  59. .entry-caption,
  60. .gallery-caption {
  61. margin-top: 10px;
  62. text-align: center;
  63. .vamtam-font(em-);
  64. color: var( --vamtam-em-color );
  65. }
  66. .wp-smiley,
  67. .wp-smiley * {
  68. border: 0px !important;
  69. }
  70. .sticky, .gallery-caption, .bypostauthor { outline: none;}
  71. table {
  72. border-collapse: collapse;
  73. border-spacing: 0;
  74. line-height: 2;
  75. width: 100%;
  76. }
  77. caption,
  78. th,
  79. td {
  80. font-weight: normal;
  81. text-align: left;
  82. }
  83. caption {
  84. font-size: 16px;
  85. margin: 20px 0;
  86. }
  87. table {
  88. border-collapse: collapse;
  89. margin: 0 0 1.5em;
  90. width: 100%;
  91. }
  92. thead th {
  93. border-bottom: 2px solid #bbb;
  94. padding-bottom: 0.5em;
  95. }
  96. th {
  97. padding: 0.4em;
  98. text-align: left;
  99. font-weight: 500;
  100. }
  101. td {
  102. padding: 0.4em;
  103. border: none;
  104. padding: 8px 0px 8px 0;
  105. }
  106. tr {
  107. border-bottom: 1px solid #eee;
  108. }
  109. th:first-child,
  110. td:first-child {
  111. padding-left: 0;
  112. }
  113. th:last-child,
  114. td:last-child {
  115. padding-right: 0;
  116. }
  117. dl {
  118. margin: 0 20px;
  119. }
  120. dt {
  121. font-weight: bold;
  122. }
  123. dd {
  124. margin: 0 0 10px;
  125. }
  126. address {
  127. font-style: italic;
  128. margin: 0 0 24px;
  129. }
  130. var, cite {
  131. font-style: italic;
  132. }
  133. [class*="gallery-columns-"] {
  134. margin: 0 -5px !important;
  135. &.gallery-columns-1 .gallery-item { width: percentage((1 / 1)); }
  136. &.gallery-columns-2 .gallery-item { width: percentage((1 / 2)); }
  137. &.gallery-columns-3 .gallery-item { width: percentage((1 / 3)); }
  138. &.gallery-columns-4 .gallery-item { width: percentage((1 / 4)); }
  139. &.gallery-columns-5 .gallery-item { width: percentage((1 / 5)); }
  140. &.gallery-columns-6 .gallery-item { width: percentage((1 / 6)); }
  141. &.gallery-columns-7 .gallery-item { width: percentage((1 / 7)); }
  142. &.gallery-columns-8 .gallery-item { width: percentage((1 / 8)); }
  143. &.gallery-columns-9 .gallery-item { width: percentage((1 / 9)); }
  144. figure.gallery-item {
  145. padding: 0 5px;
  146. display: inline-block;
  147. box-sizing: border-box;
  148. position: relative;
  149. &:hover {
  150. .gallery-caption {
  151. display: block;
  152. position: absolute;
  153. top: 100%;
  154. left: -40px;
  155. right: -40px;
  156. padding: 10px;
  157. border-radius: var( --vamtam-border-radius );
  158. background: var( --vamtam-default-bg-color );
  159. z-index: 10;
  160. margin: 0;
  161. box-shadow: 0 0 2px rgba( 0, 0, 0, 0.1 );
  162. &:before,
  163. &:after {
  164. content: "";
  165. position: absolute;
  166. top: -10px;
  167. left: 50%;
  168. border: 10px solid transparent;
  169. }
  170. &:before {
  171. border-top: 0;
  172. border-bottom-color: rgba( 0, 0, 0, 0.1 );
  173. top: -11px;
  174. }
  175. &:after {
  176. border-top: 0;
  177. border-bottom-color: var( --vamtam-default-bg-color );
  178. }
  179. }
  180. }
  181. img {
  182. display: inline-block;
  183. padding-bottom: 10px;
  184. }
  185. .gallery-caption {
  186. display: none;
  187. }
  188. }
  189. }
  190. @media ( max-width: 60px + 160px * 5 ) {
  191. [class*="gallery-columns-"] {
  192. figure.gallery-item {
  193. a, img {
  194. display: block !important;
  195. margin: auto;
  196. }
  197. &:hover {
  198. .gallery-caption {
  199. left: -50%;
  200. right: -50%;
  201. &:before,
  202. &:after {
  203. display: none;
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. @media ( min-width: 60px + 160px * 4 + 1 ) and ( max-width: 60px + 160px * 5 ) {
  211. [class*="gallery-columns-"] {
  212. figure.gallery-item {
  213. width: percentage(( 1 / 4 )) !important;
  214. &:hover {
  215. .gallery-caption {
  216. left: -50%;
  217. right: -50%;
  218. &:before,
  219. &:after {
  220. display: none;
  221. }
  222. }
  223. }
  224. &:nth-child( 4n + 1 ):hover .gallery-caption {
  225. left: 0;
  226. right: -100%;
  227. }
  228. &:nth-child( 4n ):hover .gallery-caption {
  229. left: -100%;
  230. right: 0;
  231. }
  232. }
  233. }
  234. }
  235. @media ( min-width: 60px + 160px * 3 + 1 ) and ( max-width: 60px + 160px * 4 ) {
  236. [class*="gallery-columns-"] {
  237. figure.gallery-item {
  238. width: percentage(( 1 / 3 )) !important;
  239. &:nth-child( 3n + 1 ):hover .gallery-caption {
  240. left: 0;
  241. right: -100%;
  242. }
  243. &:nth-child( 3n ):hover .gallery-caption {
  244. left: -100%;
  245. right: 0;
  246. }
  247. }
  248. }
  249. }
  250. @media ( min-width: 60px + 160px * 2 + 1 ) and ( max-width: 60px + 160px * 3 ) {
  251. [class*="gallery-columns-"] {
  252. figure.gallery-item {
  253. width: percentage(( 1 / 2 )) !important;
  254. &:nth-child( 2n + 1 ):hover .gallery-caption {
  255. left: 0;
  256. right: -100%;
  257. }
  258. &:nth-child( 2n ):hover .gallery-caption {
  259. left: -100%;
  260. right: 0;
  261. }
  262. }
  263. }
  264. }
  265. @media ( max-width: 60px + 160px * 2 ) {
  266. [class*="gallery-columns-"] {
  267. figure.gallery-item {
  268. width: 100% !important;
  269. &:hover .gallery-caption {
  270. left: 0;
  271. right: 0;
  272. }
  273. }
  274. }
  275. }