app.scss 12 KB

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