_mobile.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. @media screen and (max-width: 960px) {
  2. header nav{
  3. position: relative;
  4. width: 90%;
  5. .dropmenu{
  6. background: white;
  7. display: none;
  8. position: absolute;
  9. left: -6%;
  10. top: 100px;
  11. width: auto!important;
  12. height: auto;
  13. &>ul{
  14. flex-direction: column!important;
  15. &>li{
  16. text-align: left;
  17. &>ul{
  18. margin: auto;
  19. &>li{
  20. text-align: left;
  21. margin-left: 10px;
  22. a{
  23. font-family: $Regular;
  24. }
  25. }
  26. }
  27. &> a{
  28. border: none;
  29. line-height: 2rem;
  30. }
  31. }
  32. }
  33. &.active{
  34. display: block;
  35. }
  36. }
  37. .logo{
  38. margin: auto;
  39. }
  40. .navTrigger {
  41. cursor: pointer;
  42. width: 30px;
  43. height: 25px;
  44. margin: auto 0;
  45. left: 0;
  46. top: 0;
  47. bottom: 0;
  48. }
  49. .navTrigger i {
  50. background-color: $light-blue;
  51. border-radius: 2px;
  52. content: '';
  53. display: block;
  54. width: 100%;
  55. height: 4px;
  56. }
  57. .navTrigger i:nth-child(1) {
  58. -webkit-animation: outT 0.8s backwards;
  59. animation: outT 0.8s backwards;
  60. -webkit-animation-direction: reverse;
  61. animation-direction: reverse;
  62. }
  63. .navTrigger i:nth-child(2) {
  64. margin: 5px 0;
  65. -webkit-animation: outM 0.8s backwards;
  66. animation: outM 0.8s backwards;
  67. -webkit-animation-direction: reverse;
  68. animation-direction: reverse;
  69. }
  70. .navTrigger i:nth-child(3) {
  71. -webkit-animation: outBtm 0.8s backwards;
  72. animation: outBtm 0.8s backwards;
  73. -webkit-animation-direction: reverse;
  74. animation-direction: reverse;
  75. }
  76. .navTrigger.active i:nth-child(1) {
  77. -webkit-animation: inT 0.8s forwards;
  78. animation: inT 0.8s forwards;
  79. }
  80. .navTrigger.active i:nth-child(2) {
  81. -webkit-animation: inM 0.8s forwards;
  82. animation: inM 0.8s forwards;
  83. }
  84. .navTrigger.active i:nth-child(3) {
  85. -webkit-animation: inBtm 0.8s forwards;
  86. animation: inBtm 0.8s forwards;
  87. }
  88. @-webkit-keyframes inM {
  89. 50% {
  90. -webkit-transform: rotate(0deg);
  91. }
  92. 100% {
  93. -webkit-transform: rotate(45deg);
  94. }
  95. }
  96. @keyframes inM {
  97. 50% {
  98. transform: rotate(0deg);
  99. }
  100. 100% {
  101. transform: rotate(45deg);
  102. }
  103. }
  104. @-webkit-keyframes outM {
  105. 50% {
  106. -webkit-transform: rotate(0deg);
  107. }
  108. 100% {
  109. -webkit-transform: rotate(45deg);
  110. }
  111. }
  112. @keyframes outM {
  113. 50% {
  114. transform: rotate(0deg);
  115. }
  116. 100% {
  117. transform: rotate(45deg);
  118. }
  119. }
  120. @-webkit-keyframes inT {
  121. 0% {
  122. -webkit-transform: translateY(0px) rotate(0deg);
  123. }
  124. 50% {
  125. -webkit-transform: translateY(9px) rotate(0deg);
  126. }
  127. 100% {
  128. -webkit-transform: translateY(9px) rotate(135deg);
  129. }
  130. }
  131. @keyframes inT {
  132. 0% {
  133. transform: translateY(0px) rotate(0deg);
  134. }
  135. 50% {
  136. transform: translateY(9px) rotate(0deg);
  137. }
  138. 100% {
  139. transform: translateY(9px) rotate(135deg);
  140. }
  141. }
  142. @-webkit-keyframes outT {
  143. 0% {
  144. -webkit-transform: translateY(0px) rotate(0deg);
  145. }
  146. 50% {
  147. -webkit-transform: translateY(9px) rotate(0deg);
  148. }
  149. 100% {
  150. -webkit-transform: translateY(9px) rotate(135deg);
  151. }
  152. }
  153. @keyframes outT {
  154. 0% {
  155. transform: translateY(0px) rotate(0deg);
  156. }
  157. 50% {
  158. transform: translateY(9px) rotate(0deg);
  159. }
  160. 100% {
  161. transform: translateY(9px) rotate(135deg);
  162. }
  163. }
  164. @-webkit-keyframes inBtm {
  165. 0% {
  166. -webkit-transform: translateY(0px) rotate(0deg);
  167. }
  168. 50% {
  169. -webkit-transform: translateY(-9px) rotate(0deg);
  170. }
  171. 100% {
  172. -webkit-transform: translateY(-9px) rotate(135deg);
  173. }
  174. }
  175. @keyframes inBtm {
  176. 0% {
  177. transform: translateY(0px) rotate(0deg);
  178. }
  179. 50% {
  180. transform: translateY(-9px) rotate(0deg);
  181. }
  182. 100% {
  183. transform: translateY(-9px) rotate(135deg);
  184. }
  185. }
  186. @-webkit-keyframes outBtm {
  187. 0% {
  188. -webkit-transform: translateY(0px) rotate(0deg);
  189. }
  190. 50% {
  191. -webkit-transform: translateY(-9px) rotate(0deg);
  192. }
  193. 100% {
  194. -webkit-transform: translateY(-9px) rotate(135deg);
  195. }
  196. }
  197. @keyframes outBtm {
  198. 0% {
  199. transform: translateY(0px) rotate(0deg);
  200. }
  201. 50% {
  202. transform: translateY(-9px) rotate(0deg);
  203. }
  204. 100% {
  205. transform: translateY(-9px) rotate(135deg);
  206. }
  207. }
  208. }
  209. .gal{
  210. .title_gal{
  211. max-width: 80%!important;
  212. top: 15vw!important;
  213. }
  214. .content_gal{
  215. width: 2%!important;
  216. }
  217. }
  218. .entete .entete_c{
  219. width: 95%!important;
  220. margin: 30px auto!important;
  221. }
  222. .content{
  223. width: 80%!important;
  224. }
  225. .sidebar{
  226. position: relative!important;
  227. width: 350px!important;
  228. margin: 0 auto!important;
  229. }
  230. #devis{
  231. .title{
  232. width: 100%!important;
  233. height: auto!important;
  234. transform: translateX(0px)!important;
  235. border-radius: 0px!important;
  236. h4{
  237. margin-top: 15px!important;
  238. font-size: 1.3rem!important;
  239. margin: auto!important;
  240. transform: translateY(0%)!important;
  241. }
  242. }
  243. .txt{
  244. width: 100%!important;
  245. height: auto!important;
  246. background: $red!important;
  247. margin: auto!important;
  248. p{
  249. color: white!important;
  250. padding: 15px 55px !important;
  251. strong{
  252. font-size: 1rem!important;
  253. }
  254. }
  255. }
  256. .img{
  257. width: auto!important;
  258. }
  259. .demander-votre-devis{
  260. transform: translate(0px, 40%)!important;
  261. right: 30px!important;
  262. }
  263. }
  264. #devis.item .title, #devis.sublog .title{
  265. border-radius: 30px!important;
  266. }
  267. #item .demander-votre-devis, #sublog .demander-votre-devis{
  268. width: 300px!important;
  269. height: 110px!important;
  270. margin-top: -55px!important;
  271. a{
  272. display: inline-flex!important;
  273. }
  274. p:nth-of-type(2){
  275. display: none!important;
  276. }
  277. img{
  278. margin-left: 20px!important;
  279. margin-top: 0px!important;
  280. }
  281. }
  282. .start:not(#form)#archive, .start:not(#form)#calendrier{
  283. width: 80%!important;
  284. }
  285. .start:not(#form) .body-wrapper .card{
  286. width: calc((100% / 3) - 7.5px)!important;
  287. }
  288. .start#form .body-wrapper form{
  289. width: 90%!important;
  290. }
  291. .start#form .body-wrapper form > div.button-wrapper button{
  292. margin-right: 5%!important;
  293. }
  294. .sidebar{
  295. padding: 20px 0;
  296. ::before{
  297. display: block;
  298. width: 100vw;
  299. height: 100%;
  300. content: '';
  301. background-image: url(/user/themes/lecampus/images/Trame-bleu.svg);
  302. background-repeat: no-repeat;
  303. background-position: center;
  304. background-size: cover;
  305. position: absolute;
  306. top: 0;
  307. margin-left: -90%;
  308. z-index: -1;
  309. }
  310. }
  311. .start:not(#form) .body-wrapper .event{
  312. width: 90%!important;
  313. }
  314. .start:not(#form)#event .title{
  315. width: 90%!important;
  316. }
  317. }
  318. @media screen and (max-width: 750px) {
  319. .gal .title_gal{
  320. display: none!important;
  321. }
  322. .entete{
  323. padding: 0!important;
  324. p{
  325. font-size: 1rem;
  326. line-height: 1.4rem;
  327. }
  328. }
  329. #home .content > p{
  330. width: 100%!important;
  331. }
  332. }