app.scss 11 KB

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