app.scss 9.8 KB

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