app.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  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. .chutier-icon{
  373. $s:1em;
  374. display: block;
  375. position: relative;
  376. width:$s;height:$s;
  377. overflow: hidden;
  378. text-indent: 50em;
  379. // background-color: red;
  380. background-position: center;
  381. background-repeat: no-repeat;
  382. background-size: contain;
  383. background-image: url(../img/favori-off.svg);
  384. &[action="remove"]{
  385. background-image: url(../img/favori-on.svg);
  386. }
  387. transition: opacity 0.2s ease-in-out;
  388. &.ajax-loading{
  389. opacity: 0.2;
  390. }
  391. &.not-logedin{
  392. overflow: visible;
  393. }
  394. .popup{
  395. z-index: 10;
  396. display:none;
  397. position: absolute;
  398. top:0; left:0;
  399. width:300px; height:auto; min-height: 100px;
  400. .inner{
  401. background-color: rgba(255,255,255,0.9);
  402. border: 1px solid red;
  403. text-indent: 0;
  404. padding: 0.5em;
  405. margin:$s*1.2 0 0 $s*1.2;
  406. p{margin: 0;}
  407. }
  408. }
  409. &:hover{
  410. .popup{
  411. display: block;
  412. }
  413. }
  414. }
  415. // _ _ _ _ _
  416. // /_\ (_)__ ___ __ | \| |___ __| |___
  417. // / _ \ | / _` \ \ / | .` / _ \/ _` / -_)
  418. // /_/ \_\/ \__,_/_\_\ |_|\_\___/\__,_\___|
  419. // |__/
  420. // body.path-edlp-node main{
  421. // main .col>.wrapper, .edlp-ajax-node{
  422. // height: 100%;
  423. // }
  424. // }
  425. // _ _
  426. // /_\ __ _ ___ _ _ __| |__ _
  427. // / _ \/ _` / -_) ' \/ _` / _` |
  428. // /_/ \_\__, \___|_||_\__,_\__,_|
  429. // |___/
  430. body.path-agenda main .col{
  431. &>.wrapper{
  432. height:100%;
  433. }
  434. }
  435. #agenda{
  436. position: relative;
  437. white-space: nowrap;
  438. height: 100%;
  439. div.column{
  440. white-space: normal;
  441. display: inline-block;
  442. vertical-align: top;
  443. height:100%;
  444. }
  445. div.next-event{
  446. width:65%;
  447. }
  448. div.future-past-events{
  449. width:33%;
  450. }
  451. ul,li{
  452. margin:0; padding:0;
  453. list-style: none;
  454. }
  455. article.node--type-evenement{
  456. h2{ @include content_titles; }
  457. }
  458. }
  459. // ___ _ _ _
  460. // | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
  461. // | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
  462. // |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
  463. body.path-productions{
  464. .layout-content .row{
  465. white-space: normal;
  466. .col{
  467. height:auto;
  468. &.col-2:last-child{
  469. padding-left: 0em;
  470. padding-right: 1em;
  471. }
  472. >.wrapper{
  473. margin-bottom: 1em;
  474. padding:0;
  475. >*{padding:0;}
  476. article.node{
  477. .field--name-field-visuel{
  478. a,img{
  479. display: block;
  480. width: 100%; height:auto;
  481. }
  482. }
  483. header{
  484. background-color: rgba(255,255,255,0.95);
  485. padding:0.5em 1em;
  486. h2.node-title{
  487. margin:0;
  488. }
  489. p{margin: 0;}
  490. }
  491. &.node--view-mode-image-2-columns{
  492. header{
  493. position: absolute;
  494. bottom: 0; left:0;
  495. h2.node-title{
  496. font-size: 1.6em;
  497. font-weight: 500;
  498. }
  499. }
  500. }
  501. &.node--view-mode-image-1-columns{
  502. h2.node-title{
  503. font-size: 1.2em;
  504. font-weight: 500;
  505. }
  506. }
  507. &.node--view-mode-text-1-column{
  508. padding:0 1em;
  509. }
  510. }
  511. }
  512. }
  513. }
  514. }
  515. // ___ _
  516. // | __|__ ___| |_ ___ _ _
  517. // | _/ _ \/ _ \ _/ -_) '_|
  518. // |_|\___/\___/\__\___|_|
  519. @mixin oblique-list {
  520. display: inline-block;
  521. position: relative;
  522. list-style: none;
  523. margin: 0 1.5em 0 0;
  524. // width:2em; height:10em;
  525. padding: 0;
  526. a{
  527. position: absolute;
  528. bottom: 0;
  529. transform-origin: left bottom;
  530. transform: rotateZ(-45deg);
  531. color: #000;
  532. text-decoration: none;
  533. text-transform: uppercase;
  534. font-size: 0.756em;
  535. white-space: nowrap;
  536. }
  537. }
  538. footer{
  539. pointer-events: none;
  540. // outline: 1px dotted blue;
  541. // text-align: center;
  542. display: table;
  543. padding: 0 0 0.5em 0;
  544. >.region{
  545. display: table-cell;
  546. white-space: nowrap;
  547. // pointer-events: none;
  548. // outline: 1px dotted purple;
  549. // position: relative;
  550. }
  551. .region-footer-left{text-align: left;}
  552. .region-footer-center{text-align: center;}
  553. .region-footer-right{text-align: right;min-width: 30px;}
  554. nav.block-menu{
  555. display: inline-block;
  556. ul{
  557. margin:0;
  558. padding:0;
  559. li{
  560. pointer-events: all;
  561. @include oblique-list;
  562. }
  563. }
  564. }
  565. .block-language{
  566. display: inline-block;
  567. position: relative;
  568. ul{
  569. position: absolute;
  570. bottom:0;
  571. margin:0;
  572. padding:0;
  573. transform-origin: left bottom;
  574. transform: rotateZ(-45deg);
  575. white-space: nowrap;
  576. pointer-events: all;
  577. li{
  578. margin:0; padding:0;
  579. list-style: none;
  580. display: inline-block;
  581. &:last-of-type{
  582. &:before{
  583. content:"/";
  584. margin:0 0.2em;
  585. }
  586. }
  587. a{
  588. color: inherit;
  589. text-decoration: none;
  590. font-size: 0.756em;
  591. }
  592. &.is-active{
  593. a{color: red;}
  594. }
  595. }
  596. }
  597. }
  598. #block-productions{
  599. pointer-events: none;
  600. body:not(.path-productions) & {display:none}
  601. ul{
  602. white-space: nowrap;
  603. li{
  604. a{
  605. // outline: 1px solid blue;
  606. pointer-events: all;
  607. background-color: #fff;
  608. padding-right: 0.4em;
  609. &:before{
  610. content: "";
  611. display:inline-block;
  612. $sq:7px;
  613. width: $sq; height:$sq;
  614. border: 1px solid red;
  615. margin-right: 0.5em;
  616. }
  617. &:hover:before{
  618. background-color: red;
  619. }
  620. &.ajax-loading:before{
  621. @include spining-loader-square;
  622. }
  623. }
  624. }
  625. }
  626. }
  627. .block-block-edlp-entrees{
  628. pointer-events: none;
  629. body.path-productions & {display:none}
  630. display: inline-block;
  631. // vertical-align: top;
  632. ul{
  633. white-space: nowrap;
  634. li{
  635. @include oblique-list;
  636. margin:0;
  637. white-space: nowrap;
  638. pointer-events: none;
  639. span.oblique-wrapper{
  640. display: inline-block;
  641. vertical-align: bottom;
  642. position: relative;
  643. width:1.5em;
  644. }
  645. a.term-link, a.articles-link{
  646. // outline: 1px solid blue;
  647. pointer-events: all;
  648. background-color: #fff;
  649. padding-right: 0.4em;
  650. &:before{
  651. content: "";
  652. display:inline-block;
  653. $sq:7px;
  654. width: $sq; height:$sq;
  655. border: 1px solid #000;
  656. background-color: #000;
  657. margin-right: 0.5em;
  658. transition: background-color 0.1s ease-in-out;
  659. }
  660. &.articles-link{
  661. margin-left: 2em;
  662. text-transform: capitalize;
  663. }
  664. }
  665. .entree-content{
  666. display: inline-block;
  667. // outline: 1px solid green;
  668. width:0;
  669. overflow: hidden;
  670. opacity: 0;
  671. transition: all 300ms ease-in-out;
  672. transition-property: width,opacity;
  673. span.oblique-wrapper:first-of-type{
  674. margin-left: 0.5em;
  675. }
  676. span.oblique-wrapper a{
  677. text-transform: none;
  678. pointer-events: auto;
  679. &:before{
  680. content: "";
  681. display:inline-block;
  682. $sq:5px;
  683. width: $sq; height:$sq;
  684. border: 1px solid #000;
  685. margin-right: 0.5em;
  686. }
  687. }
  688. .term-description{
  689. display: inline-block;
  690. margin-left: 1.5em;
  691. text-align: left;
  692. width:250px;
  693. word-wrap:break-word;
  694. // word-break:break-all;
  695. hyphens: auto;
  696. white-space: normal;
  697. background-color: $transparent-bg;
  698. padding:0.5em;
  699. padding-bottom:0;
  700. p{
  701. font-size: 0.65em;
  702. margin:0;
  703. }
  704. }
  705. }
  706. &[tid='134']{
  707. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  708. border-color: $e_col_134;background-color: $e_col_134;}}
  709. &[tid='121']{
  710. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  711. border-color: $e_col_121;background-color: $e_col_121;}}
  712. &[tid='125']{
  713. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  714. border-color: $e_col_125;background-color: $e_col_125;}}
  715. &[tid='119']{
  716. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  717. border-color: $e_col_119;background-color: $e_col_119;}}
  718. &[tid='132']{
  719. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  720. border-color: $e_col_132;background-color: $e_col_132;}}
  721. &[tid='122']{
  722. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  723. border-color: $e_col_122;background-color: $e_col_122;}}
  724. &[tid='129']{
  725. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  726. border-color: $e_col_129;background-color: $e_col_129;}}
  727. &[tid='120']{
  728. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  729. border-color: $e_col_120;background-color: $e_col_120;}}
  730. &[tid='130']{
  731. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  732. border-color: $e_col_130;background-color: $e_col_130;}}
  733. &[tid='118']{
  734. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  735. border-color: $e_col_118;background-color: $e_col_118;}}
  736. &[tid='127']{
  737. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  738. border-color: $e_col_127;background-color: $e_col_127;}}
  739. &[tid='133']{
  740. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  741. border-color: $e_col_133;background-color: $e_col_133;}}
  742. &[tid='128']{
  743. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  744. border-color: $e_col_128;background-color: $e_col_128;}}
  745. &[tid='124']{
  746. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  747. border-color: $e_col_124;background-color: $e_col_124;}}
  748. &[tid='116']{
  749. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  750. border-color: $e_col_116;background-color: $e_col_116;}}
  751. &[tid='117']{
  752. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  753. border-color: $e_col_117;background-color: $e_col_117;}}
  754. &[tid='131']{
  755. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  756. border-color: $e_col_131;background-color: $e_col_131;}}
  757. &[tid='126']{
  758. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  759. border-color: $e_col_126;background-color: $e_col_126;}}
  760. &[tid='123']{
  761. a.term-link:before, .entree-content span.oblique-wrapper a:before{
  762. border-color: $e_col_123;background-color: $e_col_123;}}
  763. // &.highlighted{
  764. // a.term_link{
  765. // color: red;
  766. // }
  767. // }
  768. .entree-content span.oblique-wrapper a:not(:hover):not(.is-active):before{background-color: #fff!important;}
  769. a.articles-link:not(:hover):not(.is-active):before{
  770. background-color: #fff!important;
  771. }
  772. &:not(.opened){
  773. a.term-link:not(:hover):not(.highlighted):before{
  774. background-color: #fff!important;
  775. }
  776. }
  777. &.opened{
  778. // outline: 1px solid purple;
  779. a.term-link:after {
  780. content: '';
  781. position: absolute;
  782. left: 15px; right:0;
  783. bottom: -3px;
  784. border-bottom: 1px solid grey;
  785. }
  786. .entree-content{
  787. width:350px;
  788. opacity: 1;
  789. }
  790. }
  791. // &:not(:first-of-type) .entree-content{display: none;}
  792. }
  793. }
  794. }
  795. #block-userlogin{
  796. pointer-events: all;
  797. // outline: 1px solid blue;
  798. $wh:20px;
  799. position: relative;
  800. width:$wh; height: $wh;
  801. // background-color: blue;
  802. h2{
  803. position: relative;
  804. width:$wh; height:$wh;
  805. background-image: url(../img/user.svg);
  806. // background-color: red;
  807. background-size: contain;
  808. text-indent: $wh*2;
  809. margin: 0;
  810. overflow: hidden;
  811. z-index: 1;
  812. cursor: pointer;
  813. }
  814. .block-content{
  815. z-index: 0;
  816. position:absolute;
  817. right:0;bottom:$wh;
  818. padding:0.5em;
  819. padding-bottom: 20px;
  820. background-color: $transparent-bg;
  821. overflow: hidden;
  822. box-sizing:border-box;
  823. height: 0px;
  824. opacity:0;
  825. pointer-events:none;
  826. transition: all 0.5s ease-in-out;
  827. transition-property: height,opacity;
  828. // &:hover{
  829. // height:200px;
  830. // opacity:1;
  831. // pointer-events: auto;
  832. // }
  833. form{
  834. font-size: 0.75em;
  835. }
  836. .item-list{
  837. ul{margin:0;}
  838. li{
  839. margin:0;
  840. list-style: none;
  841. a{
  842. color: inherit;
  843. text-decoration: none;
  844. font-size: 0.75em;
  845. white-space:nowrap;
  846. }
  847. }
  848. }
  849. }
  850. &:hover{
  851. .block-content{
  852. height:200px;
  853. opacity: 1;
  854. pointer-events:auto;
  855. }
  856. }
  857. }
  858. }
  859. // _ _ _ ___
  860. // | \| |___ __| |___ | _ \___ _ __ _ _ _ __
  861. // | .` / _ \/ _` / -_) | _/ _ \ '_ \ || | '_ \
  862. // |_|\_\___/\__,_\___| |_| \___/ .__/\_,_| .__/
  863. // |_| |_|
  864. .node-popup{
  865. .inner{
  866. position: relative;
  867. .entrees{
  868. span{
  869. @include entrie-micro-square;
  870. }
  871. }
  872. .title{
  873. margin:0.3em 0;
  874. font-size: 1.2em;
  875. font-weight: 500;
  876. }
  877. .description{
  878. p{
  879. margin:0;
  880. font-size: 0.75em;
  881. }
  882. }
  883. .chutier-icon{
  884. position:absolute;
  885. top:1em; right:1em;
  886. }
  887. }
  888. }