app.scss 15 KB

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