styles.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. /**
  2. * Primary Drupal Styles
  3. * Author: Bachir Soussi Chiadmi
  4. */
  5. body{
  6. font-size:16px;
  7. font-family: "aileron", Arial, "MS Trebuchet", sans-serif;
  8. }
  9. // a{color: #007BC2; text-decoration: none;}
  10. h1{font-size:1.6em;}
  11. h2{font-size:1.5em;}
  12. h3{font-size:1.4em;}
  13. h4{font-size:1.3em;}
  14. h5{font-size:1.2em;}
  15. h6{font-size:1.1em;}
  16. input{font-family: Arial, "MS Trebuchet", sans-serif; font-size:0.8em;}
  17. // __
  18. // _________ / /___ __________
  19. // / ___/ __ \/ / __ \/ ___/ ___/
  20. // / /__/ /_/ / / /_/ / / (__ )
  21. // \___/\____/_/\____/_/ /____/
  22. $vert : #20c498;
  23. // $bleu : #1f04a1;
  24. // $rouge : #fb3f08;
  25. $coul0 : #2f82ff;
  26. $coul1 : #ff0000;
  27. $coul2 : #88aa00;
  28. $coul3 : #ff6600;
  29. $coul4 : #ff2ad4;
  30. $coul5 : #8800aa;
  31. /** layout */
  32. .footer-block .region, .header-block{ display:inline-block; vertical-align: top;}
  33. #header, #main, #footer{ padding:0; }
  34. body{
  35. }
  36. @mixin main_centred(){
  37. width:1024px; margin:0 auto;
  38. }
  39. #container{
  40. width:1024px; margin:0 auto;
  41. // overflow-x: visible;
  42. }
  43. $header_height:400px;
  44. #header{
  45. position: fixed;
  46. width:100%; max-height: $header_height;
  47. z-index: 20;
  48. background-color: transparentize(#fff, 0.1);
  49. hgroup.logo{
  50. @include main_centred();
  51. padding: 1em 0;
  52. }
  53. h1{margin:0;}
  54. h1 a{
  55. display:block;
  56. height:335px;
  57. // transition: height 0.1s ease-in-out;
  58. background-image: url(../../images/logo.png);
  59. background-size: contain;
  60. background-position: center;
  61. background-repeat: no-repeat;
  62. text-indent: -2000px;
  63. overflow: hidden;
  64. margin: 0;
  65. }
  66. h2{
  67. text-align: center;
  68. color:$vert;
  69. }
  70. }
  71. #main{
  72. padding-top: $header_height;
  73. >.region{
  74. @include main_centred();
  75. }
  76. }
  77. // about
  78. #node-63{
  79. // color:$bleu;
  80. padding:1em 0;
  81. .content{
  82. section{display: inline;}
  83. p{ margin:0;}
  84. }
  85. ul.links{
  86. // display: block;
  87. text-align: right;
  88. margin: 0; padding: 0;
  89. li{margin: 0; padding: 0; display: inline-block;}
  90. a{
  91. color: inherit; text-decoration: none;
  92. font-weight: 500;
  93. }
  94. }
  95. }
  96. #thematique-anchor-links{
  97. padding:1em 0;
  98. ul{
  99. display: flex;
  100. flex-flow: row nowrap;
  101. justify-content: space-between;
  102. padding:0; margin:0;
  103. li{
  104. max-width: 7em;
  105. list-style: none;
  106. padding:0; margin: 0;
  107. a{
  108. // color: $bleu;
  109. text-decoration: none;
  110. font-weight: 600;
  111. display:block;
  112. min-height: 3em;
  113. background-position: center;
  114. background-repeat: no-repeat;
  115. background-size: contain;
  116. span{
  117. display: block;
  118. }
  119. @mixin anchor($bg, $sb_bg, $coul){
  120. background-image: $bg;
  121. color:$coul;
  122. &.en_attente{
  123. // opacity: 0.4;
  124. color:#aaa;//transparentize($coul, 0.8);//saturate(lighten($coul, 40%), 90%);
  125. background-image: $sb_bg;
  126. cursor: default;
  127. }
  128. }
  129. &.node-32{
  130. @include anchor(
  131. url(../../images/menu-fond-theme-0-flat.jpg),
  132. url(../../images/menu-fond-theme-0-flat-nb.jpg),
  133. $coul0);
  134. }
  135. &.node-14{
  136. @include anchor(
  137. url(../../images/menu-fond-theme-1-flat.jpg),
  138. url(../../images/menu-fond-theme-1-flat-nb.jpg),
  139. $coul1);
  140. }
  141. &.node-38{
  142. @include anchor(
  143. url(../../images/menu-fond-theme-2-flat.jpg),
  144. url(../../images/menu-fond-theme-2-flat-nb.jpg),
  145. $coul2);
  146. }
  147. &.node-3{
  148. @include anchor(
  149. url(../../images/menu-fond-theme-3-flat.jpg),
  150. url(../../images/menu-fond-theme-3-flat-nb.jpg),
  151. $coul3);
  152. }
  153. &.node-20{
  154. @include anchor(
  155. url(../../images/menu-fond-theme-4-flat.jpg),
  156. url(../../images/menu-fond-theme-4-flat-nb.jpg),
  157. $coul4);
  158. }
  159. &.node-26{
  160. @include anchor(
  161. url(../../images/menu-fond-theme-5-flat.jpg),
  162. url(../../images/menu-fond-theme-5-flat-nb.jpg),
  163. $coul5);
  164. }
  165. &:hover{
  166. // TODO: anchor link over effect
  167. }
  168. }
  169. }
  170. }
  171. }
  172. html,
  173. body,
  174. #container,
  175. #main,
  176. #main>.region,
  177. #block-system-main,
  178. #block-system-main>.content,
  179. .node-thematique{
  180. overflow-x: visible;
  181. }
  182. // thematique
  183. .node-thematique{
  184. min-height:766px;
  185. margin-bottom: 10em;
  186. position: relative;
  187. &::before{
  188. position: absolute;
  189. content:" ";
  190. width:110%; height:110%;
  191. top:-5%; left:-5%;
  192. z-index: -1;
  193. background-position: center;
  194. background-size: contain;
  195. background-repeat: no-repeat;
  196. // border: 1px dotted red;
  197. }
  198. @mixin node_thema($bg, $sb_bg, $coul){
  199. &::before{background-image: $bg;}
  200. &.en_attente::before{background-image: $sb_bg;}
  201. &.en_attente{
  202. >h2,
  203. .group-video .field-name-field-description h3,
  204. .group-description .field-name-field-ecouter,
  205. .node-documentair .field-name-field-doc,
  206. .node-episode .field-name-title-field{
  207. color: #aaa;//lighten(desaturate($coul, 40%), 20%);
  208. }
  209. }
  210. &:not(.en_attente){
  211. >h2,
  212. .group-video .field-name-field-description h3,
  213. .group-description .field-name-field-ecouter,
  214. .node-documentair .field-name-field-doc,
  215. .node-episode .field-name-title-field{color: $coul;}
  216. }
  217. }
  218. &.node-32{
  219. @include node_thema(
  220. url(../../images/fond-theme-0-flat.png),
  221. url(../../images/fond-theme-0-flat-nb.jpg),
  222. $coul0);
  223. }
  224. &.node-14{
  225. @include node_thema(
  226. url(../../images/fond-theme-1-flat.png),
  227. url(../../images/fond-theme-1-flat-nb.jpg),
  228. $coul1);
  229. }
  230. &.node-38{
  231. @include node_thema(
  232. url(../../images/fond-theme-2-flat.png),
  233. url(../../images/fond-theme-2-flat-nb.jpg),
  234. $coul2);
  235. }
  236. &.node-3{
  237. @include node_thema(
  238. url(../../images/fond-theme-3-flat.png),
  239. url(../../images/fond-theme-3-flat-nb.jpg),
  240. $coul3);
  241. }
  242. &.node-20{
  243. @include node_thema(
  244. url(../../images/fond-theme-4-flat.png),
  245. url(../../images/fond-theme-4-flat-nb.jpg),
  246. $coul4);
  247. }
  248. &.node-26{
  249. @include node_thema(
  250. url(../../images/fond-theme-5-flat.png),
  251. url(../../images/fond-theme-5-flat-nb.jpg),
  252. $coul5);
  253. }
  254. >h2{
  255. font-size: 3em;
  256. font-weight: 400;
  257. padding-left: 0.18em;
  258. position:relative;
  259. span{
  260. position: absolute;
  261. top:-177px;
  262. }
  263. }
  264. .content{
  265. .field-name-field-emvideo img{width: 100%;}
  266. letter-spacing: -0.25em;
  267. >*{letter-spacing: normal;}
  268. $main_w : 69.5%;
  269. $right_w : 30.5%;
  270. $gouttiere: 1em;
  271. // _
  272. // ____ ___ ____ _(_)___
  273. // / __ `__ \/ __ `/ / __ \
  274. // / / / / / / /_/ / / / / /
  275. // /_/ /_/ /_/\__,_/_/_/ /_/
  276. article.main{
  277. display: inline-block;
  278. vertical-align: top;
  279. width:$main_w;
  280. overflow: hidden;
  281. .field-name-body{
  282. position: relative; z-index: 3;
  283. >*{padding:0 1em 0 0.2em;}
  284. .summary{
  285. position: relative;
  286. height:5.75em; overflow: hidden;
  287. background-color: #fff;
  288. transition: background-color 0.5 ease-in-out;
  289. p{
  290. font-size: 1.1em;
  291. padding:0.5em;
  292. font-weight: 500;
  293. }
  294. }
  295. .value{
  296. position:absolute;
  297. height:1px; margin-bottom: 0;
  298. transition:height 0.5s ease-in-out;
  299. background-color: #fff;
  300. overflow: hidden;
  301. p{
  302. font-size: 1em; padding: 0.5em;
  303. }
  304. }
  305. &:hover{
  306. .summary{background-color: #fff;}
  307. .value{
  308. height:700px;
  309. }
  310. }
  311. p{padding:0 0 1em; margin: 0;}
  312. } //field-name-body
  313. .group-video{
  314. position: relative;
  315. .group-description{
  316. cursor: pointer; pointer-events: none;
  317. box-sizing: border-box;
  318. position:absolute; z-index: 2;
  319. top:0; left: 0;
  320. width:90%;
  321. height:80%;
  322. margin:5%;
  323. padding:5%;
  324. background-color: rgba(255,255,255,0);
  325. transition: background-color 0.3s ease-in-out;
  326. .field-name-field-ecouter{
  327. font-size: 1em;
  328. font-weight: 500;
  329. background-color: rgba(255,255,255,0.9);
  330. transition: background-color 0.3s ease-in-out;
  331. display: inline-block;
  332. }
  333. .field-name-field-description{
  334. opacity: 0;
  335. transition: opacity 0.3s ease-in-out;
  336. h3{
  337. font-weight: 500; font-size: 2em
  338. }
  339. }
  340. }
  341. &:hover .group-description{
  342. background-color: rgba(255,255,255,0.9);
  343. .field-name-field-ecouter{
  344. background-color: rgba(255,255,255,0);
  345. }
  346. .field-name-field-description{opacity:1;}
  347. }
  348. }
  349. }
  350. // __
  351. // ____/ /___ __________
  352. // / __ / __ \/ ___/ ___/
  353. // / /_/ / /_/ / /__(__ )
  354. // \__,_/\____/\___/____/
  355. aside.right{
  356. display: inline-block;
  357. vertical-align: top;
  358. width: $right_w;
  359. .field-name-field-eclairages{
  360. padding-left:1em;
  361. }
  362. .node-documentair{
  363. padding-bottom: $gouttiere;
  364. .content{
  365. position: relative;
  366. .group-txt{
  367. cursor: pointer; pointer-events: none;
  368. box-sizing: border-box;
  369. position:absolute; z-index: 2; overflow: hidden;
  370. top:0; left:0; width:90%; max-height:80%;
  371. margin:5%; padding:5%;
  372. background-color: rgba(255, 255, 255, 0.9);
  373. // opacity: 0;
  374. .field-name-field-doc{
  375. font-size: 1em;
  376. font-weight: 500;
  377. }
  378. .field-name-title-field{
  379. font-size: 2em;
  380. font-weight: 600;
  381. height:1px; overflow: hidden;
  382. transition:height 0.3s ease-in-out;
  383. }
  384. }
  385. }
  386. &:not(.en_attente):hover .group-txt .field-name-title-field{height:70%;}
  387. &.en_attente>.content{
  388. position: relative;
  389. &::before{
  390. position: absolute;
  391. top:0; left:0;
  392. width:100%; height:100%;
  393. content:" ";
  394. z-index: 10;
  395. background-color: #fff;
  396. opacity: 0.8;
  397. }
  398. }
  399. }
  400. }
  401. // _ __
  402. // ___ ____ (_)________ ____/ /__ _____
  403. // / _ \/ __ \/ / ___/ __ \/ __ / _ \/ ___/
  404. // / __/ /_/ / (__ ) /_/ / /_/ / __(__ )
  405. // \___/ .___/_/____/\____/\__,_/\___/____/
  406. // /_/
  407. aside.bottom{
  408. padding-top: $gouttiere;
  409. .field-name-field-episodes{
  410. // letter-spacing: -0.25em;
  411. &>.field-items{
  412. display: flex;
  413. flex-flow: row nowrap;
  414. justify-content: space-between;
  415. &>.field-item{
  416. display: block;
  417. // letter-spacing: normal;
  418. // display: inline-block;
  419. width:19%;
  420. // padding-right:1%;
  421. .node-episode{
  422. .content{
  423. position: relative;
  424. .group-txt{
  425. cursor: pointer; pointer-events: none;
  426. box-sizing: border-box;
  427. position:absolute; z-index: 2; overflow: hidden;
  428. top:0; left:0; width:90%; height:80%;
  429. margin:5%; padding:5%;
  430. background-color: rgba(255, 255, 255, 0.9);
  431. opacity: 1;
  432. transition:opacity,background-color 0.3s ease-in-out;
  433. .field-name-title-field{
  434. font-size: 4em;
  435. font-weight: 700;
  436. font-style: italic;
  437. text-align: center;
  438. }
  439. }
  440. }
  441. &:not(.en_attente):hover .content .group-txt{
  442. opacity: 0.9;
  443. background-color: rgba(255, 255, 255, 0.3);
  444. }
  445. &.en_attente>.content{
  446. position: relative;
  447. &::before{
  448. position: absolute;
  449. top:0; left:0;
  450. width:100%; height:100%;
  451. content:" ";
  452. z-index: 10;
  453. background-color: #fff;
  454. opacity: 0.8;
  455. }
  456. }
  457. }
  458. }
  459. }
  460. }
  461. .field-name-body{
  462. // display:none;
  463. }
  464. }
  465. }
  466. &.en_attente{
  467. .content>.main{
  468. position: relative;
  469. &::before{
  470. position: absolute;
  471. top:0; left:0;
  472. width:100%; height:100%;
  473. content:" ";
  474. z-index: 10;
  475. background-color: #fff;
  476. opacity: 0.8;
  477. }
  478. }
  479. }
  480. }
  481. // ____ __
  482. // / __ \_ _____ _____/ /___ ___ __
  483. // / / / / | / / _ \/ ___/ / __ `/ / / /
  484. // / /_/ /| |/ / __/ / / / /_/ / /_/ /
  485. // \____/ |___/\___/_/ /_/\__,_/\__, /
  486. // /____/
  487. #DOMWindowOverlay{
  488. // background-color: #fff!important;
  489. }
  490. #DOMWindow{
  491. .embedded-video, .player ,iframe{
  492. width:100%;
  493. height:100%;
  494. }
  495. }
  496. // ____
  497. // / __ \____ _____ ____
  498. // / /_/ / __ `/ __ `/ _ \
  499. // / ____/ /_/ / /_/ / __/
  500. // /_/ \__,_/\__, /\___/
  501. // /____/
  502. .page-title{
  503. font-size: 3em;
  504. font-weight: 400;
  505. text-transform: capitalize;
  506. }
  507. // ______ __
  508. // / ____/___ ____ / /____ _____
  509. // / /_ / __ \/ __ \/ __/ _ \/ ___/
  510. // / __/ / /_/ / /_/ / /_/ __/ /
  511. // /_/ \____/\____/\__/\___/_/
  512. #footer{
  513. }
  514. #block-menu-menu-footer-menu{
  515. padding:2em 0;
  516. ul{ margin:0; padding:0; text-align: center;}
  517. li{display:inline-block; list-style: none;}
  518. a{ text-decoration: none; color: inherit;}
  519. }
  520. .region-footer-bottom{
  521. text-align: center;
  522. }
  523. .region-footer-bottom .block{
  524. display: inline-block;
  525. font-size:0.7em;
  526. margin: 2em 0;
  527. }
  528. #content{padding:1em;}
  529. /** Messages. */
  530. div.messages {
  531. padding: 9px;
  532. margin: 0.5em 0 0;
  533. color: #036;
  534. background: #bdf;
  535. border: 1px solid #ace;
  536. -moz-border-radius: 5px;
  537. -webkit-border-radius: 5px;
  538. border-radius: 5px;
  539. }
  540. div.warning {
  541. color: #840;
  542. background: #fe6;
  543. border-color: #ed5;
  544. }
  545. div.error {
  546. color: #fff;
  547. background: #e63;
  548. border-color: #d52;
  549. }
  550. div.error p.error {
  551. color: #333;
  552. }
  553. div.status {
  554. color: #360;
  555. background: #cf8;
  556. border-color: #be7;
  557. }
  558. /** Tab navigation */
  559. ul.primary, .views-admin-links ul {
  560. font:13px/1.231 sans-serif; *font-size:small;
  561. border-collapse: collapse;
  562. padding: 0 0 0 1em; /* LTR */
  563. white-space: nowrap;
  564. list-style: none;
  565. margin: 5px;
  566. height: auto;
  567. line-height: normal;
  568. // border-bottom: 1px solid #bbb;
  569. }
  570. ul.primary li, .views-admin-links li{
  571. display: inline;
  572. }
  573. ul.primary li a, .views-admin-links li a {
  574. // background-color: #ddd;
  575. // border-color: #bbb;
  576. border-width: 1px;
  577. border-style: solid solid none solid;
  578. height: auto;
  579. margin-right: 0.5em; /* LTR */
  580. padding: 0 1em;
  581. text-decoration: none;
  582. -moz-border-radius-topleft: 5px;
  583. -webkit-border-top-left-radius: 5px;
  584. border-top-left-radius: 5px;
  585. -moz-border-radius-topright: 5px;
  586. -webkit-border-top-right-radius: 5px;
  587. border-top-right-radius: 5px;
  588. }
  589. // ul.primary li.active a {
  590. // background-color: #fff;
  591. // border: 1px solid #bbb;
  592. // border-bottom: #fff 1px solid;
  593. // }
  594. // ul.primary li a:hover, .views-admin-links li a:hover{
  595. // background-color: #eee;
  596. // border-color: #ccc;
  597. // border-bottom-color: #eee;
  598. // }
  599. // ul.secondary {
  600. // border-bottom: 1px solid #bbb;
  601. // padding: 0.5em 1em;
  602. // margin: 5px;
  603. // }
  604. // ul.secondary li {
  605. // display: inline;
  606. // padding: 0 1em;
  607. // border-right: 1px solid #ccc; /* LTR */
  608. // }
  609. // ul.secondary a {
  610. // padding: 0;
  611. // text-decoration: none;
  612. // }
  613. // ul.secondary a.active {
  614. // border-bottom: 4px solid #999;
  615. // }
  616. //
  617. /** Form */
  618. #node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
  619. #node-form .form-region-main label{float:left; min-width:25%;}
  620. #node-form .form-region-main input.form-text{width:40%;}
  621. #node-form .form-region-right{padding-left:5px;}
  622. #node-form .form-region-right label{float:left; min-width:35%;}
  623. #node-form .form-region-right input.form-text{width:60%;}
  624. #node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
  625. form:not( #views-ui-config-item-form ) .form-item {
  626. position:relative;
  627. /* padding:9px;*/
  628. }
  629. form:not( #views-ui-config-item-form ) .form-item .description{
  630. position:absolute;
  631. bottom:140%;
  632. /* right:-15px;*/
  633. z-index:5;
  634. left:50%;
  635. color:#1A1A1A;
  636. line-height:1.1;
  637. background:url(../images/popup.png) 50% 100% no-repeat;
  638. width:240px;
  639. margin:0px 0px -15px;
  640. padding:9px 10px 20px;
  641. display:none;
  642. border-top: 1px solid #9F9F9F;
  643. }
  644. form:not( #views-ui-config-item-form ) .form-item:hover {
  645. z-index:1;
  646. height:auto; /* Fix for flicker in IE7 */
  647. }
  648. form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
  649. fieldset{
  650. border: 1px solid #D4D4D4;
  651. padding:10px;
  652. margin-bottom:1em;
  653. -moz-border-radius: 5px;
  654. -webkit-border-radius: 5px;
  655. border-radius: 5px;
  656. }
  657. fieldset legend{
  658. font-size:1.6em;
  659. }
  660. input.form-text{max-width:95%;}
  661. /** TABLE */
  662. table{width:100%;
  663. -moz-border-radius: 5px;
  664. -webkit-border-radius: 5px;
  665. border-radius: 5px;
  666. }
  667. table thead th{
  668. background-color: #CCC;
  669. padding:0.5em 1em;
  670. text-align: left;
  671. }
  672. table tbody tr.even, table tbody tr.odd{
  673. border-bottom: 0 solid #CCCCCC;
  674. padding: 0.1em 0.6em;
  675. }
  676. table tbody tr.even{background-color: #EEE;}
  677. table tbody tr.odd{background-color: #E5E5E5;}
  678. table tbody td{
  679. padding:0.5em 1em;
  680. text-align: left;
  681. }
  682. td.active {background-color: transparent;}
  683. #tasks{
  684. .tabs{
  685. border: none;
  686. padding:0;
  687. a{
  688. border:none;
  689. border-radius: 3px;
  690. background-color: #eee;
  691. padding:0.4em;
  692. color: #000;
  693. margin:0 1em 0 0;
  694. &.active{
  695. background-color: #999;
  696. }
  697. }
  698. }
  699. }