app.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  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. @import 'base/fonts';
  14. @mixin spining-loader-square{
  15. @keyframes rotation {
  16. from {transform: rotate(0deg);}
  17. to {transform: rotate(359deg);}
  18. }
  19. animation: rotation 2s infinite linear;
  20. }
  21. @mixin entrie-micro-square {
  22. display:inline-block;
  23. $s:8px;
  24. width:$s; height:$s;
  25. background-color: black;
  26. margin-right: 3px;
  27. &[tid='134']{background-color: $e_col_134;}
  28. &[tid='121']{background-color: $e_col_121;}
  29. &[tid='125']{background-color: $e_col_125;}
  30. &[tid='119']{background-color: $e_col_119;}
  31. &[tid='132']{background-color: $e_col_132;}
  32. &[tid='122']{background-color: $e_col_122;}
  33. &[tid='129']{background-color: $e_col_129;}
  34. &[tid='120']{background-color: $e_col_120;}
  35. &[tid='130']{background-color: $e_col_130;}
  36. &[tid='118']{background-color: $e_col_118;}
  37. &[tid='127']{background-color: $e_col_127;}
  38. &[tid='133']{background-color: $e_col_133;}
  39. &[tid='128']{background-color: $e_col_128;}
  40. &[tid='124']{background-color: $e_col_124;}
  41. &[tid='116']{background-color: $e_col_116;}
  42. &[tid='117']{background-color: $e_col_117;}
  43. &[tid='131']{background-color: $e_col_131;}
  44. &[tid='126']{background-color: $e_col_126;}
  45. &[tid='123']{background-color: $e_col_123;}
  46. }
  47. .layout-container{
  48. pointer-events: none;
  49. }
  50. // _ _
  51. // | |_ ___ __ _ __| |___ _ _
  52. // | ' \/ -_) _` / _` / -_) '_|
  53. // |_||_\___\__,_\__,_\___|_|
  54. header[role="banner"]{
  55. position: relative;
  56. padding:0 0 0.5em 0;
  57. border-bottom: 1px solid red;
  58. pointer-events: all;
  59. // TODO: what header height to fit well with player ??
  60. height:70px;
  61. }
  62. #block-edlptheme-branding{
  63. display: inline-block;
  64. h1{
  65. margin:0; display: inline-block;
  66. font-size: 1.5em;
  67. text-transform: lowercase;
  68. a{
  69. $col_w:3.74em;
  70. $col_gap:2em;
  71. line-height: 0.93;
  72. text-align: center;
  73. color: inherit;
  74. text-decoration: none;
  75. display: inline-block;
  76. columns:$col_w 2;
  77. column-gap: $col_gap;
  78. word-break:break-all;
  79. hyphens:auto;
  80. position: relative;
  81. &:after, &:before{
  82. content: '';
  83. position: absolute;
  84. top:50%;
  85. height:0;
  86. }
  87. &:before{
  88. left:$col_w;
  89. border-bottom:0.08em solid #000;
  90. width:2.5em;
  91. transform: rotateZ(-45deg);
  92. }
  93. &:after{
  94. $w:0.5em;
  95. top:47%;
  96. left:($col_w+$col_gap/2);
  97. border-top:0.2em solid red;
  98. width:$w;
  99. transform: rotateZ(45deg);
  100. }
  101. }
  102. }
  103. }
  104. #block-mainnavigation{
  105. float:right;
  106. ul{
  107. margin:0; padding: 0;
  108. white-space: nowrap;
  109. li{
  110. margin:0; padding:0;
  111. display: inline-block;
  112. a{
  113. font-size: 0.756em;
  114. color:inherit;
  115. text-decoration: none;
  116. text-transform: uppercase;
  117. margin-left: 1em;
  118. &:before{
  119. content: "";
  120. display:inline-block;
  121. $sq:0.6em;
  122. width: $sq; height:$sq;
  123. border: 1px solid #000;
  124. margin-right: 0.3em;
  125. }
  126. &.ajax-loading:before{
  127. @include spining-loader-square;
  128. }
  129. &.is-active:before,
  130. &:hover:before{
  131. border-color: red;
  132. background-color: red;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. // _
  139. // _ __ __ _(_)_ _
  140. // | ' \/ _` | | ' \
  141. // |_|_|_\__,_|_|_||_|
  142. main[role="main"]{
  143. .layout-content{
  144. pointer-events: none;
  145. .row{
  146. pointer-events: none;
  147. height:100%;
  148. overflow: hidden;
  149. .col{
  150. pointer-events: none;
  151. height: 100%;
  152. position: relative;
  153. &>.wrapper{
  154. pointer-events:all;
  155. position: relative;
  156. box-sizing: border-box;
  157. border-top: 1px solid red;
  158. border-bottom: 1px solid red;
  159. background-color: $transparent-bg;
  160. max-height: 100%; // this is not working :(
  161. padding:0 0 1em;
  162. &>*{
  163. padding:0 1em;
  164. }
  165. }
  166. }
  167. }
  168. .field.text-formatted{
  169. a.audio-link{
  170. border-bottom: 1px dotted red;
  171. }
  172. }
  173. }
  174. article.node>h2{
  175. @include content_titles;
  176. }
  177. article.node p{
  178. @include content_courant;
  179. }
  180. img{
  181. max-width: 100%;
  182. height: auto;
  183. }
  184. ul, li, ul.inline li:first-child{
  185. margin:0; padding:0;
  186. list-style: none;
  187. }
  188. // ajax loading effects
  189. .layout-content{
  190. transition: opacity 0.5s ease-in-out;
  191. opacity: 1;
  192. }
  193. body.ajax-loading &{
  194. .layout-content{
  195. opacity:0.2;
  196. }
  197. &:before{
  198. content:"";
  199. display: block;
  200. position: absolute;
  201. z-index: 10;
  202. $s:60px;
  203. width:$s; height:$s;
  204. top:calc(50% - #{$s/2}); left:calc(50% - #{$s/2});
  205. // padding:1em;
  206. background-color: rgba(255,255,255, 0.5);
  207. background-image: url(../img/edlp-loader-anim.svg);
  208. background-size: 50%;
  209. background-repeat: no-repeat;
  210. background-position: center;
  211. // border-radius: $s/2;
  212. }
  213. }
  214. }
  215. // _ _ _ ___ _
  216. // /_\ _ _ __| (_)___| _ \ |__ _ _ _ ___ _ _
  217. // / _ \ || / _` | / _ \ _/ / _` | || / -_) '_|
  218. // /_/ \_\_,_\__,_|_\___/_| |_\__,_|\_, \___|_|
  219. // |__/
  220. #audio-player{
  221. position: absolute;
  222. top:0; left:0;
  223. background-color: white;
  224. height:100%; min-width:300px;
  225. z-index: 20;
  226. opacity: 0;
  227. // outline: 1px solid blue;
  228. pointer-events: none;
  229. transition: opacity 0.7s ease-in-out;
  230. &.visible{
  231. opacity: 1;
  232. pointer-events:all;
  233. }
  234. &>*{
  235. display: inline-block;
  236. vertical-align: middle;
  237. // word-break:keep-all;
  238. padding:0;
  239. max-height: 100%;
  240. // outline: 1px solid green;
  241. }
  242. .btns{
  243. // outline: 1px dotted orange;
  244. &>*{
  245. display: inline-block;
  246. vertical-align: middle;
  247. width:20px;height:30px;
  248. background-position: center;
  249. background-size: contain;
  250. }
  251. .previous{
  252. background-image: url(../img/audio-player-previous.svg);
  253. opacity: 0.3;}
  254. .play-pause{
  255. background-image: url(../img/audio-player-play.svg);
  256. padding:0 0.3em;}
  257. cursor: pointer;
  258. .next{
  259. background-image: url(../img/audio-player-next.svg);
  260. opacity: 0.3;}
  261. }
  262. .time-line-container{
  263. .time-line{
  264. position: relative;
  265. width:70px; height:1px;
  266. background-color: #000;
  267. overflow: visible;
  268. transform: rotateZ(-45deg);
  269. .loader{
  270. width:0; height:100%;
  271. background-color: red;
  272. top:0;left:0;
  273. }
  274. .cursor{
  275. height:10px;width:0;
  276. border-left: 2px solid red;
  277. position:absolute;
  278. left:0; top:-5px;
  279. }
  280. }
  281. }
  282. .time{
  283. &>*{
  284. width:70px;
  285. text-align: right;
  286. }
  287. .current-time{
  288. font-size: 1.4em;
  289. font-weight: 600;
  290. }
  291. .duration{
  292. font-size: 0.75em;
  293. font-weight: 400;
  294. }
  295. }
  296. .favoris{
  297. height:100%;
  298. }
  299. .cartel{
  300. // TODO: set max-width regarding responsive
  301. position: relative;
  302. max-width: 350px;
  303. margin-left: 1em;
  304. background-color: white;
  305. opacity: 1;
  306. transition: opacity 0.5s ease-in-out;
  307. &.loading{opacity: 0;}
  308. white-space: nowrap;
  309. .actions, .cartels{
  310. display: inline-block;
  311. vertical-align: top;
  312. white-space: normal;
  313. position: relative;
  314. }
  315. .actions{
  316. width:1.5em;
  317. }
  318. .cartels{
  319. .first-cartel{
  320. .entrees{
  321. line-height: 0;
  322. span{
  323. @include entrie-micro-square;
  324. }
  325. }
  326. h2.node-title{
  327. margin:0.2em 0 0;
  328. font-size: 1em;
  329. }
  330. p{
  331. margin:0;
  332. font-size: 0.75em;
  333. }
  334. }
  335. .second-cartel{
  336. position: absolute;
  337. top: 0; left:0;
  338. background-color: white;
  339. height:100%; min-width: 100%;
  340. opacity: 0;
  341. transition: opacity 0.2s ease-in-out;
  342. &>*{
  343. display: inline-block;
  344. vertical-align: top;
  345. }
  346. .col-left{
  347. a{
  348. display: block;
  349. font-size: 0.90em;
  350. font-weight: 600;
  351. }
  352. }
  353. .col-right{
  354. font-size: 0.75em;
  355. }
  356. }
  357. }
  358. &:hover{
  359. .second-cartel{
  360. opacity: 1;
  361. }
  362. }
  363. }
  364. &.is-playing{
  365. .btns .play-pause{background-image: url(../img/audio-player-pause.svg);}
  366. }
  367. }
  368. // ___ _ _ _
  369. // / __| |_ _ _ __| (_)___
  370. // \__ \ _| || / _` | / _ \
  371. // |___/\__|\_,_\__,_|_\___/
  372. a.chutier-link{
  373. display: block;
  374. width:1em;height:1em;
  375. overflow: hidden;
  376. text-indent: 50em;
  377. // background-color: red;
  378. background-position: center;
  379. background-repeat: no-repeat;
  380. background-size: contain;
  381. background-image: url(../img/favori-off.svg);
  382. &[action="remove"]{
  383. background-image: url(../img/favori-on.svg);
  384. }
  385. transition: opacity 0.2s ease-in-out;
  386. &.ajax-loading{
  387. opacity: 0.2;
  388. }
  389. }
  390. // _ _ _ _ _
  391. // /_\ (_)__ ___ __ | \| |___ __| |___
  392. // / _ \ | / _` \ \ / | .` / _ \/ _` / -_)
  393. // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___|
  394. // |__/
  395. // body.path-edlp-node main{
  396. // main .col>.wrapper, .edlp-ajax-node{
  397. // height: 100%;
  398. // }
  399. // }
  400. // _ _
  401. // /_\ __ _ ___ _ _ __| |__ _
  402. // / _ \/ _` / -_) ' \/ _` / _` |
  403. // /_/ \_\__, \___|_||_\__,_\__,_|
  404. // |___/
  405. body.path-agenda main .col{
  406. &>.wrapper{
  407. height:100%;
  408. }
  409. }
  410. #agenda{
  411. position: relative;
  412. white-space: nowrap;
  413. height: 100%;
  414. div.column{
  415. white-space: normal;
  416. display: inline-block;
  417. vertical-align: top;
  418. height:100%;
  419. }
  420. div.next-event{
  421. width:65%;
  422. }
  423. div.future-past-events{
  424. width:33%;
  425. }
  426. ul,li{
  427. margin:0; padding:0;
  428. list-style: none;
  429. }
  430. article.node--type-evenement{
  431. h2{ @include content_titles; }
  432. }
  433. }
  434. // ___ _ _ _
  435. // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
  436. // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
  437. // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
  438. body.path-productions{
  439. .layout-content .row{
  440. white-space: normal;
  441. .col{
  442. height:auto;
  443. &.col-2:last-child{
  444. padding-left: 0em;
  445. padding-right: 1em;
  446. }
  447. >.wrapper{
  448. margin-bottom: 1em;
  449. padding:0;
  450. >*{padding:0;}
  451. article.node{
  452. .field--name-field-visuel{
  453. a,img{
  454. display: block;
  455. width: 100%; height:auto;
  456. }
  457. }
  458. header{
  459. background-color: rgba(255,255,255,0.95);
  460. padding:0.5em 1em;
  461. h2.node-title{
  462. margin:0;
  463. }
  464. p{margin: 0;}
  465. }
  466. &.node--view-mode-image-2-columns{
  467. header{
  468. position: absolute;
  469. bottom: 0; left:0;
  470. h2.node-title{
  471. font-size: 1.6em;
  472. font-weight: 500;
  473. }
  474. }
  475. }
  476. &.node--view-mode-image-1-columns{
  477. h2.node-title{
  478. font-size: 1.2em;
  479. font-weight: 500;
  480. }
  481. }
  482. &.node--view-mode-text-1-column{
  483. padding:0 1em;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. }
  490. // ___ _
  491. // | __|__ ___| |_ ___ _ _
  492. // | _/ _ \/ _ \ _/ -_) '_|
  493. // |_|\___/\___/\__\___|_|
  494. @mixin oblique-list {
  495. display: inline-block;
  496. position: relative;
  497. list-style: none;
  498. margin: 0 1.5em 0 0;
  499. // width:2em; height:10em;
  500. padding: 0;
  501. a{
  502. position: absolute;
  503. bottom: 0;
  504. transform-origin: left bottom;
  505. transform: rotateZ(-45deg);
  506. color: #000;
  507. text-decoration: none;
  508. text-transform: uppercase;
  509. font-size: 0.756em;
  510. white-space: nowrap;
  511. }
  512. }
  513. footer{
  514. pointer-events: none;
  515. // outline: 1px dotted blue;
  516. // text-align: center;
  517. display: table;
  518. padding: 0 0 0.5em 0;
  519. >.region{
  520. display: table-cell;
  521. white-space: nowrap;
  522. // pointer-events: none;
  523. // outline: 1px dotted purple;
  524. // position: relative;
  525. }
  526. .region-footer-left{text-align: left;}
  527. .region-footer-center{text-align: center;}
  528. .region-footer-right{text-align: right;min-width: 30px;}
  529. nav.block-menu{
  530. display: inline-block;
  531. ul{
  532. margin:0;
  533. padding:0;
  534. li{
  535. pointer-events: all;
  536. @include oblique-list;
  537. }
  538. }
  539. }
  540. .block-language{
  541. display: inline-block;
  542. position: relative;
  543. ul{
  544. position: absolute;
  545. bottom:0;
  546. margin:0;
  547. padding:0;
  548. transform-origin: left bottom;
  549. transform: rotateZ(-45deg);
  550. white-space: nowrap;
  551. pointer-events: all;
  552. li{
  553. margin:0; padding:0;
  554. list-style: none;
  555. display: inline-block;
  556. &:last-of-type{
  557. &:before{
  558. content:"/";
  559. margin:0 0.2em;
  560. }
  561. }
  562. a{
  563. color: inherit;
  564. text-decoration: none;
  565. font-size: 0.756em;
  566. }
  567. &.is-active{
  568. a{color: red;}
  569. }
  570. }
  571. }
  572. }
  573. #block-productions{
  574. pointer-events: none;
  575. body:not(.path-productions) & {display:none}
  576. ul{
  577. white-space: nowrap;
  578. li{
  579. a{
  580. // outline: 1px solid blue;
  581. pointer-events: all;
  582. background-color: #fff;
  583. padding-right: 0.4em;
  584. &:before{
  585. content: "";
  586. display:inline-block;
  587. $sq:7px;
  588. width: $sq; height:$sq;
  589. border: 1px solid red;
  590. margin-right: 0.5em;
  591. }
  592. &:hover:before{
  593. background-color: red;
  594. }
  595. &.ajax-loading:before{
  596. @include spining-loader-square;
  597. }
  598. }
  599. }
  600. }
  601. }
  602. .block-block-edlp-entrees{
  603. pointer-events: none;
  604. body.path-productions & {display:none}
  605. display: inline-block;
  606. // vertical-align: top;
  607. ul{
  608. white-space: nowrap;
  609. li{
  610. @include oblique-list;
  611. margin:0;
  612. white-space: nowrap;
  613. pointer-events: none;
  614. span.oblique-wrapper{
  615. display: inline-block;
  616. vertical-align: bottom;
  617. position: relative;
  618. width:1.5em;
  619. }
  620. a.term-link, a.articles-link{
  621. // outline: 1px solid blue;
  622. pointer-events: all;
  623. background-color: #fff;
  624. padding-right: 0.4em;
  625. &:before{
  626. content: "";
  627. display:inline-block;
  628. $sq:7px;
  629. width: $sq; height:$sq;
  630. border: 1px solid #000;
  631. background-color: #000;
  632. margin-right: 0.5em;
  633. transition: background-color 0.1s ease-in-out;
  634. }
  635. &.articles-link{
  636. margin-left: 2em;
  637. text-transform: capitalize;
  638. }
  639. }
  640. .entree-content{
  641. display: inline-block;
  642. // outline: 1px solid green;
  643. width:0;
  644. overflow: hidden;
  645. opacity: 0;
  646. transition: all 300ms ease-in-out;
  647. transition-property: width,opacity;
  648. span.oblique-wrapper:first-of-type{
  649. margin-left: 0.5em;
  650. }
  651. span.oblique-wrapper a{
  652. text-transform: none;
  653. pointer-events: auto;
  654. &:before{
  655. content: "";
  656. display:inline-block;
  657. $sq:5px;
  658. width: $sq; height:$sq;
  659. border: 1px solid #000;
  660. margin-right: 0.5em;
  661. }
  662. }
  663. .term-description{
  664. display: inline-block;
  665. margin-left: 1.5em;
  666. text-align: left;
  667. width:250px;
  668. word-wrap:break-word;
  669. // word-break:break-all;
  670. hyphens: auto;
  671. white-space: normal;
  672. background-color: $transparent-bg;
  673. padding:0.5em;
  674. padding-bottom:0;
  675. p{
  676. font-size: 0.65em;
  677. margin:0;
  678. }
  679. }
  680. }
  681. &[tid='134']{
  682. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  683. border-color: $e_col_134;background-color: $e_col_134;}}
  684. &[tid='121']{
  685. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  686. border-color: $e_col_121;background-color: $e_col_121;}}
  687. &[tid='125']{
  688. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  689. border-color: $e_col_125;background-color: $e_col_125;}}
  690. &[tid='119']{
  691. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  692. border-color: $e_col_119;background-color: $e_col_119;}}
  693. &[tid='132']{
  694. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  695. border-color: $e_col_132;background-color: $e_col_132;}}
  696. &[tid='122']{
  697. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  698. border-color: $e_col_122;background-color: $e_col_122;}}
  699. &[tid='129']{
  700. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  701. border-color: $e_col_129;background-color: $e_col_129;}}
  702. &[tid='120']{
  703. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  704. border-color: $e_col_120;background-color: $e_col_120;}}
  705. &[tid='130']{
  706. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  707. border-color: $e_col_130;background-color: $e_col_130;}}
  708. &[tid='118']{
  709. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  710. border-color: $e_col_118;background-color: $e_col_118;}}
  711. &[tid='127']{
  712. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  713. border-color: $e_col_127;background-color: $e_col_127;}}
  714. &[tid='133']{
  715. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  716. border-color: $e_col_133;background-color: $e_col_133;}}
  717. &[tid='128']{
  718. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  719. border-color: $e_col_128;background-color: $e_col_128;}}
  720. &[tid='124']{
  721. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  722. border-color: $e_col_124;background-color: $e_col_124;}}
  723. &[tid='116']{
  724. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  725. border-color: $e_col_116;background-color: $e_col_116;}}
  726. &[tid='117']{
  727. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  728. border-color: $e_col_117;background-color: $e_col_117;}}
  729. &[tid='131']{
  730. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  731. border-color: $e_col_131;background-color: $e_col_131;}}
  732. &[tid='126']{
  733. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  734. border-color: $e_col_126;background-color: $e_col_126;}}
  735. &[tid='123']{
  736. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  737. border-color: $e_col_123;background-color: $e_col_123;}}
  738. // &.highlighted{
  739. // a.term_link{
  740. // color: red;
  741. // }
  742. // }
  743. .entree-content span.oblique-wrapper a:not(:hover):not(.is-active):before{background-color: #fff!important;}
  744. a.articles-link:not(:hover):not(.is-active):before{
  745. background-color: #fff!important;
  746. }
  747. &:not(.opened){
  748. a.term-link:not(:hover):not(.highlighted):before{
  749. background-color: #fff!important;
  750. }
  751. }
  752. &.opened{
  753. // outline: 1px solid purple;
  754. a.term-link:after {
  755. content: '';
  756. position: absolute;
  757. left: 15px; right:0;
  758. bottom: -3px;
  759. border-bottom: 1px solid grey;
  760. }
  761. .entree-content{
  762. width:350px;
  763. opacity: 1;
  764. }
  765. }
  766. // &:not(:first-of-type) .entree-content{display: none;}
  767. }
  768. }
  769. }
  770. #block-userlogin{
  771. pointer-events: all;
  772. // outline: 1px solid blue;
  773. $wh:20px;
  774. position: relative;
  775. width:$wh; height: $wh;
  776. // background-color: blue;
  777. h2{
  778. position: relative;
  779. width:$wh; height:$wh;
  780. background-image: url(../img/user.svg);
  781. // background-color: red;
  782. background-size: contain;
  783. text-indent: $wh*2;
  784. margin: 0;
  785. overflow: hidden;
  786. z-index: 1;
  787. cursor: pointer;
  788. }
  789. .block-content{
  790. z-index: 0;
  791. position:absolute;
  792. right:0;bottom:$wh;
  793. padding:0.5em;
  794. padding-bottom: 20px;
  795. background-color: $transparent-bg;
  796. overflow: hidden;
  797. box-sizing:border-box;
  798. height: 0px;
  799. opacity:0;
  800. pointer-events:none;
  801. transition: all 0.5s ease-in-out;
  802. transition-property: height,opacity;
  803. // &:hover{
  804. // height:200px;
  805. // opacity:1;
  806. // pointer-events: auto;
  807. // }
  808. form{
  809. font-size: 0.75em;
  810. }
  811. .item-list{
  812. ul{margin:0;}
  813. li{
  814. margin:0;
  815. list-style: none;
  816. a{
  817. color: inherit;
  818. text-decoration: none;
  819. font-size: 0.75em;
  820. white-space:nowrap;
  821. }
  822. }
  823. }
  824. }
  825. &:hover{
  826. .block-content{
  827. height:200px;
  828. opacity: 1;
  829. pointer-events:auto;
  830. }
  831. }
  832. }
  833. }
  834. // _ _ _ ___
  835. // | \| |___ __| |___ | _ \___ _ __ _ _ _ __
  836. // | .` / _ \/ _` / -_) | _/ _ \ '_ \ || | '_ \
  837. // |_|\_\___/\__,_\___| |_| \___/ .__/\_,_| .__/
  838. // |_| |_|
  839. .node-popup{
  840. .inner{
  841. .entrees{
  842. span{
  843. @include entrie-micro-square;
  844. }
  845. }
  846. .title{
  847. margin:0.3em 0;
  848. font-size: 1.2em;
  849. font-weight: 500;
  850. }
  851. .description{
  852. p{
  853. margin:0;
  854. font-size: 0.75em;
  855. }
  856. }
  857. }
  858. }