app.scss 12 KB

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