_mobile.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. @media screen and (max-width: 414px) {
  2. body{
  3. #start{
  4. width: $Wi-m;
  5. #text_figli{
  6. #item_list{
  7. .card{
  8. width: $Wi-m;
  9. #item{
  10. width: calc(100% + (.5rem * 3));
  11. }
  12. }
  13. }
  14. }
  15. }
  16. }
  17. // typographie
  18. header{
  19. a{
  20. font-size: $txt-figli-m;
  21. line-height: $Flhome-m;
  22. }
  23. }
  24. .home{
  25. p{
  26. font-size: $txt-figli-m!important;
  27. line-height: $Flhome-m!important;
  28. }
  29. }
  30. .other_projets{
  31. h3{
  32. font-size: $txt-figli-m;
  33. }
  34. }
  35. // mep
  36. header{
  37. width: calc( #{$Wi-m} - (#{$marg} * 2) );
  38. }
  39. body{
  40. #start{
  41. width: calc( #{$Wi-m} - (#{$marg} * 2) );
  42. }
  43. &:not(.home){
  44. #start{
  45. margin-top: $Flhome;
  46. }
  47. }
  48. .sidebar-right{
  49. display: none;
  50. }
  51. }
  52. #item_list{
  53. .card{
  54. width: calc( #{$Wi-m} )!important;
  55. &:nth-child(odd){
  56. margin-right: 0;
  57. }
  58. .card-header{
  59. margin-bottom: $marg;
  60. & > * {
  61. margin-right: $marg;
  62. }
  63. }
  64. }
  65. }
  66. .other_projets{
  67. margin-top: $margI;
  68. .card{
  69. width: $Wi-m;
  70. &:nth-child(-1n+3){
  71. margin-right: 0;
  72. }
  73. }
  74. }
  75. }
  76. @media screen and (max-width: 768px) and (orientation: portrait) {
  77. body{
  78. #start{
  79. width: $Wi80-m;
  80. #text_figli{
  81. #item_list{
  82. .card{
  83. width: $Wi33-m;
  84. #item{
  85. width: calc(300% + (.5rem * 3));
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. // typographie
  93. header{
  94. a{
  95. font-size: 2.5rem;
  96. line-height: 3rem;
  97. }
  98. }
  99. // .home{
  100. // p{
  101. // font-size: $txt-figli-t!important;
  102. // line-height: $Flhome-t!important;
  103. // }
  104. // }
  105. .other_projets{
  106. h3{
  107. font-size: $txt-figli-t;
  108. }
  109. }
  110. body{
  111. &:not(.home){
  112. #start{
  113. margin-top: 5rem;
  114. }
  115. }
  116. }
  117. #item_list{
  118. .card{
  119. width: calc( #{$Wi-m} );
  120. &:nth-child(odd){
  121. margin-right: 0;
  122. }
  123. .card-header{
  124. margin-bottom: $marg;
  125. & > * {
  126. margin-right: $marg;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. @media screen and (max-width: 812px) and (orientation: landscape) {
  133. // typographie
  134. header{
  135. a{
  136. font-size: $txt-figli-m;
  137. line-height: $Flhome-m;
  138. }
  139. }
  140. .home{
  141. p{
  142. font-size: $txt-figli-m!important;
  143. line-height: $Flhome-m!important;
  144. }
  145. }
  146. .other_projets{
  147. h3{
  148. font-size: $txt-figli-m;
  149. }
  150. }
  151. // mep
  152. header{
  153. width: calc( #{$Wi-m} - (#{$marg} * 2) );
  154. }
  155. body{
  156. #start{
  157. width: calc( #{$Wi-m} - (#{$marg} * 2) );
  158. }
  159. &:not(.home){
  160. #start{
  161. margin-top: $Flhome;
  162. }
  163. }
  164. .sidebar-right{
  165. display: none;
  166. }
  167. }
  168. #item_list{
  169. .card{
  170. width: $Wi50;
  171. &:nth-child(odd){
  172. margin-right: $margI;
  173. }
  174. }
  175. }
  176. .other_projets{
  177. .card{
  178. width: $Wi33;
  179. &:nth-child(-1n+3){
  180. margin-right: $marg;
  181. }
  182. }
  183. }
  184. }
  185. @media screen and (max-width: 910px) and (orientation: portrait) {
  186. header{
  187. a{
  188. font-size: 2.5rem;
  189. line-height: 3rem;
  190. }
  191. }
  192. .home{
  193. p{
  194. font-size: $txt-figli-t!important;
  195. line-height: $Flhome-t!important;
  196. }
  197. }
  198. .other_projets{
  199. h3{
  200. font-size: $txt-figli-t;
  201. }
  202. }
  203. body{
  204. &:not(.home){
  205. #start{
  206. margin-top: 5rem;
  207. }
  208. }
  209. }
  210. }
  211. @media screen and (max-width: 660px) {
  212. header{
  213. a{
  214. font-size: $txt-figli-m;
  215. line-height: $Flhome-m;
  216. }
  217. }
  218. .home{
  219. p{
  220. font-size: $txt-figli-m!important;
  221. line-height: $Flhome-m!important;
  222. }
  223. }
  224. .other_projets{
  225. h3{
  226. font-size: $txt-figli-m;
  227. }
  228. }
  229. body{
  230. &:not(.home){
  231. #start{
  232. margin-top: $Flhome;
  233. }
  234. }
  235. }
  236. }
  237. @media screen and (max-width: 1024px) and (orientation: landscape) {
  238. body{
  239. #start{
  240. width: $Wi80-m;
  241. #text_figli{
  242. #item_list{
  243. .card{
  244. width: $Wi33-m;
  245. #item{
  246. width: calc(300% + (.5rem * 3));
  247. }
  248. }
  249. }
  250. }
  251. }
  252. }
  253. }