styles.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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. }
  39. #header{
  40. h1{
  41. display:block;
  42. height:335px;
  43. background-image: url(../../images/logo.png);
  44. background-size: contain;
  45. background-position: center;
  46. background-repeat: no-repeat;
  47. text-indent: -2000px;
  48. overflow: hidden;
  49. margin: 0;
  50. }
  51. h2{
  52. text-align: center;
  53. color:$vert;
  54. }
  55. }
  56. // about
  57. #node-63{
  58. // color:$bleu;
  59. }
  60. #thematique-anchor-links{
  61. padding:1em 0;
  62. ul{
  63. display: flex;
  64. flex-flow: row nowrap;
  65. justify-content: space-between;
  66. padding:0; margin:0;
  67. li{
  68. list-style: none;
  69. padding:0 1em; margin: 0;
  70. a{
  71. // color: $bleu;
  72. text-decoration: none;
  73. font-weight: 600;
  74. span{
  75. display: block;
  76. }
  77. &.en_attente{
  78. // opacity: 0.4;
  79. color:#ddd;
  80. }
  81. &.node-32{
  82. color:$coul0;
  83. }
  84. &.node-14{
  85. color:$coul1;
  86. }
  87. &.node-38{
  88. color:$coul2;
  89. }
  90. &.node-3{
  91. color:$coul3;
  92. }
  93. &.node-20{
  94. color:$coul4;
  95. }
  96. &.node-26{
  97. color:$coul5;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. // thematique
  104. .node-thematique{
  105. background-position: center;
  106. background-size: contain;
  107. background-repeat: no-repeat;
  108. &.node-32{
  109. background-image: url(../../images/fond-theme-0.png);
  110. >h2,
  111. .group-video .field-name-field-description h3,
  112. .group-description .field-name-field-ecouter,
  113. .node-documentair .field-name-field-doc,
  114. .node-episode .field-name-title-field{color: $coul0;}
  115. }
  116. &.node-14{
  117. background-image: url(../../images/fond-theme-0.png);
  118. >h2,
  119. .group-video .field-name-field-description h3,
  120. .group-description .field-name-field-ecouter,
  121. .node-documentair .field-name-field-doc,
  122. .node-episode .field-name-title-field{color: $coul1;}
  123. }
  124. &.node-38{
  125. background-image: url(../../images/fond-theme-0.png);
  126. >h2,
  127. .group-video .field-name-field-description h3,
  128. .group-description .field-name-field-ecouter,
  129. .node-documentair .field-name-field-doc,
  130. .node-episode .field-name-title-field{color: $coul2;}
  131. }
  132. &.node-3{
  133. background-image: url(../../images/fond-theme-0.png);
  134. >h2,
  135. .group-video .field-name-field-description h3,
  136. .group-description .field-name-field-ecouter,
  137. .node-documentair .field-name-field-doc,
  138. .node-episode .field-name-title-field{color: $coul3;}
  139. }
  140. &.node-20{
  141. background-image: url(../../images/fond-theme-0.png);
  142. >h2,
  143. .group-video .field-name-field-description h3,
  144. .group-description .field-name-field-ecouter,
  145. .node-documentair .field-name-field-doc,
  146. .node-episode .field-name-title-field{color: $coul4;}
  147. }
  148. &.node-26{
  149. background-image: url(../../images/fond-theme-0.png);
  150. >h2,
  151. .group-video .field-name-field-description h3,
  152. .group-description .field-name-field-ecouter,
  153. .node-documentair .field-name-field-doc,
  154. .node-episode .field-name-title-field{color: $coul5;}
  155. }
  156. >h2{
  157. font-size: 3em;
  158. font-weight: 400;
  159. }
  160. .content{
  161. .field-name-field-emvideo img{width: 100%;}
  162. letter-spacing: -0.25em;
  163. >*{letter-spacing: normal;}
  164. $main_w : 69.5%;
  165. $right_w : 30.5%;
  166. $gouttiere: 1em;
  167. // _
  168. // ____ ___ ____ _(_)___
  169. // / __ `__ \/ __ `/ / __ \
  170. // / / / / / / /_/ / / / / /
  171. // /_/ /_/ /_/\__,_/_/_/ /_/
  172. article.main{
  173. display: inline-block;
  174. vertical-align: top;
  175. width:$main_w;
  176. .field-name-body{
  177. position: relative; z-index: 3;
  178. >*{padding:0 1em 0 0.2em;}
  179. .summary{
  180. position: relative;
  181. height:141px; overflow: hidden;
  182. p{
  183. font-size: 1.3em;
  184. }
  185. }
  186. .value{
  187. position:absolute;
  188. height:0; margin-bottom: 0;
  189. transition:height,margin-bottom 0.5s ease-in-out;
  190. background-color: #fff;
  191. overflow: hidden;
  192. }
  193. &:hover{
  194. .summary{background-color: #fff;}
  195. .value{
  196. height:400px; margin-bottom: 1em;
  197. }
  198. }
  199. p{padding:0 0 1em; margin: 0;}
  200. } //field-name-body
  201. .group-video{
  202. position: relative;
  203. .group-description{
  204. cursor: pointer; pointer-events: none;
  205. box-sizing: border-box;
  206. position:absolute; z-index: 2;
  207. top:0; left: 0;
  208. width:90%;
  209. height:80%;
  210. margin:5%;
  211. padding:5%;
  212. background-color: rgba(255,255,255,0);
  213. transition: background-color 0.3s ease-in-out;
  214. .field-name-field-ecouter{
  215. font-size: 1em;
  216. font-weight: 500;
  217. background-color: rgba(255,255,255,0.9);
  218. transition: background-color 0.3s ease-in-out;
  219. display: inline-block;
  220. }
  221. .field-name-field-description{
  222. opacity: 0;
  223. transition: opacity 0.3s ease-in-out;
  224. h3{
  225. font-weight: 500; font-size: 2em
  226. }
  227. }
  228. }
  229. &:hover .group-description{
  230. background-color: rgba(255,255,255,0.9);
  231. .field-name-field-ecouter{
  232. background-color: rgba(255,255,255,0);
  233. }
  234. .field-name-field-description{opacity:1;}
  235. }
  236. }
  237. }
  238. // __
  239. // ____/ /___ __________
  240. // / __ / __ \/ ___/ ___/
  241. // / /_/ / /_/ / /__(__ )
  242. // \__,_/\____/\___/____/
  243. aside.right{
  244. display: inline-block;
  245. vertical-align: top;
  246. width: $right_w;
  247. .field-name-field-eclairages{
  248. padding-left:1em;
  249. }
  250. .node-documentair{
  251. padding-bottom: $gouttiere;
  252. .content{
  253. position: relative;
  254. .group-txt{
  255. cursor: pointer; pointer-events: none;
  256. box-sizing: border-box;
  257. position:absolute; z-index: 2; overflow: hidden;
  258. top:0; left:0; width:90%; max-height:80%;
  259. margin:5%; padding:5%;
  260. background-color: rgba(255, 255, 255, 0.9);
  261. // opacity: 0;
  262. .field-name-field-doc{
  263. font-size: 1em;
  264. font-weight: 500;
  265. }
  266. .field-name-title-field{
  267. font-size: 2em;
  268. font-weight: 600;
  269. height:1px; overflow: hidden;
  270. transition:height 0.3s ease-in-out;
  271. }
  272. }
  273. &:hover .group-txt .field-name-title-field{height:70%;}
  274. }
  275. }
  276. }
  277. // _ __
  278. // ___ ____ (_)________ ____/ /__ _____
  279. // / _ \/ __ \/ / ___/ __ \/ __ / _ \/ ___/
  280. // / __/ /_/ / (__ ) /_/ / /_/ / __(__ )
  281. // \___/ .___/_/____/\____/\__,_/\___/____/
  282. // /_/
  283. aside.bottom{
  284. padding-top: $gouttiere;
  285. .field-name-field-episodes{
  286. // letter-spacing: -0.25em;
  287. &>.field-items{
  288. display: flex;
  289. flex-flow: row nowrap;
  290. justify-content: space-between;
  291. &>.field-item{
  292. display: block;
  293. // letter-spacing: normal;
  294. // display: inline-block;
  295. width:19%;
  296. // padding-right:1%;
  297. .node-episode .content{
  298. position: relative;
  299. .group-txt{
  300. cursor: pointer; pointer-events: none;
  301. box-sizing: border-box;
  302. position:absolute; z-index: 2; overflow: hidden;
  303. top:0; left:0; width:90%; height:80%;
  304. margin:5%; padding:5%;
  305. background-color: rgba(255, 255, 255, 0.3);
  306. opacity: 0.8;
  307. transition:opacity,background-color 0.3s ease-in-out;
  308. .field-name-title-field{
  309. font-size: 4em;
  310. font-weight: 700;
  311. font-style: italic;
  312. text-align: center;
  313. }
  314. }
  315. &:hover .group-txt{
  316. opacity: 1;
  317. background-color: rgba(255, 255, 255, 0.9);
  318. }
  319. }
  320. }
  321. }
  322. }
  323. .field-name-body{
  324. // display:none;
  325. }
  326. }
  327. }
  328. }
  329. #DOMWindowOverlay{
  330. // background-color: #fff!important;
  331. }
  332. #DOMWindow{
  333. .embedded-video, .player ,iframe{
  334. width:100%;
  335. height:100%;
  336. }
  337. }
  338. #footer{
  339. }
  340. // .block, .panel-pane{
  341. // border: 1px solid #D1D1D1; padding:0.5em; margin:0.5em;
  342. // -moz-border-radius: 5px;
  343. // -webkit-border-radius: 5px;
  344. // border-radius: 5px;
  345. // background-color: #EAEAEA;
  346. // }
  347. .footer-block .block{
  348. // background-color: #353535; border: 1px solid #1a1a1a;
  349. }
  350. #footer-bottom{ text-align: center;}
  351. #footer-bottom .block{
  352. background-color: transparent;
  353. // border: 0 solid #999;
  354. font-size:0.7em;
  355. }
  356. #content{padding:1em;}
  357. /** Messages. */
  358. div.messages {
  359. padding: 9px;
  360. margin: 0.5em 0 0;
  361. color: #036;
  362. background: #bdf;
  363. border: 1px solid #ace;
  364. -moz-border-radius: 5px;
  365. -webkit-border-radius: 5px;
  366. border-radius: 5px;
  367. }
  368. div.warning {
  369. color: #840;
  370. background: #fe6;
  371. border-color: #ed5;
  372. }
  373. div.error {
  374. color: #fff;
  375. background: #e63;
  376. border-color: #d52;
  377. }
  378. div.error p.error {
  379. color: #333;
  380. }
  381. div.status {
  382. color: #360;
  383. background: #cf8;
  384. border-color: #be7;
  385. }
  386. /** Tab navigation */
  387. ul.primary, .views-admin-links ul {
  388. font:13px/1.231 sans-serif; *font-size:small;
  389. border-collapse: collapse;
  390. padding: 0 0 0 1em; /* LTR */
  391. white-space: nowrap;
  392. list-style: none;
  393. margin: 5px;
  394. height: auto;
  395. line-height: normal;
  396. // border-bottom: 1px solid #bbb;
  397. }
  398. ul.primary li, .views-admin-links li{
  399. display: inline;
  400. }
  401. ul.primary li a, .views-admin-links li a {
  402. // background-color: #ddd;
  403. // border-color: #bbb;
  404. border-width: 1px;
  405. border-style: solid solid none solid;
  406. height: auto;
  407. margin-right: 0.5em; /* LTR */
  408. padding: 0 1em;
  409. text-decoration: none;
  410. -moz-border-radius-topleft: 5px;
  411. -webkit-border-top-left-radius: 5px;
  412. border-top-left-radius: 5px;
  413. -moz-border-radius-topright: 5px;
  414. -webkit-border-top-right-radius: 5px;
  415. border-top-right-radius: 5px;
  416. }
  417. // ul.primary li.active a {
  418. // background-color: #fff;
  419. // border: 1px solid #bbb;
  420. // border-bottom: #fff 1px solid;
  421. // }
  422. // ul.primary li a:hover, .views-admin-links li a:hover{
  423. // background-color: #eee;
  424. // border-color: #ccc;
  425. // border-bottom-color: #eee;
  426. // }
  427. // ul.secondary {
  428. // border-bottom: 1px solid #bbb;
  429. // padding: 0.5em 1em;
  430. // margin: 5px;
  431. // }
  432. // ul.secondary li {
  433. // display: inline;
  434. // padding: 0 1em;
  435. // border-right: 1px solid #ccc; /* LTR */
  436. // }
  437. // ul.secondary a {
  438. // padding: 0;
  439. // text-decoration: none;
  440. // }
  441. // ul.secondary a.active {
  442. // border-bottom: 4px solid #999;
  443. // }
  444. //
  445. /** Form */
  446. #node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
  447. #node-form .form-region-main label{float:left; min-width:25%;}
  448. #node-form .form-region-main input.form-text{width:40%;}
  449. #node-form .form-region-right{padding-left:5px;}
  450. #node-form .form-region-right label{float:left; min-width:35%;}
  451. #node-form .form-region-right input.form-text{width:60%;}
  452. #node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
  453. form:not( #views-ui-config-item-form ) .form-item {
  454. position:relative;
  455. /* padding:9px;*/
  456. }
  457. form:not( #views-ui-config-item-form ) .form-item .description{
  458. position:absolute;
  459. bottom:140%;
  460. /* right:-15px;*/
  461. z-index:5;
  462. left:50%;
  463. color:#1A1A1A;
  464. line-height:1.1;
  465. background:url(../images/popup.png) 50% 100% no-repeat;
  466. width:240px;
  467. margin:0px 0px -15px;
  468. padding:9px 10px 20px;
  469. display:none;
  470. border-top: 1px solid #9F9F9F;
  471. }
  472. form:not( #views-ui-config-item-form ) .form-item:hover {
  473. z-index:1;
  474. height:auto; /* Fix for flicker in IE7 */
  475. }
  476. form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
  477. fieldset{
  478. border: 1px solid #D4D4D4;
  479. padding:10px;
  480. margin-bottom:1em;
  481. -moz-border-radius: 5px;
  482. -webkit-border-radius: 5px;
  483. border-radius: 5px;
  484. }
  485. fieldset legend{
  486. font-size:1.6em;
  487. }
  488. input.form-text{max-width:95%;}
  489. /** TABLE */
  490. table{width:100%;
  491. -moz-border-radius: 5px;
  492. -webkit-border-radius: 5px;
  493. border-radius: 5px;
  494. }
  495. table thead th{
  496. background-color: #CCC;
  497. padding:0.5em 1em;
  498. text-align: left;
  499. }
  500. table tbody tr.even, table tbody tr.odd{
  501. border-bottom: 0 solid #CCCCCC;
  502. padding: 0.1em 0.6em;
  503. }
  504. table tbody tr.even{background-color: #EEE;}
  505. table tbody tr.odd{background-color: #E5E5E5;}
  506. table tbody td{
  507. padding:0.5em 1em;
  508. text-align: left;
  509. }
  510. td.active {background-color: transparent;}