app.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  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. position: relative;
  20. padding:0 0 1em 0;
  21. border-bottom: 1px solid red;
  22. pointer-events: all;
  23. }
  24. @mixin spining-loader-square{
  25. @keyframes rotation {
  26. from {transform: rotate(0deg);}
  27. to {transform: rotate(359deg);}
  28. }
  29. animation: rotation 2s infinite linear;
  30. }
  31. #block-edlptheme-branding{
  32. display: inline-block;
  33. h1{
  34. margin:0; display: inline-block;
  35. font-size: 1.5em;
  36. text-transform: lowercase;
  37. a{
  38. $col_w:3.74em;
  39. $col_gap:2em;
  40. line-height: 0.93;
  41. text-align: center;
  42. color: inherit;
  43. text-decoration: none;
  44. display: inline-block;
  45. columns:$col_w 2;
  46. column-gap: $col_gap;
  47. word-break:break-all;
  48. hyphens:auto;
  49. position: relative;
  50. &:after, &:before{
  51. content: '';
  52. position: absolute;
  53. top:50%;
  54. height:0;
  55. }
  56. &:before{
  57. left:$col_w;
  58. border-bottom:0.08em solid #000;
  59. width:2.5em;
  60. transform: rotateZ(-45deg);
  61. }
  62. &:after{
  63. $w:0.5em;
  64. top:47%;
  65. left:($col_w+$col_gap/2);
  66. border-top:0.2em solid red;
  67. width:$w;
  68. transform: rotateZ(45deg);
  69. }
  70. }
  71. }
  72. }
  73. #block-mainnavigation{
  74. float:right;
  75. ul{
  76. margin:0; padding: 0;
  77. white-space: nowrap;
  78. li{
  79. margin:0; padding:0;
  80. display: inline-block;
  81. a{
  82. font-size: 0.756em;
  83. color:inherit;
  84. text-decoration: none;
  85. text-transform: uppercase;
  86. margin-left: 1em;
  87. &:before{
  88. content: "";
  89. display:inline-block;
  90. $sq:0.6em;
  91. width: $sq; height:$sq;
  92. border: 1px solid #000;
  93. margin-right: 0.3em;
  94. }
  95. &.ajax-loading:before{
  96. @include spining-loader-square;
  97. }
  98. &.is-active:before,
  99. &:hover:before{
  100. border-color: red;
  101. background-color: red;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. // main
  108. main[role="main"]{
  109. .layout-content{
  110. pointer-events: none;
  111. .row{
  112. pointer-events: none;
  113. height:100%;
  114. overflow: hidden;
  115. .col{
  116. pointer-events: none;
  117. height: 100%;
  118. position: relative;
  119. &>.wrapper{
  120. pointer-events:all;
  121. position: relative;
  122. box-sizing: border-box;
  123. border-top: 1px solid red;
  124. border-bottom: 1px solid red;
  125. background-color: $transparent-bg;
  126. max-height: 100%; // this is not working :(
  127. padding:0 0 1em;
  128. &>*{
  129. padding:0 1em;
  130. }
  131. }
  132. }
  133. }
  134. }
  135. article.node>h2{
  136. @include content_titles;
  137. }
  138. article.node p{
  139. @include content_courant;
  140. }
  141. img{
  142. max-width: 100%;
  143. height: auto;
  144. }
  145. ul, li, ul.inline li:first-child{
  146. margin:0; padding:0;
  147. list-style: none;
  148. }
  149. // ajax loading effects
  150. .layout-content{
  151. transition: opacity 0.5s ease-in-out;
  152. opacity: 1;
  153. }
  154. body.ajax-loading &{
  155. .layout-content{
  156. opacity:0.2;
  157. }
  158. &:before{
  159. content:"";
  160. display: block;
  161. position: absolute;
  162. z-index: 10;
  163. $s:60px;
  164. width:$s; height:$s;
  165. top:calc(50% - #{$s/2}); left:calc(50% - #{$s/2});
  166. background-color: white;
  167. background-image: url(../../img/edlp-loader-anim.svg);
  168. background-size: 50%;
  169. background-repeat: no-repeat;
  170. background-position: center;
  171. border-radius: $s/2;
  172. }
  173. }
  174. }
  175. // _ _ _ ___ _
  176. // /_\ _ _ __| (_)___| _ \ |__ _ _ _ ___ _ _
  177. // / _ \ || / _` | / _ \ _/ / _` | || / -_) '_|
  178. // /_/ \_\_,_\__,_|_\___/_| |_\__,_|\_, \___|_|
  179. // |__/
  180. #audio-player{
  181. position: absolute;
  182. top:0; left:0;
  183. background-color: white;
  184. height:100%; min-width: 300px; max-width:500px;
  185. z-index: 20;
  186. outline: 1px dotted green;
  187. .time-line{
  188. position: relative;
  189. width:50px; height:1px;
  190. background-color: #000;
  191. overflow: visible;
  192. // border-top: 1px solid #000;
  193. transform: rotateZ(-45deg);
  194. .loader{
  195. width:0; height:100%;
  196. background-color: red;
  197. top:0;left:0;
  198. }
  199. .cursor{
  200. height:10px;width:0;
  201. border-left: 2px solid red;
  202. position:absolute;
  203. left:0; top:-5px;
  204. }
  205. }
  206. }
  207. // _ _ _ _ _
  208. // /_\ (_)__ ___ __ | \| |___ __| |___
  209. // / _ \ | / _` \ \ / | .` / _ \/ _` / -_)
  210. // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___|
  211. // |__/
  212. // body.path-edlp-node main{
  213. // main .col>.wrapper, .edlp-ajax-node{
  214. // height: 100%;
  215. // }
  216. // }
  217. // _ _
  218. // /_\ __ _ ___ _ _ __| |__ _
  219. // / _ \/ _` / -_) ' \/ _` / _` |
  220. // /_/ \_\__, \___|_||_\__,_\__,_|
  221. // |___/
  222. body.path-agenda main .col{
  223. &>.wrapper{
  224. height:100%;
  225. }
  226. }
  227. #agenda{
  228. position: relative;
  229. white-space: nowrap;
  230. height: 100%;
  231. div.column{
  232. white-space: normal;
  233. display: inline-block;
  234. vertical-align: top;
  235. height:100%;
  236. }
  237. div.next-event{
  238. width:65%;
  239. }
  240. div.future-past-events{
  241. width:33%;
  242. }
  243. ul,li{
  244. margin:0; padding:0;
  245. list-style: none;
  246. }
  247. article.node--type-evenement{
  248. h2{ @include content_titles; }
  249. }
  250. }
  251. // ___ _ _ _
  252. // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
  253. // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
  254. // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
  255. body.path-productions{
  256. .layout-content .row{
  257. white-space: normal;
  258. .col{
  259. height:auto;
  260. &.col-2:last-child{
  261. padding-left: 0em;
  262. padding-right: 1em;
  263. }
  264. >.wrapper{
  265. margin-bottom: 1em;
  266. padding:0;
  267. >*{padding:0;}
  268. article.node{
  269. .field--name-field-visuel{
  270. a,img{
  271. display: block;
  272. width: 100%; height:auto;
  273. }
  274. }
  275. header{
  276. background-color: rgba(255,255,255,0.95);
  277. padding:0.5em 1em;
  278. h2.node-title{
  279. margin:0;
  280. }
  281. p{margin: 0;}
  282. }
  283. &.node--view-mode-image-2-columns{
  284. header{
  285. position: absolute;
  286. bottom: 0; left:0;
  287. h2.node-title{
  288. font-size: 1.6em;
  289. font-weight: 500;
  290. }
  291. }
  292. }
  293. &.node--view-mode-image-1-columns{
  294. h2.node-title{
  295. font-size: 1.2em;
  296. font-weight: 500;
  297. }
  298. }
  299. &.node--view-mode-text-1-column{
  300. padding:0 1em;
  301. }
  302. }
  303. }
  304. }
  305. }
  306. }
  307. // ___ _
  308. // | __|__ ___| |_ ___ _ _
  309. // | _/ _ \/ _ \ _/ -_) '_|
  310. // |_|\___/\___/\__\___|_|
  311. @mixin oblique-list {
  312. display: inline-block;
  313. position: relative;
  314. list-style: none;
  315. margin: 0 1.5em 0 0;
  316. // width:2em; height:10em;
  317. padding: 0;
  318. a{
  319. position: absolute;
  320. bottom: 0;
  321. transform-origin: left bottom;
  322. transform: rotateZ(-45deg);
  323. color: #000;
  324. text-decoration: none;
  325. text-transform: uppercase;
  326. font-size: 0.756em;
  327. white-space: nowrap;
  328. }
  329. }
  330. footer{
  331. pointer-events: none;
  332. // outline: 1px dotted blue;
  333. // text-align: center;
  334. display: table;
  335. padding: 0 0 0.5em 0;
  336. >.region{
  337. display: table-cell;
  338. white-space: nowrap;
  339. // pointer-events: none;
  340. // outline: 1px dotted purple;
  341. // position: relative;
  342. }
  343. .region-footer-left{text-align: left;}
  344. .region-footer-center{text-align: center;}
  345. .region-footer-right{text-align: right;min-width: 30px;}
  346. nav.block-menu{
  347. display: inline-block;
  348. ul{
  349. margin:0;
  350. padding:0;
  351. li{
  352. pointer-events: all;
  353. @include oblique-list;
  354. }
  355. }
  356. }
  357. .block-language{
  358. display: inline-block;
  359. position: relative;
  360. ul{
  361. position: absolute;
  362. bottom:0;
  363. margin:0;
  364. padding:0;
  365. transform-origin: left bottom;
  366. transform: rotateZ(-45deg);
  367. white-space: nowrap;
  368. pointer-events: all;
  369. li{
  370. margin:0; padding:0;
  371. list-style: none;
  372. display: inline-block;
  373. &:last-of-type{
  374. &:before{
  375. content:"/";
  376. margin:0 0.2em;
  377. }
  378. }
  379. a{
  380. color: inherit;
  381. text-decoration: none;
  382. font-size: 0.756em;
  383. }
  384. &.is-active{
  385. a{color: red;}
  386. }
  387. }
  388. }
  389. }
  390. #block-productions{
  391. pointer-events: none;
  392. body:not(.path-productions) & {display:none}
  393. ul{
  394. white-space: nowrap;
  395. li{
  396. a{
  397. // outline: 1px solid blue;
  398. pointer-events: all;
  399. background-color: #fff;
  400. padding-right: 0.4em;
  401. &:before{
  402. content: "";
  403. display:inline-block;
  404. $sq:7px;
  405. width: $sq; height:$sq;
  406. border: 1px solid red;
  407. margin-right: 0.5em;
  408. }
  409. &:hover:before{
  410. background-color: red;
  411. }
  412. &.ajax-loading:before{
  413. @include spining-loader-square;
  414. }
  415. }
  416. }
  417. }
  418. }
  419. .block-block-edlp-entrees{
  420. pointer-events: none;
  421. body:not(.path-frontpage) & {display:none}
  422. display: inline-block;
  423. // vertical-align: top;
  424. ul{
  425. white-space: nowrap;
  426. li{
  427. @include oblique-list;
  428. margin:0;
  429. white-space: nowrap;
  430. pointer-events: none;
  431. span.oblique-wrapper{
  432. display: inline-block;
  433. vertical-align: bottom;
  434. position: relative;
  435. width:1.5em;
  436. }
  437. a.term-link{
  438. // outline: 1px solid blue;
  439. pointer-events: all;
  440. background-color: #fff;
  441. padding-right: 0.4em;
  442. &:before{
  443. content: "";
  444. display:inline-block;
  445. $sq:7px;
  446. width: $sq; height:$sq;
  447. border: 1px solid #000;
  448. margin-right: 0.5em;
  449. }
  450. }
  451. .entree-content{
  452. display: inline-block;
  453. // outline: 1px solid green;
  454. width:0;
  455. overflow: hidden;
  456. opacity: 0;
  457. transition: all 300ms ease-in-out;
  458. transition-property: width,opacity;
  459. span.oblique-wrapper:first-of-type{
  460. margin-left: 0.5em;
  461. }
  462. span.oblique-wrapper a{
  463. text-transform: none;
  464. pointer-events: auto;
  465. &:before{
  466. content: "";
  467. display:inline-block;
  468. $sq:5px;
  469. width: $sq; height:$sq;
  470. border: 1px solid #000;
  471. margin-right: 0.5em;
  472. }
  473. }
  474. .term-description{
  475. display: inline-block;
  476. margin-left: 1.5em;
  477. text-align: left;
  478. width:250px;
  479. word-wrap:break-word;
  480. // word-break:break-all;
  481. hyphens: auto;
  482. white-space: normal;
  483. background-color: $transparent-bg;
  484. padding:0.5em;
  485. padding-bottom:0;
  486. p{
  487. font-size: 0.65em;
  488. margin:0;
  489. }
  490. }
  491. }
  492. &[tid='134']{
  493. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  494. border-color: $e_col_134;background-color: $e_col_134;}}
  495. &[tid='121']{
  496. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  497. border-color: $e_col_121;background-color: $e_col_121;}}
  498. &[tid='125']{
  499. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  500. border-color: $e_col_125;background-color: $e_col_125;}}
  501. &[tid='119']{
  502. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  503. border-color: $e_col_119;background-color: $e_col_119;}}
  504. &[tid='132']{
  505. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  506. border-color: $e_col_132;background-color: $e_col_132;}}
  507. &[tid='122']{
  508. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  509. border-color: $e_col_122;background-color: $e_col_122;}}
  510. &[tid='129']{
  511. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  512. border-color: $e_col_129;background-color: $e_col_129;}}
  513. &[tid='120']{
  514. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  515. border-color: $e_col_120;background-color: $e_col_120;}}
  516. &[tid='130']{
  517. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  518. border-color: $e_col_130;background-color: $e_col_130;}}
  519. &[tid='118']{
  520. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  521. border-color: $e_col_118;background-color: $e_col_118;}}
  522. &[tid='127']{
  523. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  524. border-color: $e_col_127;background-color: $e_col_127;}}
  525. &[tid='133']{
  526. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  527. border-color: $e_col_133;background-color: $e_col_133;}}
  528. &[tid='128']{
  529. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  530. border-color: $e_col_128;background-color: $e_col_128;}}
  531. &[tid='124']{
  532. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  533. border-color: $e_col_124;background-color: $e_col_124;}}
  534. &[tid='116']{
  535. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  536. border-color: $e_col_116;background-color: $e_col_116;}}
  537. &[tid='117']{
  538. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  539. border-color: $e_col_117;background-color: $e_col_117;}}
  540. &[tid='131']{
  541. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  542. border-color: $e_col_131;background-color: $e_col_131;}}
  543. &[tid='126']{
  544. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  545. border-color: $e_col_126;background-color: $e_col_126;}}
  546. &[tid='123']{
  547. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  548. border-color: $e_col_123;background-color: $e_col_123;}}
  549. // &.highlighted{
  550. // a.term_link{
  551. // color: red;
  552. // }
  553. // }
  554. .entree-content span.oblique-wrapper a:not(:hover):before{background-color: #fff!important;}
  555. &:not(.opened){
  556. a.term-link:not(:hover):not(.highlighted):before{
  557. background-color: #fff!important;
  558. }
  559. }
  560. &.opened{
  561. // outline: 1px solid purple;
  562. a.term-link:after {
  563. content: '';
  564. position: absolute;
  565. left: 15px; right:0;
  566. bottom: -3px;
  567. border-bottom: 1px solid grey;
  568. }
  569. .entree-content{
  570. width:350px;
  571. opacity: 1;
  572. }
  573. }
  574. // &:not(:first-of-type) .entree-content{display: none;}
  575. }
  576. }
  577. }
  578. #block-userlogin{
  579. // outline: 1px solid blue;
  580. $wh:20px;
  581. position: relative;
  582. width:$wh; height: $wh;
  583. // background-color: blue;
  584. h2{
  585. position: relative;
  586. width:$wh; height:$wh;
  587. background-image: url(../../img/user.svg);
  588. // background-color: red;
  589. background-size: contain;
  590. text-indent: $wh*2;
  591. margin: 0;
  592. overflow: hidden;
  593. z-index: 1;
  594. cursor: pointer;
  595. }
  596. .block-content{
  597. z-index: 0;
  598. position:absolute;
  599. right:0;bottom:$wh;
  600. padding:0.5em;
  601. padding-bottom: 20px;
  602. background-color: $transparent-bg;
  603. overflow: hidden;
  604. box-sizing:border-box;
  605. height: 0px;
  606. opacity:0;
  607. pointer-events:none;
  608. transition: all 0.5s ease-in-out;
  609. transition-property: height,opacity;
  610. // &:hover{
  611. // height:200px;
  612. // opacity:1;
  613. // pointer-events: auto;
  614. // }
  615. form{
  616. font-size: 0.75em;
  617. }
  618. .item-list{
  619. ul{margin:0;}
  620. li{
  621. margin:0;
  622. list-style: none;
  623. a{
  624. color: inherit;
  625. text-decoration: none;
  626. font-size: 0.75em;
  627. white-space:nowrap;
  628. }
  629. }
  630. }
  631. }
  632. &:hover{
  633. .block-content{
  634. height:200px;
  635. opacity: 1;
  636. pointer-events:auto;
  637. }
  638. }
  639. }
  640. }
  641. // _ _ _ ___
  642. // | \| |___ __| |___ | _ \___ _ __ _ _ _ __
  643. // | .` / _ \/ _` / -_) | _/ _ \ '_ \ || | '_ \
  644. // |_|\_\___/\__,_\___| |_| \___/ .__/\_,_| .__/
  645. // |_| |_|
  646. .node-popup{
  647. .inner{
  648. .entrees{
  649. span{
  650. display:inline-block;
  651. $s:8px;
  652. width:$s; height:$s;
  653. background-color: black;
  654. margin-right: 3px;
  655. &[tid='134']{background-color: $e_col_134;}
  656. &[tid='121']{background-color: $e_col_121;}
  657. &[tid='125']{background-color: $e_col_125;}
  658. &[tid='119']{background-color: $e_col_119;}
  659. &[tid='132']{background-color: $e_col_132;}
  660. &[tid='122']{background-color: $e_col_122;}
  661. &[tid='129']{background-color: $e_col_129;}
  662. &[tid='120']{background-color: $e_col_120;}
  663. &[tid='130']{background-color: $e_col_130;}
  664. &[tid='118']{background-color: $e_col_118;}
  665. &[tid='127']{background-color: $e_col_127;}
  666. &[tid='133']{background-color: $e_col_133;}
  667. &[tid='128']{background-color: $e_col_128;}
  668. &[tid='124']{background-color: $e_col_124;}
  669. &[tid='116']{background-color: $e_col_116;}
  670. &[tid='117']{background-color: $e_col_117;}
  671. &[tid='131']{background-color: $e_col_131;}
  672. &[tid='126']{background-color: $e_col_126;}
  673. &[tid='123']{background-color: $e_col_123;}
  674. }
  675. }
  676. .title{
  677. margin:0.3em 0;
  678. font-size: 1.2em;
  679. font-weight: 500;
  680. }
  681. .description{
  682. p{
  683. margin:0;
  684. font-size: 0.75em;
  685. }
  686. }
  687. }
  688. }