app.scss 12 KB

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