styles.scss 16 KB

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