styles.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  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. }
  334. #footer{
  335. }
  336. // .block, .panel-pane{
  337. // border: 1px solid #D1D1D1; padding:0.5em; margin:0.5em;
  338. // -moz-border-radius: 5px;
  339. // -webkit-border-radius: 5px;
  340. // border-radius: 5px;
  341. // background-color: #EAEAEA;
  342. // }
  343. .footer-block .block{
  344. // background-color: #353535; border: 1px solid #1a1a1a;
  345. }
  346. #footer-bottom{ text-align: center;}
  347. #footer-bottom .block{
  348. background-color: transparent;
  349. // border: 0 solid #999;
  350. font-size:0.7em;
  351. }
  352. #content{padding:1em;}
  353. /** Messages. */
  354. div.messages {
  355. padding: 9px;
  356. margin: 0.5em 0 0;
  357. color: #036;
  358. background: #bdf;
  359. border: 1px solid #ace;
  360. -moz-border-radius: 5px;
  361. -webkit-border-radius: 5px;
  362. border-radius: 5px;
  363. }
  364. div.warning {
  365. color: #840;
  366. background: #fe6;
  367. border-color: #ed5;
  368. }
  369. div.error {
  370. color: #fff;
  371. background: #e63;
  372. border-color: #d52;
  373. }
  374. div.error p.error {
  375. color: #333;
  376. }
  377. div.status {
  378. color: #360;
  379. background: #cf8;
  380. border-color: #be7;
  381. }
  382. /** Tab navigation */
  383. ul.primary, .views-admin-links ul {
  384. font:13px/1.231 sans-serif; *font-size:small;
  385. border-collapse: collapse;
  386. padding: 0 0 0 1em; /* LTR */
  387. white-space: nowrap;
  388. list-style: none;
  389. margin: 5px;
  390. height: auto;
  391. line-height: normal;
  392. // border-bottom: 1px solid #bbb;
  393. }
  394. ul.primary li, .views-admin-links li{
  395. display: inline;
  396. }
  397. ul.primary li a, .views-admin-links li a {
  398. // background-color: #ddd;
  399. // border-color: #bbb;
  400. border-width: 1px;
  401. border-style: solid solid none solid;
  402. height: auto;
  403. margin-right: 0.5em; /* LTR */
  404. padding: 0 1em;
  405. text-decoration: none;
  406. -moz-border-radius-topleft: 5px;
  407. -webkit-border-top-left-radius: 5px;
  408. border-top-left-radius: 5px;
  409. -moz-border-radius-topright: 5px;
  410. -webkit-border-top-right-radius: 5px;
  411. border-top-right-radius: 5px;
  412. }
  413. // ul.primary li.active a {
  414. // background-color: #fff;
  415. // border: 1px solid #bbb;
  416. // border-bottom: #fff 1px solid;
  417. // }
  418. // ul.primary li a:hover, .views-admin-links li a:hover{
  419. // background-color: #eee;
  420. // border-color: #ccc;
  421. // border-bottom-color: #eee;
  422. // }
  423. // ul.secondary {
  424. // border-bottom: 1px solid #bbb;
  425. // padding: 0.5em 1em;
  426. // margin: 5px;
  427. // }
  428. // ul.secondary li {
  429. // display: inline;
  430. // padding: 0 1em;
  431. // border-right: 1px solid #ccc; /* LTR */
  432. // }
  433. // ul.secondary a {
  434. // padding: 0;
  435. // text-decoration: none;
  436. // }
  437. // ul.secondary a.active {
  438. // border-bottom: 4px solid #999;
  439. // }
  440. //
  441. /** Form */
  442. #node-form .form-region-main{border-right: 1px solid #BFBFBF; padding-right:10px; width:68%;}
  443. #node-form .form-region-main label{float:left; min-width:25%;}
  444. #node-form .form-region-main input.form-text{width:40%;}
  445. #node-form .form-region-right{padding-left:5px;}
  446. #node-form .form-region-right label{float:left; min-width:35%;}
  447. #node-form .form-region-right input.form-text{width:60%;}
  448. #node-form .form-region-main label.option, #node-form .form-region-right label.option{float: none;}
  449. form:not( #views-ui-config-item-form ) .form-item {
  450. position:relative;
  451. /* padding:9px;*/
  452. }
  453. form:not( #views-ui-config-item-form ) .form-item .description{
  454. position:absolute;
  455. bottom:140%;
  456. /* right:-15px;*/
  457. z-index:5;
  458. left:50%;
  459. color:#1A1A1A;
  460. line-height:1.1;
  461. background:url(../images/popup.png) 50% 100% no-repeat;
  462. width:240px;
  463. margin:0px 0px -15px;
  464. padding:9px 10px 20px;
  465. display:none;
  466. border-top: 1px solid #9F9F9F;
  467. }
  468. form:not( #views-ui-config-item-form ) .form-item:hover {
  469. z-index:1;
  470. height:auto; /* Fix for flicker in IE7 */
  471. }
  472. form:not( #views-ui-config-item-form ) .form-item:hover > .description { display:block; }
  473. fieldset{
  474. border: 1px solid #D4D4D4;
  475. padding:10px;
  476. margin-bottom:1em;
  477. -moz-border-radius: 5px;
  478. -webkit-border-radius: 5px;
  479. border-radius: 5px;
  480. }
  481. fieldset legend{
  482. font-size:1.6em;
  483. }
  484. input.form-text{max-width:95%;}
  485. /** TABLE */
  486. table{width:100%;
  487. -moz-border-radius: 5px;
  488. -webkit-border-radius: 5px;
  489. border-radius: 5px;
  490. }
  491. table thead th{
  492. background-color: #CCC;
  493. padding:0.5em 1em;
  494. text-align: left;
  495. }
  496. table tbody tr.even, table tbody tr.odd{
  497. border-bottom: 0 solid #CCCCCC;
  498. padding: 0.1em 0.6em;
  499. }
  500. table tbody tr.even{background-color: #EEE;}
  501. table tbody tr.odd{background-color: #E5E5E5;}
  502. table tbody td{
  503. padding:0.5em 1em;
  504. text-align: left;
  505. }
  506. td.active {background-color: transparent;}