This is a gentle fork from https://framagit.org/marienfressinaud/photos.marienfressinaud.fr with a responsive and optimized mindset. https://media.larlet.fr/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

main.css 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. /* Section polices */
  2. /* Fonts definition, a different font is in use between light and dark mode
  3. in order to improve the readability of the text. */
  4. @font-face {
  5. font-family: 'triplicate_t4p';
  6. src: url('fonts/triplicate_t4_poly_regular.woff2') format('woff2'),
  7. url('fonts/triplicate_t4_poly_regular.woff') format('woff');
  8. font-weight: normal;
  9. font-style: normal;
  10. font-display: swap;
  11. }
  12. @font-face {
  13. font-family: 'triplicate_t4p';
  14. src: url('fonts/triplicate_t4_poly_bold.woff2') format('woff2'),
  15. url('fonts/triplicate_t4_poly_bold.woff') format('woff');
  16. font-weight: bold;
  17. font-style: normal;
  18. font-display: swap;
  19. }
  20. @font-face {
  21. font-family: 'triplicate_t4p';
  22. src: url('fonts/triplicate_t4_poly_italic.woff2') format('woff2'),
  23. url('fonts/triplicate_t4_poly_italic.woff') format('woff');
  24. font-weight: normal;
  25. font-style: italic;
  26. font-display: swap;
  27. }
  28. @font-face {
  29. font-family: 'triplicate_t3';
  30. src: url('fonts/triplicate_t3_regular.woff2') format('woff2'),
  31. url('fonts/triplicate_t3_regular.woff') format('woff');
  32. font-weight: normal;
  33. font-style: normal;
  34. font-display: swap;
  35. }
  36. @font-face {
  37. font-family: 'triplicate_t3';
  38. src: url('fonts/triplicate_t3_bold.woff2') format('woff2'),
  39. url('fonts/triplicate_t3_bold.woff') format('woff');
  40. font-weight: bold;
  41. font-style: normal;
  42. font-display: swap;
  43. }
  44. @font-face {
  45. font-family: 'triplicate_t3';
  46. src: url('fonts/triplicate_t3_italic.woff2') format('woff2'),
  47. url('fonts/triplicate_t3_italic.woff') format('woff');
  48. font-weight: normal;
  49. font-style: italic;
  50. font-display: swap;
  51. }
  52. * {
  53. box-sizing: border-box;
  54. }
  55. :root:not(.forced-dark),
  56. .forced-light {
  57. /* This tells the browser which color themes my app supports
  58. See https://web.dev/prefers-color-scheme/#stylesheet-architecture */
  59. color-scheme: light dark;
  60. /* For a smooth transition between light/dark modes
  61. See https://web.dev/prefers-color-scheme/#smooth-transitions-between-modes */
  62. --duration: 0.5s;
  63. --timing: ease;
  64. --font-family: 'triplicate_t4p', Courier, Menlo, Monaco, 'DejaVu Sans Mono', Consolas, monospace;
  65. --background-color: #f7f7f7;
  66. --text-color: #07486c;
  67. --remarkdown-color: SteelBlue;
  68. --link-color: RoyalBlue;
  69. --link-visited-color: RebeccaPurple;
  70. --link-hover-color: var(--background-color);
  71. --link-hover-background-color: var(--link-color);
  72. --image-filter: none;
  73. --target-after-color: #07486c;
  74. --mark-background: LightGoldenRodYellow;
  75. }
  76. @media (prefers-color-scheme: dark) {
  77. :root:not(.forced-light),
  78. .forced-dark {
  79. --font-family: 'triplicate_t3', 'Courier New', Menlo, Monaco, 'DejaVu Sans Mono', Consolas, monospace;
  80. --background-color: #272727;
  81. --text-color: Linen;
  82. --remarkdown-color: Orange;
  83. --link-color: #ffff2b;
  84. --link-visited-color: Khaki;
  85. --link-hover-color: var(--background-color);
  86. --link-hover-background-color: var(--link-visited-color);
  87. --image-filter: grayscale(.5) brightness(.8) contrast(1.2);
  88. --target-after-color: DarkOrange;
  89. --mark-background: Orange;
  90. }
  91. }
  92. html {
  93. /* Applying it to the html element will provide smooth scrolling to anchors
  94. https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior */
  95. scroll-behavior: smooth;
  96. /* Only supported by Firefox, how fun? */
  97. scrollbar-color: var(--background-color) var(--target-after-color);
  98. }
  99. /* General stuff. */
  100. body {
  101. margin: 0 auto;
  102. padding: 0 .5rem;
  103. font-family: var(--font-family);
  104. background-color: var(--background-color);
  105. color: var(--text-color);
  106. transition:
  107. color var(--duration) var(--timing),
  108. background-color var(--duration) var(--timing);
  109. -moz-osx-font-smoothing: grayscale;
  110. -webkit-font-smoothing: antialiased;
  111. }
  112. a {
  113. color: var(--text-color);
  114. }
  115. h1 {
  116. margin-top: 0;
  117. text-align: center;
  118. word-wrap: break-word;
  119. margin-bottom: 1.75rem;
  120. font-size: 2rem;
  121. line-height: 2.5rem;
  122. }
  123. h2 {
  124. text-align: center;
  125. margin-bottom: 1.75rem;
  126. }
  127. img {
  128. max-width: 100%;
  129. max-height: 100%;
  130. max-inline-size: 100%;
  131. block-size: auto;
  132. }
  133. figcaption {
  134. text-align: center;
  135. }
  136. hr {
  137. height: 1.5em;
  138. line-height: 1.5em;
  139. margin: 1.5em 0 1.5em;
  140. border: none;
  141. color: inherit;
  142. text-align: center;
  143. }
  144. hr::before {
  145. content: "* * * *";
  146. }
  147. .container {
  148. max-width: 70rem;
  149. margin-left: auto;
  150. margin-right: auto;
  151. padding-left: .5rem;
  152. padding-right: .5rem;
  153. }
  154. .galleries {
  155. display: flex;
  156. flex-wrap: wrap;
  157. justify-content: space-evenly;
  158. margin-top: 1rem;
  159. }
  160. .gallery-cover {
  161. width: 330px;
  162. max-width: 100%;
  163. margin-bottom: 2rem;
  164. margin-right: .5rem;
  165. }
  166. .gallery-cover img {
  167. border-radius: 0.25rem;
  168. }
  169. .photo {
  170. width: 20rem;
  171. max-width: 100%;
  172. margin-right: .5rem;
  173. margin-bottom: 2rem;
  174. }
  175. .hero img {
  176. max-height: 100vh;
  177. width: auto;
  178. }
  179. .u-center {
  180. text-align: center;
  181. }
  182. /* See https://www.benmarshall.me/responsive-iframes/ */
  183. .iframe-container {
  184. overflow: hidden;
  185. /* 16:9 aspect ratio */
  186. padding-top: 56.25%;
  187. position: relative;
  188. }
  189. .iframe-container iframe {
  190. border: 0;
  191. height: 100%;
  192. left: 0;
  193. position: absolute;
  194. top: 0;
  195. width: 100%;
  196. }
  197. @media only screen and (max-width: 600px) {
  198. nav a {
  199. display: block;
  200. }
  201. }
  202. /* See https://sylvaindurand.org/masonry-photo-grid-in-pure-css/ */
  203. @media only screen and (min-width: 600px) {
  204. .gallery {
  205. display: flex;
  206. width: 100%;
  207. flex-flow: row wrap;
  208. margin-left: -4px;
  209. }
  210. .gallery div {
  211. overflow: hidden;
  212. margin: 0 0 8px 8px;
  213. flex: auto;
  214. height: 250px;
  215. min-width: 150px;
  216. }
  217. .gallery div:nth-child(8n+1) {
  218. width: 310px;
  219. }
  220. .gallery div:nth-child(8n+2) {
  221. width: 270px;
  222. }
  223. .gallery div:nth-child(8n+3) {
  224. width: 260px;
  225. }
  226. .gallery div:nth-child(8n+4) {
  227. width: 310px;
  228. }
  229. .gallery div:nth-child(8n+5) {
  230. width: 240px;
  231. }
  232. .gallery div:nth-child(8n+6) {
  233. width: 190px;
  234. }
  235. .gallery div:nth-child(8n+7) {
  236. width: 210px;
  237. }
  238. .gallery div:nth-child(8n+8) {
  239. width: 170px;
  240. }
  241. .gallery div.wide {
  242. width: 650px;
  243. }
  244. .gallery div.tall {
  245. width: 650px;
  246. height: 450px;
  247. }
  248. .gallery div.narrow {
  249. width: 120px;
  250. }
  251. .gallery img {
  252. object-fit: cover;
  253. width: 100%;
  254. height: 100%;
  255. }
  256. }