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 2.7KB

6 vuotta sitten
6 vuotta sitten
6 vuotta sitten
6 vuotta sitten
6 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. * {
  2. box-sizing: border-box;
  3. }
  4. html,
  5. body {
  6. margin: 0;
  7. padding: 0;
  8. }
  9. html {
  10. color: #313131;
  11. font-family: "Open Sans";
  12. font-size: 22px;
  13. line-height: 1.5rem;
  14. }
  15. @media(max-width: 70rem) {
  16. html {
  17. font-size: 18px;
  18. }
  19. }
  20. body {
  21. background-color: #f5f5f5;
  22. }
  23. a {
  24. color: #404c9e;
  25. transition: color .2s ease-in-out;
  26. }
  27. a:hover {
  28. color: #7586f0;
  29. text-decoration: none;
  30. }
  31. h1, h2, h3 {
  32. margin-top: 0;
  33. margin-bottom: 0.5rem;
  34. word-wrap: break-word;
  35. }
  36. h1 {
  37. margin-bottom: 1.75rem;
  38. }
  39. h1 { font-size: 2rem; line-height: 2.5rem; }
  40. h2 { font-size: 1.5rem; line-height: 2rem; }
  41. h3 { font-size: 1rem; line-height: 1.5rem; }
  42. * + h1,
  43. * + h2,
  44. * + h3 {
  45. margin-top: 1.5rem;
  46. }
  47. p {
  48. margin-top: 0;
  49. margin-bottom: 1rem;
  50. }
  51. p:last-child {
  52. margin-bottom: 0;
  53. }
  54. ul, ol, dl {
  55. margin-top: 0;
  56. margin-bottom: 1rem;
  57. }
  58. ul:last-child,
  59. ol:last-child,
  60. dl:last-child {
  61. margin-bottom: 0;
  62. }
  63. p + ul,
  64. p + ol,
  65. p + dl {
  66. margin-top: -.5rem;
  67. }
  68. small {
  69. font-size: .8em;
  70. line-height: 1em;
  71. }
  72. strong {
  73. font-weight: bold;
  74. }
  75. img {
  76. max-width: 100%;
  77. height: auto;
  78. }
  79. .app-page-header {
  80. padding-top: .5rem;
  81. padding-bottom: .5rem;
  82. margin-bottom: 2rem;
  83. box-shadow: 0 0 1px #313131;
  84. }
  85. .app-page-header .container {
  86. display: flex;
  87. align-items: center;
  88. }
  89. .app-page-header .container > * {
  90. flex-grow: 0;
  91. }
  92. .app-page-header .container > .separator {
  93. flex-grow: 1;
  94. }
  95. @media(max-width: 70rem) {
  96. .app-page-header .container {
  97. flex-direction: column;
  98. }
  99. }
  100. .app-page-header h1 a {
  101. color: #313131;
  102. text-decoration: none;
  103. }
  104. .app-page-header .app-page-header-title {
  105. margin-bottom: 0;
  106. font-size: 1.5rem;
  107. line-height: 2rem;
  108. }
  109. .app-page {
  110. padding-bottom: 10rem;
  111. }
  112. @media(max-width: 70rem) {
  113. .app-page {
  114. padding-bottom: 5rem;
  115. }
  116. }
  117. .container {
  118. max-width: 70rem;
  119. margin-left: auto;
  120. margin-right: auto;
  121. padding-left: .5rem;
  122. padding-right: .5rem;
  123. }
  124. .galleries {
  125. display: flex;
  126. flex-wrap: wrap;
  127. justify-content: space-evenly;
  128. }
  129. .gallery-cover {
  130. width: 20rem;
  131. max-width: 100%;
  132. margin-bottom: 2rem;
  133. margin-right: .5rem;
  134. }
  135. .gallery-cover a {
  136. text-decoration: none;
  137. }
  138. .gallery-cover img {
  139. width: 100%;
  140. height: 12rem;
  141. border-radius: 0.25rem;
  142. }
  143. .gallery-cover .gallery-cover-name {
  144. display: block;
  145. font-size: 1rem;
  146. font-weight: bold;
  147. overflow: hidden;
  148. text-overflow: ellipsis;
  149. }
  150. .gallery-photos {
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-evenly;
  154. margin-top: 2rem;
  155. }
  156. .photo {
  157. width: 20rem;
  158. max-width: 100%;
  159. margin-right: .5rem;
  160. margin-bottom: 2rem;
  161. }
  162. .photo img {
  163. width: 100%;
  164. height: 12rem;
  165. }