styles.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  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. overflow: hidden;
  177. .field-name-body{
  178. position: relative; z-index: 3;
  179. >*{padding:0 1em 0 0.2em;}
  180. .summary{
  181. position: relative;
  182. height:5.75em; overflow: hidden;
  183. background-color: transparent;
  184. transition: background-color 0.5 ease-in-out;
  185. p{
  186. font-size: 1.3em;
  187. }
  188. }
  189. .value{
  190. position:absolute;
  191. height:1px; margin-bottom: 0;
  192. transition:height 0.5s ease-in-out;
  193. background-color: #fff;
  194. overflow: hidden;
  195. p{
  196. font-size: 1em; padding: 0.5em;
  197. }
  198. }
  199. &:hover{
  200. .summary{background-color: #fff;}
  201. .value{
  202. height:700px;
  203. }
  204. }
  205. p{padding:0 0 1em; margin: 0;}
  206. } //field-name-body
  207. .group-video{
  208. position: relative;
  209. .group-description{
  210. cursor: pointer; pointer-events: none;
  211. box-sizing: border-box;
  212. position:absolute; z-index: 2;
  213. top:0; left: 0;
  214. width:90%;
  215. height:80%;
  216. margin:5%;
  217. padding:5%;
  218. background-color: rgba(255,255,255,0);
  219. transition: background-color 0.3s ease-in-out;
  220. .field-name-field-ecouter{
  221. font-size: 1em;
  222. font-weight: 500;
  223. background-color: rgba(255,255,255,0.9);
  224. transition: background-color 0.3s ease-in-out;
  225. display: inline-block;
  226. }
  227. .field-name-field-description{
  228. opacity: 0;
  229. transition: opacity 0.3s ease-in-out;
  230. h3{
  231. font-weight: 500; font-size: 2em
  232. }
  233. }
  234. }
  235. &:hover .group-description{
  236. background-color: rgba(255,255,255,0.9);
  237. .field-name-field-ecouter{
  238. background-color: rgba(255,255,255,0);
  239. }
  240. .field-name-field-description{opacity:1;}
  241. }
  242. }
  243. }
  244. // __
  245. // ____/ /___ __________
  246. // / __ / __ \/ ___/ ___/
  247. // / /_/ / /_/ / /__(__ )
  248. // \__,_/\____/\___/____/
  249. aside.right{
  250. display: inline-block;
  251. vertical-align: top;
  252. width: $right_w;
  253. .field-name-field-eclairages{
  254. padding-left:1em;
  255. }
  256. .node-documentair{
  257. padding-bottom: $gouttiere;
  258. .content{
  259. position: relative;
  260. .group-txt{
  261. cursor: pointer; pointer-events: none;
  262. box-sizing: border-box;
  263. position:absolute; z-index: 2; overflow: hidden;
  264. top:0; left:0; width:90%; max-height:80%;
  265. margin:5%; padding:5%;
  266. background-color: rgba(255, 255, 255, 0.9);
  267. // opacity: 0;
  268. .field-name-field-doc{
  269. font-size: 1em;
  270. font-weight: 500;
  271. }
  272. .field-name-title-field{
  273. font-size: 2em;
  274. font-weight: 600;
  275. height:1px; overflow: hidden;
  276. transition:height 0.3s ease-in-out;
  277. }
  278. }
  279. &:hover .group-txt .field-name-title-field{height:70%;}
  280. }
  281. }
  282. }
  283. // _ __
  284. // ___ ____ (_)________ ____/ /__ _____
  285. // / _ \/ __ \/ / ___/ __ \/ __ / _ \/ ___/
  286. // / __/ /_/ / (__ ) /_/ / /_/ / __(__ )
  287. // \___/ .___/_/____/\____/\__,_/\___/____/
  288. // /_/
  289. aside.bottom{
  290. padding-top: $gouttiere;
  291. .field-name-field-episodes{
  292. // letter-spacing: -0.25em;
  293. &>.field-items{
  294. display: flex;
  295. flex-flow: row nowrap;
  296. justify-content: space-between;
  297. &>.field-item{
  298. display: block;
  299. // letter-spacing: normal;
  300. // display: inline-block;
  301. width:19%;
  302. // padding-right:1%;
  303. .node-episode .content{
  304. position: relative;
  305. .group-txt{
  306. cursor: pointer; pointer-events: none;
  307. box-sizing: border-box;
  308. position:absolute; z-index: 2; overflow: hidden;
  309. top:0; left:0; width:90%; height:80%;
  310. margin:5%; padding:5%;
  311. background-color: rgba(255, 255, 255, 0.3);
  312. opacity: 0.8;
  313. transition:opacity,background-color 0.3s ease-in-out;
  314. .field-name-title-field{
  315. font-size: 4em;
  316. font-weight: 700;
  317. font-style: italic;
  318. text-align: center;
  319. }
  320. }
  321. &:hover .group-txt{
  322. opacity: 1;
  323. background-color: rgba(255, 255, 255, 0.9);
  324. }
  325. }
  326. }
  327. }
  328. }
  329. .field-name-body{
  330. // display:none;
  331. }
  332. }
  333. }
  334. }
  335. #DOMWindowOverlay{
  336. // background-color: #fff!important;
  337. }
  338. #DOMWindow{
  339. .embedded-video, .player ,iframe{
  340. width:100%;
  341. height:100%;
  342. }
  343. }
  344. #footer{
  345. }
  346. #block-menu-menu-footer-menu{
  347. ul{ margin:0; padding:0; text-align: center;}
  348. li{display:inline-block; list-style: none;}
  349. a{ text-decoration: none; color: inherit;}
  350. }
  351. .footer-block .block{
  352. font-size: 0.75em;
  353. }
  354. #footer-bottom{ text-align: center;}
  355. #footer-bottom .block{
  356. background-color: transparent;
  357. // border: 0 solid #999;
  358. font-size:0.7em;
  359. }
  360. #content{padding:1em;}
  361. /** Messages. */
  362. div.messages {
  363. padding: 9px;
  364. margin: 0.5em 0 0;
  365. color: #036;
  366. background: #bdf;
  367. border: 1px solid #ace;
  368. -moz-border-radius: 5px;
  369. -webkit-border-radius: 5px;
  370. border-radius: 5px;
  371. }
  372. div.warning {
  373. color: #840;
  374. background: #fe6;
  375. border-color: #ed5;
  376. }
  377. div.error {
  378. color: #fff;
  379. background: #e63;
  380. border-color: #d52;
  381. }
  382. div.error p.error {
  383. color: #333;
  384. }
  385. div.status {
  386. color: #360;
  387. background: #cf8;
  388. border-color: #be7;
  389. }
  390. /** Tab navigation */
  391. ul.primary, .views-admin-links ul {
  392. font:13px/1.231 sans-serif; *font-size:small;
  393. border-collapse: collapse;
  394. padding: 0 0 0 1em; /* LTR */
  395. white-space: nowrap;
  396. list-style: none;
  397. margin: 5px;
  398. height: auto;
  399. line-height: normal;
  400. // border-bottom: 1px solid #bbb;
  401. }
  402. ul.primary li, .views-admin-links li{
  403. display: inline;
  404. }
  405. ul.primary li a, .views-admin-links li a {
  406. // background-color: #ddd;
  407. // border-color: #bbb;
  408. border-width: 1px;
  409. border-style: solid solid none solid;
  410. height: auto;
  411. margin-right: 0.5em; /* LTR */
  412. padding: 0 1em;
  413. text-decoration: none;
  414. -moz-border-radius-topleft: 5px;
  415. -webkit-border-top-left-radius: 5px;
  416. border-top-left-radius: 5px;
  417. -moz-border-radius-topright: 5px;
  418. -webkit-border-top-right-radius: 5px;
  419. border-top-right-radius: 5px;
  420. }
  421. // ul.primary li.active a {
  422. // background-color: #fff;
  423. // border: 1px solid #bbb;
  424. // border-bottom: #fff 1px solid;
  425. // }
  426. // ul.primary li a:hover, .views-admin-links li a:hover{
  427. // background-color: #eee;
  428. // border-color: #ccc;
  429. // border-bottom-color: #eee;
  430. // }
  431. // ul.secondary {
  432. // border-bottom: 1px solid #bbb;
  433. // padding: 0.5em 1em;
  434. // margin: 5px;
  435. // }
  436. // ul.secondary li {
  437. // display: inline;
  438. // padding: 0 1em;
  439. // border-right: 1px solid #ccc; /* LTR */
  440. // }
  441. // ul.secondary a {
  442. // padding: 0;
  443. // text-decoration: none;
  444. // }
  445. // ul.secondary a.active {
  446. // border-bottom: 4px solid #999;
  447. // }
  448. //
  449. /** Form */
  450. #node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
  451. #node-form .form-region-main label{float:left; min-width:25%;}
  452. #node-form .form-region-main input.form-text{width:40%;}
  453. #node-form .form-region-right{padding-left:5px;}
  454. #node-form .form-region-right label{float:left; min-width:35%;}
  455. #node-form .form-region-right input.form-text{width:60%;}
  456. #node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
  457. form:not( #views-ui-config-item-form ) .form-item {
  458. position:relative;
  459. /* padding:9px;*/
  460. }
  461. form:not( #views-ui-config-item-form ) .form-item .description{
  462. position:absolute;
  463. bottom:140%;
  464. /* right:-15px;*/
  465. z-index:5;
  466. left:50%;
  467. color:#1A1A1A;
  468. line-height:1.1;
  469. background:url(../images/popup.png) 50% 100% no-repeat;
  470. width:240px;
  471. margin:0px 0px -15px;
  472. padding:9px 10px 20px;
  473. display:none;
  474. border-top: 1px solid #9F9F9F;
  475. }
  476. form:not( #views-ui-config-item-form ) .form-item:hover {
  477. z-index:1;
  478. height:auto; /* Fix for flicker in IE7 */
  479. }
  480. form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
  481. fieldset{
  482. border: 1px solid #D4D4D4;
  483. padding:10px;
  484. margin-bottom:1em;
  485. -moz-border-radius: 5px;
  486. -webkit-border-radius: 5px;
  487. border-radius: 5px;
  488. }
  489. fieldset legend{
  490. font-size:1.6em;
  491. }
  492. input.form-text{max-width:95%;}
  493. /** TABLE */
  494. table{width:100%;
  495. -moz-border-radius: 5px;
  496. -webkit-border-radius: 5px;
  497. border-radius: 5px;
  498. }
  499. table thead th{
  500. background-color: #CCC;
  501. padding:0.5em 1em;
  502. text-align: left;
  503. }
  504. table tbody tr.even, table tbody tr.odd{
  505. border-bottom: 0 solid #CCCCCC;
  506. padding: 0.1em 0.6em;
  507. }
  508. table tbody tr.even{background-color: #EEE;}
  509. table tbody tr.odd{background-color: #E5E5E5;}
  510. table tbody td{
  511. padding:0.5em 1em;
  512. text-align: left;
  513. }
  514. td.active {background-color: transparent;}