app.scss 9.5 KB

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