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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. img {
  124. max-width: 100%;
  125. max-height: 100%;
  126. max-inline-size: 100%;
  127. block-size: auto;
  128. }
  129. figcaption {
  130. text-align: center;
  131. }
  132. hr {
  133. height: 1.5em;
  134. line-height: 1.5em;
  135. margin: 1.5em 0 1.5em;
  136. border: none;
  137. color: inherit;
  138. text-align: center;
  139. }
  140. hr::before {
  141. content: "* * * *";
  142. }
  143. .container {
  144. max-width: 70rem;
  145. margin-left: auto;
  146. margin-right: auto;
  147. padding-left: .5rem;
  148. padding-right: .5rem;
  149. }
  150. .galleries {
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-evenly;
  154. margin-top: 1rem;
  155. }
  156. .gallery-cover {
  157. width: 330px;
  158. max-width: 100%;
  159. margin-bottom: 2rem;
  160. margin-right: .5rem;
  161. }
  162. .gallery-cover img {
  163. border-radius: 0.25rem;
  164. }
  165. .photo {
  166. width: 20rem;
  167. max-width: 100%;
  168. margin-right: .5rem;
  169. margin-bottom: 2rem;
  170. }
  171. .hero img {
  172. max-height: 100vh;
  173. width: auto;
  174. }
  175. .u-center {
  176. text-align: center;
  177. }
  178. /* See https://www.benmarshall.me/responsive-iframes/ */
  179. .iframe-container {
  180. overflow: hidden;
  181. /* 16:9 aspect ratio */
  182. padding-top: 56.25%;
  183. position: relative;
  184. }
  185. .iframe-container iframe {
  186. border: 0;
  187. height: 100%;
  188. left: 0;
  189. position: absolute;
  190. top: 0;
  191. width: 100%;
  192. }
  193. @media only screen and (max-width: 600px) {
  194. nav a {
  195. display: block;
  196. }
  197. }
  198. /* See https://sylvaindurand.org/masonry-photo-grid-in-pure-css/ */
  199. @media only screen and (min-width: 600px) {
  200. .gallery {
  201. display: flex;
  202. width: 100%;
  203. flex-flow: row wrap;
  204. margin-left: -4px;
  205. }
  206. .gallery div {
  207. overflow: hidden;
  208. margin: 0 0 8px 8px;
  209. flex: auto;
  210. height: 250px;
  211. min-width: 150px;
  212. }
  213. .gallery div:nth-child(8n+1) {
  214. width: 310px;
  215. }
  216. .gallery div:nth-child(8n+2) {
  217. width: 270px;
  218. }
  219. .gallery div:nth-child(8n+3) {
  220. width: 260px;
  221. }
  222. .gallery div:nth-child(8n+4) {
  223. width: 310px;
  224. }
  225. .gallery div:nth-child(8n+5) {
  226. width: 240px;
  227. }
  228. .gallery div:nth-child(8n+6) {
  229. width: 190px;
  230. }
  231. .gallery div:nth-child(8n+7) {
  232. width: 210px;
  233. }
  234. .gallery div:nth-child(8n+8) {
  235. width: 170px;
  236. }
  237. .gallery div.wide {
  238. width: 650px;
  239. }
  240. .gallery div.tall {
  241. width: 650px;
  242. height: 450px;
  243. }
  244. .gallery div.narrow {
  245. width: 120px;
  246. }
  247. .gallery img {
  248. object-fit: cover;
  249. width: 100%;
  250. height: 100%;
  251. }
  252. }