app.scss 12 KB

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