This is a gentle fork from https://framagit.org/marienfressinaud/photos.marienfressinaud.fr with a responsive and optimized mindset. https://media.larlet.fr/
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.

main.css 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /* Section polices */
  2. /* latin-ext */
  3. @font-face {
  4. font-family: 'Source Serif Pro';
  5. font-style: normal;
  6. font-weight: 400;
  7. src: local('Source Serif Pro'), local('SourceSerifPro-Regular'), url(fonts/source-serif-pro-ext.woff2) format('woff2');
  8. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  9. }
  10. /* latin */
  11. @font-face {
  12. font-family: 'Source Serif Pro';
  13. font-style: normal;
  14. font-weight: 400;
  15. src: local('Source Serif Pro'), local('SourceSerifPro-Regular'), url(fonts/source-serif-pro.woff2) format('woff2');
  16. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  17. }
  18. * {
  19. box-sizing: border-box;
  20. }
  21. :root {
  22. --main-color: #2a2230;
  23. --main-color-muted: #665e6c;
  24. --secondary-color: #c02b43;
  25. --link-color: #a6253a;
  26. --contrast-color: #f8f6ff;
  27. }
  28. html,
  29. body {
  30. margin: 0;
  31. padding: 0;
  32. }
  33. html {
  34. color: #2a2230;
  35. font-family: 'Source Serif Pro', serif;
  36. font-size: 22px;
  37. line-height: 1.5rem;
  38. }
  39. @media(max-width: 70rem) {
  40. html {
  41. font-size: 18px;
  42. }
  43. }
  44. body {
  45. background-color: #f8f6ff;
  46. }
  47. a {
  48. color: #a6253a;
  49. }
  50. h1, h2, h3 {
  51. margin-top: 0;
  52. margin-bottom: 0.5rem;
  53. word-wrap: break-word;
  54. }
  55. h1 {
  56. margin-bottom: 1.75rem;
  57. }
  58. h1 { font-size: 2rem; line-height: 2.5rem; }
  59. h2 { font-size: 1.5rem; line-height: 2rem; }
  60. h3 { font-size: 1rem; line-height: 1.5rem; }
  61. * + h1,
  62. * + h2,
  63. * + h3 {
  64. margin-top: 1.5rem;
  65. }
  66. p {
  67. margin-top: 0;
  68. margin-bottom: 1rem;
  69. }
  70. p:last-child {
  71. margin-bottom: 0;
  72. }
  73. ul, ol, dl {
  74. margin-top: 0;
  75. margin-bottom: 1rem;
  76. }
  77. ul:last-child,
  78. ol:last-child,
  79. dl:last-child {
  80. margin-bottom: 0;
  81. }
  82. p + ul,
  83. p + ol,
  84. p + dl {
  85. margin-top: -.5rem;
  86. }
  87. small {
  88. font-size: .8em;
  89. line-height: 1em;
  90. }
  91. strong {
  92. font-weight: bold;
  93. }
  94. img {
  95. max-width: 100%;
  96. height: auto;
  97. }
  98. .app-page-header {
  99. padding-top: 1rem;
  100. padding-bottom: 1rem;
  101. margin-bottom: 4rem;
  102. background: linear-gradient(45deg, #c02b43 52vw,
  103. #2a2230 52vw,
  104. #2a2230 calc(52vw + 2px),
  105. transparent calc(52vw + 2px));
  106. border-bottom: 4px solid #2a2230;
  107. }
  108. .app-page-header .container {
  109. display: flex;
  110. align-items: center;
  111. }
  112. .app-page-header .container > * {
  113. flex-grow: 0;
  114. }
  115. .app-page-header .container > .separator {
  116. flex-grow: 1;
  117. }
  118. @media(max-width: 70rem) {
  119. .app-page-header .container {
  120. flex-direction: column;
  121. }
  122. }
  123. .app-page-header h1 a {
  124. color: #f8f6ff;
  125. text-decoration: none;
  126. }
  127. .app-page-header .app-page-header-title {
  128. margin-bottom: 0;
  129. font-size: 1.5rem;
  130. line-height: 2rem;
  131. }
  132. .app-page {
  133. padding-bottom: 10rem;
  134. }
  135. @media(max-width: 70rem) {
  136. .app-page {
  137. padding-bottom: 5rem;
  138. }
  139. }
  140. .container {
  141. max-width: 70rem;
  142. margin-left: auto;
  143. margin-right: auto;
  144. padding-left: .5rem;
  145. padding-right: .5rem;
  146. }
  147. .galleries {
  148. display: flex;
  149. flex-wrap: wrap;
  150. justify-content: space-evenly;
  151. }
  152. .gallery-cover {
  153. width: 20rem;
  154. max-width: 100%;
  155. margin-bottom: 2rem;
  156. margin-right: .5rem;
  157. }
  158. .gallery-cover a {
  159. text-decoration: none;
  160. }
  161. .gallery-cover img {
  162. width: 100%;
  163. height: 12rem;
  164. border-radius: 0.25rem;
  165. }
  166. .gallery-cover .gallery-cover-name {
  167. display: block;
  168. font-size: 1rem;
  169. font-weight: bold;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. }
  173. .gallery-photos {
  174. display: flex;
  175. flex-wrap: wrap;
  176. justify-content: space-evenly;
  177. margin-top: 2rem;
  178. }
  179. .photo {
  180. width: 20rem;
  181. max-width: 100%;
  182. margin-right: .5rem;
  183. margin-bottom: 2rem;
  184. }
  185. .photo img {
  186. width: 100%;
  187. height: 12rem;
  188. }
  189. /* Section liée au bouton "haut de page" */
  190. #la-haut {
  191. position: absolute;
  192. top: 0;
  193. right: 0;
  194. height: 100vh;
  195. width: 1px;
  196. }
  197. #la-haut button {
  198. position: fixed;
  199. bottom: 1rem;
  200. left: 50%;
  201. transform: translateX(-50%);
  202. padding: .5rem 1rem;
  203. opacity: 1;
  204. visibility: visible;
  205. transition: all 0.2s ease;
  206. color: var(--main-color);
  207. background-color: var(--contrast-color);
  208. border: 2px solid var(--main-color);
  209. border-radius: 2rem;
  210. }
  211. #la-haut button::after {
  212. padding-left: .25rem;
  213. content: "🎈";
  214. }
  215. #la-haut button:hover {
  216. color: var(--contrast-color);
  217. background-color: var(--main-color);
  218. }
  219. #la-haut.entrecoupant button {
  220. opacity: 0;
  221. visibility: hidden;
  222. }