app.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. // @Author: Bachir Soussi Chiadmi <bach>
  2. // @Date: 18-12-2017
  3. // @Email: bachir@figureslibres.io
  4. // @Filename: app.scss
  5. // @Last modified by: bach
  6. // @Last modified time: 20-12-2017
  7. // @License: GPL-V3
  8. @import 'base/reset';
  9. @import 'base/colors';
  10. @import 'base/shared_variables';
  11. @import 'base/grid';
  12. @import 'base/layout';
  13. @import 'base/fonts';
  14. // header
  15. .layout-container{
  16. pointer-events: none;
  17. }
  18. header[role="banner"]{
  19. padding:0 0 1em 0;
  20. border-bottom: 1px solid red;
  21. pointer-events: all;
  22. }
  23. #block-edlptheme-branding{
  24. display: inline-block;
  25. h1{
  26. margin:0; display: inline-block;
  27. font-size: 1.5em;
  28. text-transform: lowercase;
  29. a{
  30. $col_w:3.74em;
  31. $col_gap:2em;
  32. line-height: 0.93;
  33. text-align: center;
  34. color: inherit;
  35. text-decoration: none;
  36. display: inline-block;
  37. columns:$col_w 2;
  38. column-gap: $col_gap;
  39. word-break:break-all;
  40. hyphens:auto;
  41. position: relative;
  42. &:after, &:before{
  43. content: '';
  44. position: absolute;
  45. top:50%;
  46. height:0;
  47. }
  48. &:before{
  49. left:$col_w;
  50. border-bottom:0.08em solid #000;
  51. width:2.5em;
  52. transform: rotateZ(-45deg);
  53. }
  54. &:after{
  55. $w:0.5em;
  56. top:47%;
  57. left:($col_w+$col_gap/2);
  58. border-top:0.2em solid red;
  59. width:$w;
  60. transform: rotateZ(45deg);
  61. }
  62. }
  63. }
  64. }
  65. #block-mainnavigation{
  66. float:right;
  67. ul{
  68. margin:0; padding: 0;
  69. white-space: nowrap;
  70. li{
  71. margin:0; padding:0;
  72. display: inline-block;
  73. a{
  74. font-size: 0.756em;
  75. color:inherit;
  76. text-decoration: none;
  77. text-transform: uppercase;
  78. margin-left: 1em;
  79. &:before{
  80. content: "";
  81. display:inline-block;
  82. $sq:0.6em;
  83. width: $sq; height:$sq;
  84. border: 1px solid #000;
  85. margin-right: 0.3em;
  86. }
  87. &.ajax-loading:before{
  88. @keyframes rotation {
  89. from {transform: rotate(0deg);}
  90. to {transform: rotate(359deg);}
  91. }
  92. animation: rotation 2s infinite linear;
  93. }
  94. &.is-active:before,
  95. &:hover:before{
  96. border-color: red;
  97. background-color: red;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. // main
  104. main[role="main"]{
  105. .layout-content{
  106. pointer-events: none;
  107. .row{
  108. pointer-events: none;
  109. height:100%;
  110. overflow: hidden;
  111. .col{
  112. pointer-events:all;
  113. max-height: 100%;
  114. position: relative;
  115. &>.wrapper{
  116. position: relative;
  117. box-sizing: border-box;
  118. border-top: 1px solid red;
  119. border-bottom: 1px solid red;
  120. background-color: $transparent-bg;
  121. max-height: 100%; // this is not working :(
  122. padding:0 0 1em;
  123. &>*{
  124. padding:0 1em;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. article.node>h2{
  131. @include content_titles;
  132. }
  133. article.node p{
  134. @include content_courant;
  135. }
  136. img{
  137. max-width: 100%;
  138. }
  139. ul, li, ul.inline li:first-child{
  140. margin:0; padding:0;
  141. list-style: none;
  142. }
  143. body.ajax-loading &:before{
  144. content:"";
  145. display: block;
  146. position: absolute;
  147. $s:60px;
  148. width:$s; height:$s;
  149. top:calc(50% - #{$s/2}); left:calc(50% - #{$s/2});
  150. background-color: white;
  151. background-image: url(../../img/edlp-loader-anim.svg);
  152. background-size: 50%;
  153. background-repeat: no-repeat;
  154. background-position: center;
  155. border-radius: $s/2;
  156. }
  157. }
  158. body.path-agenda main .col{
  159. &, &>.wrapper{
  160. height:100%;
  161. }
  162. }
  163. #agenda{
  164. position: relative;
  165. white-space: nowrap;
  166. height: 100%;
  167. div.column{
  168. white-space: normal;
  169. display: inline-block;
  170. vertical-align: top;
  171. height:100%;
  172. }
  173. div.next-event{
  174. width:65%;
  175. }
  176. div.future-past-events{
  177. width:33%;
  178. }
  179. ul,li{
  180. margin:0; padding:0;
  181. list-style: none;
  182. }
  183. article.node--type-evenement{
  184. h2{ @include content_titles; }
  185. }
  186. }
  187. // Footer
  188. @mixin oblique-list {
  189. display: inline-block;
  190. position: relative;
  191. list-style: none;
  192. margin: 0 1.5em 0 0;
  193. // width:2em; height:10em;
  194. padding: 0;
  195. a{
  196. position: absolute;
  197. bottom: 0;
  198. transform-origin: left bottom;
  199. transform: rotateZ(-45deg);
  200. color: #000;
  201. text-decoration: none;
  202. text-transform: uppercase;
  203. font-size: 0.756em;
  204. white-space: nowrap;
  205. }
  206. }
  207. footer{
  208. // text-align: center;
  209. display: table;
  210. padding: 0 0 0.5em 0;
  211. >.region{
  212. display: table-cell;
  213. white-space: nowrap;
  214. pointer-events: all;
  215. // outline: 1px dotted purple;
  216. // position: relative;
  217. }
  218. .region-footer-left{
  219. text-align: left;
  220. }
  221. .region-footer-center{
  222. text-align: center;
  223. }
  224. .region-footer-right{
  225. text-align: right;
  226. min-width: 30px;
  227. }
  228. nav.block-menu{
  229. display: inline-block;
  230. ul{
  231. margin:0;
  232. padding:0;
  233. li{
  234. @include oblique-list;
  235. }
  236. }
  237. }
  238. .block-language{
  239. display: inline-block;
  240. position: relative;
  241. ul{
  242. position: absolute;
  243. bottom:0;
  244. margin:0;
  245. padding:0;
  246. transform-origin: left bottom;
  247. transform: rotateZ(-45deg);
  248. white-space: nowrap;
  249. li{
  250. margin:0; padding:0;
  251. list-style: none;
  252. display: inline-block;
  253. &:last-of-type{
  254. &:before{
  255. content:"/";
  256. margin:0 0.2em;
  257. }
  258. }
  259. a{
  260. color: inherit;
  261. text-decoration: none;
  262. font-size: 0.756em;
  263. }
  264. &.is-active{
  265. a{color: red;}
  266. }
  267. }
  268. }
  269. }
  270. .block-block-edlp-entrees{
  271. display: inline-block;
  272. // vertical-align: top;
  273. ul{
  274. white-space: nowrap;
  275. li{
  276. @include oblique-list;
  277. margin:0;
  278. white-space: nowrap;
  279. pointer-events: none;
  280. span.oblique-wrapper{
  281. display: inline-block;
  282. vertical-align: bottom;
  283. position: relative;
  284. width:1.5em;
  285. }
  286. a.term-link{
  287. // outline: 1px solid blue;
  288. pointer-events: all;
  289. background-color: #fff;
  290. padding-right: 0.4em;
  291. &:before{
  292. content: "";
  293. display:inline-block;
  294. $sq:7px;
  295. width: $sq; height:$sq;
  296. border: 1px solid #000;
  297. margin-right: 0.5em;
  298. }
  299. }
  300. .entree-content{
  301. display: inline-block;
  302. // outline: 1px solid green;
  303. width:0;
  304. overflow: hidden;
  305. opacity: 0;
  306. transition: all 300ms ease-in-out;
  307. transition-property: width,opacity;
  308. span.oblique-wrapper:first-of-type{
  309. margin-left: 0.5em;
  310. }
  311. span.oblique-wrapper a{
  312. text-transform: none;
  313. pointer-events: auto;
  314. &:before{
  315. content: "";
  316. display:inline-block;
  317. $sq:5px;
  318. width: $sq; height:$sq;
  319. border: 1px solid #000;
  320. margin-right: 0.5em;
  321. }
  322. }
  323. .term-description{
  324. display: inline-block;
  325. margin-left: 1.5em;
  326. text-align: left;
  327. width:250px;
  328. word-wrap:break-word;
  329. // word-break:break-all;
  330. hyphens: auto;
  331. white-space: normal;
  332. background-color: $transparent-bg;
  333. padding:0.5em;
  334. padding-bottom:0;
  335. p{
  336. font-size: 0.65em;
  337. margin:0;
  338. }
  339. }
  340. }
  341. &[tid='134']{
  342. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  343. border-color: $e_col_134;background-color: $e_col_134;}}
  344. &[tid='121']{
  345. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  346. border-color: $e_col_121;background-color: $e_col_121;}}
  347. &[tid='125']{
  348. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  349. border-color: $e_col_125;background-color: $e_col_125;}}
  350. &[tid='119']{
  351. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  352. border-color: $e_col_119;background-color: $e_col_119;}}
  353. &[tid='132']{
  354. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  355. border-color: $e_col_132;background-color: $e_col_132;}}
  356. &[tid='122']{
  357. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  358. border-color: $e_col_122;background-color: $e_col_122;}}
  359. &[tid='129']{
  360. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  361. border-color: $e_col_129;background-color: $e_col_129;}}
  362. &[tid='120']{
  363. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  364. border-color: $e_col_120;background-color: $e_col_120;}}
  365. &[tid='130']{
  366. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  367. border-color: $e_col_130;background-color: $e_col_130;}}
  368. &[tid='118']{
  369. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  370. border-color: $e_col_118;background-color: $e_col_118;}}
  371. &[tid='127']{
  372. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  373. border-color: $e_col_127;background-color: $e_col_127;}}
  374. &[tid='133']{
  375. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  376. border-color: $e_col_133;background-color: $e_col_133;}}
  377. &[tid='128']{
  378. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  379. border-color: $e_col_128;background-color: $e_col_128;}}
  380. &[tid='124']{
  381. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  382. border-color: $e_col_124;background-color: $e_col_124;}}
  383. &[tid='116']{
  384. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  385. border-color: $e_col_116;background-color: $e_col_116;}}
  386. &[tid='117']{
  387. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  388. border-color: $e_col_117;background-color: $e_col_117;}}
  389. &[tid='131']{
  390. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  391. border-color: $e_col_131;background-color: $e_col_131;}}
  392. &[tid='126']{
  393. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  394. border-color: $e_col_126;background-color: $e_col_126;}}
  395. &[tid='123']{
  396. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  397. border-color: $e_col_123;background-color: $e_col_123;}}
  398. // &.highlighted{
  399. // a.term_link{
  400. // color: red;
  401. // }
  402. // }
  403. .entree-content span.oblique-wrapper a:not(:hover):before{background-color: #fff!important;}
  404. &:not(.opened){
  405. a.term-link:not(:hover):not(.highlighted):before{
  406. background-color: #fff!important;
  407. }
  408. }
  409. &.opened{
  410. // outline: 1px solid purple;
  411. a.term-link:after {
  412. content: '';
  413. position: absolute;
  414. left: 15px; right:0;
  415. bottom: -3px;
  416. border-bottom: 1px solid grey;
  417. }
  418. .entree-content{
  419. width:350px;
  420. opacity: 1;
  421. }
  422. }
  423. // &:not(:first-of-type) .entree-content{display: none;}
  424. }
  425. }
  426. }
  427. #block-userlogin{
  428. // outline: 1px solid blue;
  429. $wh:20px;
  430. position: relative;
  431. width:$wh; height: $wh;
  432. // background-color: blue;
  433. h2{
  434. position: relative;
  435. width:$wh; height:$wh;
  436. background-image: url(../../img/user.svg);
  437. // background-color: red;
  438. background-size: contain;
  439. text-indent: $wh*2;
  440. margin: 0;
  441. overflow: hidden;
  442. z-index: 1;
  443. cursor: pointer;
  444. }
  445. .block-content{
  446. z-index: 0;
  447. position:absolute;
  448. right:0;bottom:$wh;
  449. padding:0.5em;
  450. padding-bottom: 20px;
  451. background-color: $transparent-bg;
  452. overflow: hidden;
  453. box-sizing:border-box;
  454. height: 0px;
  455. opacity:0;
  456. pointer-events:none;
  457. transition: all 0.5s ease-in-out;
  458. transition-property: height,opacity;
  459. // &:hover{
  460. // height:200px;
  461. // opacity:1;
  462. // pointer-events: auto;
  463. // }
  464. form{
  465. font-size: 0.75em;
  466. }
  467. .item-list{
  468. ul{margin:0;}
  469. li{
  470. margin:0;
  471. list-style: none;
  472. a{
  473. color: inherit;
  474. text-decoration: none;
  475. font-size: 0.75em;
  476. white-space:nowrap;
  477. }
  478. }
  479. }
  480. }
  481. &:hover{
  482. .block-content{
  483. height:200px;
  484. opacity: 1;
  485. pointer-events:auto;
  486. }
  487. }
  488. }
  489. }