styles.scss 12 KB

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