app.scss 12 KB

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