styles.scss 14 KB

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