app.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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: none;
  113. height: 100%;
  114. position: relative;
  115. &>.wrapper{
  116. pointer-events:all;
  117. position: relative;
  118. box-sizing: border-box;
  119. border-top: 1px solid red;
  120. border-bottom: 1px solid red;
  121. background-color: $transparent-bg;
  122. max-height: 100%; // this is not working :(
  123. padding:0 0 1em;
  124. &>*{
  125. padding:0 1em;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. article.node>h2{
  132. @include content_titles;
  133. }
  134. article.node p{
  135. @include content_courant;
  136. }
  137. img{
  138. max-width: 100%;
  139. }
  140. ul, li, ul.inline li:first-child{
  141. margin:0; padding:0;
  142. list-style: none;
  143. }
  144. body.ajax-loading &:before{
  145. content:"";
  146. display: block;
  147. position: absolute;
  148. $s:60px;
  149. width:$s; height:$s;
  150. top:calc(50% - #{$s/2}); left:calc(50% - #{$s/2});
  151. background-color: white;
  152. background-image: url(../../img/edlp-loader-anim.svg);
  153. background-size: 50%;
  154. background-repeat: no-repeat;
  155. background-position: center;
  156. border-radius: $s/2;
  157. }
  158. }
  159. // _ _ _ _ _
  160. // /_\ (_)__ ___ __ | \| |___ __| |___
  161. // / _ \ | / _` \ \ / | .` / _ \/ _` / -_)
  162. // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___|
  163. // |__/
  164. // body.path-edlp-node main{
  165. // main .col>.wrapper, .edlp-ajax-node{
  166. // height: 100%;
  167. // }
  168. // }
  169. // _ _
  170. // /_\ __ _ ___ _ _ __| |__ _
  171. // / _ \/ _` / -_) ' \/ _` / _` |
  172. // /_/ \_\__, \___|_||_\__,_\__,_|
  173. // |___/
  174. body.path-agenda main .col{
  175. &>.wrapper{
  176. height:100%;
  177. }
  178. }
  179. #agenda{
  180. position: relative;
  181. white-space: nowrap;
  182. height: 100%;
  183. div.column{
  184. white-space: normal;
  185. display: inline-block;
  186. vertical-align: top;
  187. height:100%;
  188. }
  189. div.next-event{
  190. width:65%;
  191. }
  192. div.future-past-events{
  193. width:33%;
  194. }
  195. ul,li{
  196. margin:0; padding:0;
  197. list-style: none;
  198. }
  199. article.node--type-evenement{
  200. h2{ @include content_titles; }
  201. }
  202. }
  203. // ___ _ _ _
  204. // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
  205. // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
  206. // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
  207. body.path-productions{
  208. .layout-content .row{
  209. white-space: normal;
  210. .col{
  211. height:auto;
  212. &.col-2:last-child{
  213. padding-left: 0em;
  214. padding-right: 1em;
  215. }
  216. >.wrapper{
  217. margin-bottom: 1em;
  218. padding:0;
  219. >*{
  220. padding:0;
  221. }
  222. article.node{
  223. .field--name-field-visuel{
  224. a,img{
  225. display: block;
  226. width: 100%; height:auto;
  227. }
  228. }
  229. header{
  230. background-color: rgba(255,255,255,0.95);
  231. padding:0.5em 1em;
  232. h2.node-title{
  233. margin:0;
  234. }
  235. p{margin: 0;}
  236. }
  237. &.node--view-mode-image-2-columns{
  238. header{
  239. position: absolute;
  240. bottom: 0; left:0;
  241. h2.node-title{
  242. font-size: 1.6em;
  243. font-weight: 500;
  244. }
  245. }
  246. }
  247. &.node--view-mode-image-1-columns{
  248. h2.node-title{
  249. font-size: 1.2em;
  250. font-weight: 500;
  251. }
  252. }
  253. &.node--view-mode-text-1-column{
  254. padding:0 1em;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. }
  261. // ___ _
  262. // | __|__ ___| |_ ___ _ _
  263. // | _/ _ \/ _ \ _/ -_) '_|
  264. // |_|\___/\___/\__\___|_|
  265. @mixin oblique-list {
  266. display: inline-block;
  267. position: relative;
  268. list-style: none;
  269. margin: 0 1.5em 0 0;
  270. // width:2em; height:10em;
  271. padding: 0;
  272. a{
  273. position: absolute;
  274. bottom: 0;
  275. transform-origin: left bottom;
  276. transform: rotateZ(-45deg);
  277. color: #000;
  278. text-decoration: none;
  279. text-transform: uppercase;
  280. font-size: 0.756em;
  281. white-space: nowrap;
  282. }
  283. }
  284. footer{
  285. // text-align: center;
  286. display: table;
  287. padding: 0 0 0.5em 0;
  288. >.region{
  289. display: table-cell;
  290. white-space: nowrap;
  291. pointer-events: all;
  292. // outline: 1px dotted purple;
  293. // position: relative;
  294. }
  295. .region-footer-left{
  296. text-align: left;
  297. }
  298. .region-footer-center{
  299. text-align: center;
  300. }
  301. .region-footer-right{
  302. text-align: right;
  303. min-width: 30px;
  304. }
  305. nav.block-menu{
  306. display: inline-block;
  307. ul{
  308. margin:0;
  309. padding:0;
  310. li{
  311. @include oblique-list;
  312. }
  313. }
  314. }
  315. .block-language{
  316. display: inline-block;
  317. position: relative;
  318. ul{
  319. position: absolute;
  320. bottom:0;
  321. margin:0;
  322. padding:0;
  323. transform-origin: left bottom;
  324. transform: rotateZ(-45deg);
  325. white-space: nowrap;
  326. li{
  327. margin:0; padding:0;
  328. list-style: none;
  329. display: inline-block;
  330. &:last-of-type{
  331. &:before{
  332. content:"/";
  333. margin:0 0.2em;
  334. }
  335. }
  336. a{
  337. color: inherit;
  338. text-decoration: none;
  339. font-size: 0.756em;
  340. }
  341. &.is-active{
  342. a{color: red;}
  343. }
  344. }
  345. }
  346. }
  347. .block-block-edlp-entrees{
  348. display: inline-block;
  349. // vertical-align: top;
  350. ul{
  351. white-space: nowrap;
  352. li{
  353. @include oblique-list;
  354. margin:0;
  355. white-space: nowrap;
  356. pointer-events: none;
  357. span.oblique-wrapper{
  358. display: inline-block;
  359. vertical-align: bottom;
  360. position: relative;
  361. width:1.5em;
  362. }
  363. a.term-link{
  364. // outline: 1px solid blue;
  365. pointer-events: all;
  366. background-color: #fff;
  367. padding-right: 0.4em;
  368. &:before{
  369. content: "";
  370. display:inline-block;
  371. $sq:7px;
  372. width: $sq; height:$sq;
  373. border: 1px solid #000;
  374. margin-right: 0.5em;
  375. }
  376. }
  377. .entree-content{
  378. display: inline-block;
  379. // outline: 1px solid green;
  380. width:0;
  381. overflow: hidden;
  382. opacity: 0;
  383. transition: all 300ms ease-in-out;
  384. transition-property: width,opacity;
  385. span.oblique-wrapper:first-of-type{
  386. margin-left: 0.5em;
  387. }
  388. span.oblique-wrapper a{
  389. text-transform: none;
  390. pointer-events: auto;
  391. &:before{
  392. content: "";
  393. display:inline-block;
  394. $sq:5px;
  395. width: $sq; height:$sq;
  396. border: 1px solid #000;
  397. margin-right: 0.5em;
  398. }
  399. }
  400. .term-description{
  401. display: inline-block;
  402. margin-left: 1.5em;
  403. text-align: left;
  404. width:250px;
  405. word-wrap:break-word;
  406. // word-break:break-all;
  407. hyphens: auto;
  408. white-space: normal;
  409. background-color: $transparent-bg;
  410. padding:0.5em;
  411. padding-bottom:0;
  412. p{
  413. font-size: 0.65em;
  414. margin:0;
  415. }
  416. }
  417. }
  418. &[tid='134']{
  419. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  420. border-color: $e_col_134;background-color: $e_col_134;}}
  421. &[tid='121']{
  422. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  423. border-color: $e_col_121;background-color: $e_col_121;}}
  424. &[tid='125']{
  425. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  426. border-color: $e_col_125;background-color: $e_col_125;}}
  427. &[tid='119']{
  428. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  429. border-color: $e_col_119;background-color: $e_col_119;}}
  430. &[tid='132']{
  431. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  432. border-color: $e_col_132;background-color: $e_col_132;}}
  433. &[tid='122']{
  434. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  435. border-color: $e_col_122;background-color: $e_col_122;}}
  436. &[tid='129']{
  437. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  438. border-color: $e_col_129;background-color: $e_col_129;}}
  439. &[tid='120']{
  440. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  441. border-color: $e_col_120;background-color: $e_col_120;}}
  442. &[tid='130']{
  443. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  444. border-color: $e_col_130;background-color: $e_col_130;}}
  445. &[tid='118']{
  446. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  447. border-color: $e_col_118;background-color: $e_col_118;}}
  448. &[tid='127']{
  449. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  450. border-color: $e_col_127;background-color: $e_col_127;}}
  451. &[tid='133']{
  452. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  453. border-color: $e_col_133;background-color: $e_col_133;}}
  454. &[tid='128']{
  455. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  456. border-color: $e_col_128;background-color: $e_col_128;}}
  457. &[tid='124']{
  458. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  459. border-color: $e_col_124;background-color: $e_col_124;}}
  460. &[tid='116']{
  461. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  462. border-color: $e_col_116;background-color: $e_col_116;}}
  463. &[tid='117']{
  464. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  465. border-color: $e_col_117;background-color: $e_col_117;}}
  466. &[tid='131']{
  467. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  468. border-color: $e_col_131;background-color: $e_col_131;}}
  469. &[tid='126']{
  470. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  471. border-color: $e_col_126;background-color: $e_col_126;}}
  472. &[tid='123']{
  473. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  474. border-color: $e_col_123;background-color: $e_col_123;}}
  475. // &.highlighted{
  476. // a.term_link{
  477. // color: red;
  478. // }
  479. // }
  480. .entree-content span.oblique-wrapper a:not(:hover):before{background-color: #fff!important;}
  481. &:not(.opened){
  482. a.term-link:not(:hover):not(.highlighted):before{
  483. background-color: #fff!important;
  484. }
  485. }
  486. &.opened{
  487. // outline: 1px solid purple;
  488. a.term-link:after {
  489. content: '';
  490. position: absolute;
  491. left: 15px; right:0;
  492. bottom: -3px;
  493. border-bottom: 1px solid grey;
  494. }
  495. .entree-content{
  496. width:350px;
  497. opacity: 1;
  498. }
  499. }
  500. // &:not(:first-of-type) .entree-content{display: none;}
  501. }
  502. }
  503. }
  504. #block-userlogin{
  505. // outline: 1px solid blue;
  506. $wh:20px;
  507. position: relative;
  508. width:$wh; height: $wh;
  509. // background-color: blue;
  510. h2{
  511. position: relative;
  512. width:$wh; height:$wh;
  513. background-image: url(../../img/user.svg);
  514. // background-color: red;
  515. background-size: contain;
  516. text-indent: $wh*2;
  517. margin: 0;
  518. overflow: hidden;
  519. z-index: 1;
  520. cursor: pointer;
  521. }
  522. .block-content{
  523. z-index: 0;
  524. position:absolute;
  525. right:0;bottom:$wh;
  526. padding:0.5em;
  527. padding-bottom: 20px;
  528. background-color: $transparent-bg;
  529. overflow: hidden;
  530. box-sizing:border-box;
  531. height: 0px;
  532. opacity:0;
  533. pointer-events:none;
  534. transition: all 0.5s ease-in-out;
  535. transition-property: height,opacity;
  536. // &:hover{
  537. // height:200px;
  538. // opacity:1;
  539. // pointer-events: auto;
  540. // }
  541. form{
  542. font-size: 0.75em;
  543. }
  544. .item-list{
  545. ul{margin:0;}
  546. li{
  547. margin:0;
  548. list-style: none;
  549. a{
  550. color: inherit;
  551. text-decoration: none;
  552. font-size: 0.75em;
  553. white-space:nowrap;
  554. }
  555. }
  556. }
  557. }
  558. &:hover{
  559. .block-content{
  560. height:200px;
  561. opacity: 1;
  562. pointer-events:auto;
  563. }
  564. }
  565. }
  566. }