styles.less 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. /**
  2. * Primary Drupal Styles
  3. * Author: g-u-i.net
  4. */
  5. @import "elements";
  6. @import "commons";
  7. @import "layout";
  8. @import "fonts";
  9. @import "timeline";
  10. /** layout */
  11. html, body{
  12. position:relative;
  13. width:100%; height:100%;
  14. /* background-color: red;*/
  15. }
  16. #container{
  17. width:100%; height:100%;
  18. //width:1000px; height:700px;
  19. min-width:1020px; min-height:700px;
  20. .m(0 auto); background-color: #FFF;
  21. &>.inner{width:96%; height:94%; .p(1.5%);}
  22. }
  23. /** HEADER */
  24. #header{
  25. height:3%; width:100%; position:relative;
  26. border-bottom:2px solid #000; //.pb(5px);
  27. .logo{
  28. width:35%; height:27px; position:relative; bottom:0; left:0;
  29. html.oldie &{width:49%;}
  30. h1{
  31. .fs-header;
  32. a{text-decoration: none;}
  33. }
  34. }
  35. #header-blocks{
  36. width:63%; position:absolute; bottom:0; right:0; text-align: right; height:27px;
  37. html.oldie &{width:62%;}
  38. // >.wrapper{position:relative; width:100%; height:100%;}
  39. .region{
  40. .inlineblock;
  41. &:not(:first-child){ margin-left:1.1em; }
  42. // don't know why but here display:inline; deosn't work on ie8 …
  43. html.oldie &{float:left; margin-left:10px;}
  44. }
  45. }
  46. ul.menu{
  47. padding:0; margin:0;
  48. li{
  49. .inlineblock; margin:0;
  50. &:not(.last){.p(0 6px 0 0);}
  51. &.last{.p(0);}
  52. a{.fs-header;}
  53. }
  54. }
  55. ul.language-switcher-locale-url{
  56. padding:0; margin:0;
  57. li{padding-right:10px;}
  58. li.active{display:none;}
  59. a{.fs-header;}
  60. }
  61. #search-block-form{
  62. h2{display:none;}
  63. .container-inline{height:27px; line-height:1;}
  64. .form-item{
  65. padding:0; margin:0; display: inline-block; vertical-align: middle;
  66. label{display:none;}
  67. input.form-text{border: 1px solid #D4D4D4; width:10em; .fs-header; .500; padding:2px;}
  68. }
  69. #edit-actions{
  70. display:inline-block; vertical-align: middle;
  71. input.form-submit{border: 0 solid #999; background-color: transparent; .fs-header; .pr(0); padding-top:3px;}
  72. }
  73. span.close-search{display:inline-block; vertical-align: middle; width:20px; height:20px; background-image: url('../images/btns_close.png'); cursor:pointer; }
  74. &.loading{
  75. input.form-submit{visibility: hidden;}
  76. background: transparent url('../images/ajax-loader.gif') no-repeat 98% center;
  77. }
  78. }
  79. }
  80. /** INTRO-MODAL */
  81. #intro-wrapper{
  82. position:fixed; z-index:200; width:100%; height:100%; top:0; left:0;
  83. .bg{ background-color: #fff; .opacity(0.6); width:100%; height:100%; position:absolute;}
  84. .modal{
  85. margin:0 auto; top:0; width:40%; position:relative; overflow: hidden;
  86. .transition(margin-top, 0.8s, ease-out);
  87. .drop-shadow(0,0,7px,0.8); .rounded(5px); background-color: #fff;
  88. >*{ padding:1em; }
  89. p{.14;}
  90. }
  91. .btns{
  92. text-align: right;
  93. span{
  94. display:inline-block; .rounded(3px); background-color: #ddd; cursor:pointer; padding:0.1em 0.5em 0.1em 0.5em; .14; margin:0.5em;
  95. }
  96. }
  97. }
  98. /** MAIN */
  99. #main{
  100. height:97%;
  101. /** SIDEBAR FIRST */
  102. #sidebar-first{
  103. .inlineblock; width: 29%;
  104. }
  105. ul li.leaf{
  106. list-style-image:none;
  107. list-style-type: none;
  108. font-size: 12px;
  109. margin-bottom: 10px;
  110. a{text-decoration: none;}
  111. a:visited{font-weight:700}
  112. a:hover{font-weight:700}
  113. a:active{font-weight:700}
  114. .active-trail {font-weight:700}
  115. }
  116. .not-front.node-type-page &,
  117. .not-front.node-type-temoignage &,
  118. .not-front.node-type-document-video &,
  119. .not-front.node-type-biographie &{
  120. background-color:#D3D3D3 ;
  121. }
  122. /** CENTER */
  123. #center{
  124. .inlineblock; width:100%; height:99%; position:relative;
  125. .pt(1%);
  126. // #content-top{
  127. // ul.menu li{.inlineblock;}
  128. // }
  129. .page-title{
  130. overflow: hidden;
  131. .fs-region-title();
  132. .timeline &{color:@timeline-lighten-color;}
  133. }
  134. /** CONTENT */
  135. #content{
  136. // padding:1em;
  137. .js .front &,
  138. .js .node-type-performance & {
  139. display:none;
  140. overflow: hidden;
  141. }
  142. .layout-intro &{
  143. max-width:700px; .m(0 auto); //.pl(20%); .pr(20%);
  144. }
  145. .field-label {font-size:12px;color:#000; margin-top:1em; margin-bottom:0,7em;}
  146. }
  147. #perfnode{
  148. height:85%;
  149. .node .node-effectuation .field-item {font-size:10px;}
  150. p{ margin:0;}
  151. .locality {margin-left:-5px;}
  152. }
  153. .not-front.node-type-page &,
  154. .not-front.node-type-temoignage &,
  155. .not-front.node-type-document-video &,
  156. .not-front.node-type-biographie &{
  157. margin-left:75px;
  158. width:550px;
  159. padding-top:20px;
  160. #content{
  161. p {font-size:12px; color:#000; line-height:1.4;}
  162. a{text-decoration:none; font-size:12px;}
  163. a:visited{font-weight:700}
  164. a:hover{font-weight:700}
  165. a:active{font-weight:700}
  166. }
  167. }
  168. }
  169. /** SIDEBAR SECOND */
  170. #sidebar-second{
  171. .inlineblock; width: 18%;
  172. }
  173. }
  174. /** filters */
  175. .filter-color(@color, @lighten-color, @juicy-color){
  176. .filters-selection{
  177. .bb(2px, @lighten-color);
  178. }
  179. .list{
  180. li{
  181. color:@color;
  182. &:hover{color:@color; span{.bgc(@juicy-color);} }
  183. &.selected{color:@lighten-color;}
  184. }
  185. .jscrollpane(@lighten-color, @juicy-color);
  186. }
  187. .search{color:@color;}
  188. .title{color:@color;}
  189. .filters-selected{
  190. span{.bgc(@juicy-color); color:@color; .700;}
  191. }
  192. }
  193. #filters{
  194. /* height:30%;*/
  195. .filter{
  196. .inlineblock; width:32%; height:100%;
  197. .ml(2%); &.filter-0{.ml(0);}
  198. .filters-selection{
  199. height:100%; overflow:hidden; position:relative;
  200. .list{
  201. height:100%; overflow:auto; .mb(10px);
  202. ul,li{ .p(0); .m(0);}
  203. ul{ .pb(20px); }
  204. li{
  205. cursor:pointer; line-height:1; overflow:hidden; height:auto;
  206. .transition(height, 0.1s, linear);
  207. span{
  208. .fs-filters-list();
  209. .p(0.3em 0.4em 0.2em 0);
  210. }
  211. &:hover{span{.pl(0.3em);}}
  212. &.subtracted{height:0;}
  213. &.subtracted.conserved{height:auto;}
  214. }
  215. }
  216. .search{
  217. position:absolute; right:10px; bottom:0; width:40%; .11; height:10px;
  218. border: 1px solid #D4D4D4;
  219. }
  220. .title{
  221. position:absolute; left:0; bottom:0; .bgc(#fff); width:90%; .p(0.5em 0 0);
  222. .fs-region-title();
  223. }
  224. }
  225. .filters-selected{
  226. span{
  227. cursor:pointer;
  228. .fs-filters-list(); .p(0.2em 2em 0 0.4em); .inlineblock; .m(0.3em 0.3em 0 0);
  229. background-repeat: no-repeat;
  230. background-position: right center;
  231. }
  232. }
  233. &.filter-0{
  234. .filter-color(@topologies-color,@topologies-lighten-color,@topologies-juicy-color);
  235. .filters-selected{
  236. body.layout-timeline & span{
  237. background-image:url('../images/btns_close_color-02.png');
  238. }
  239. }
  240. }
  241. &.filter-1{
  242. .filter-color(@lieux-color,@lieux-lighten-color,@lieux-juicy-color);
  243. .filters-selected{
  244. body.layout-timeline & span{
  245. background-image:url('../images/btns_close_color-01.png');
  246. }
  247. }
  248. }
  249. &.filter-2{
  250. .filter-color(@artistes-color,@artistes-lighten-color,@artistes-juicy-color);
  251. .filters-selected{
  252. body.layout-timeline & span{
  253. background-image:url('../images/btns_close_color-03.png');
  254. }
  255. }
  256. }
  257. }
  258. }
  259. /** perfnode */
  260. #perfnode{
  261. overflow:hidden; position:relative;
  262. .bgc(@timeline-juicy-color);
  263. .nav_perf(){ position:absolute; top:50%; width:20px; height:20px; .mt(-10px); cursor:pointer; z-index:150; background-color: #fff;}
  264. .prev-perf{ .nav_perf; left:0; background-image: url('../images/btns_moveleft.png'); .ml(-4px);}
  265. .next-perf{ .nav_perf; right:0; background-image: url('../images/btns_moveright.png'); .mr(-4px);}
  266. .loader{position:absolute; top:50%; left:50%; width:20px; height:20px; .ml(-10px); .mt(-10px); background-image: url('../images/loader.gif'); z-index:100; display:none;}
  267. &.loading{ .loader{display:block;} }
  268. .close{position:absolute; top:0; right:0; width:19px; height:20px; background-image: url('../images/btns_close.png'); z-index:100; display:block;}
  269. &.loading{ .close{display:none;} }
  270. .node-container{ margin:0 20px; }
  271. // grid
  272. // width:1000px
  273. // cel :100px
  274. @cel:100px;
  275. @padd:0;
  276. .cel(@n){
  277. width:(@cel* @n) - @padd*2;
  278. /* background-color:rgba(255,0,0,0.1);*/
  279. padding:@padd;
  280. //.bl(1px, rgba(255,0,0,0.1));
  281. }
  282. .scroller>.node{
  283. >.grid-block{
  284. position:absolute;
  285. }
  286. h1.node-title{
  287. .m(0);
  288. .fs-perfnode-title;
  289. .cel(3);
  290. }
  291. .field-label{.fs-perfnode-label; color:@timeline-lighten-color;}
  292. .field-personne{
  293. .cel(2);
  294. .fs-perfnode-personne;
  295. }
  296. .field-type-textauthor,
  297. >.field-type-text-long{
  298. .cel(4);
  299. .field-item{
  300. max-height:@cel*3;
  301. overflow:auto;
  302. // article, address, p{
  303. .fs-personne-texte;
  304. // }
  305. }
  306. address{.700;}
  307. }
  308. .field-name-field-serie{
  309. .fs-perfnode-serie;
  310. .cel(3);
  311. }
  312. .field-name-field-type-de-performance{
  313. .fs-perfnode-serie;
  314. .cel(3);
  315. }
  316. .field-name-field-tags-libre{
  317. .fs-personne-texte;
  318. .cel(2);
  319. }
  320. .field-name-field-site-internet{
  321. .fs-personne-texte;
  322. .cel(3);
  323. a{
  324. text-decoration: none;
  325. &:hover{text-decoration: underline;}
  326. }
  327. }
  328. .node-effectuation{
  329. .cel(2);
  330. h1{.m(0);}
  331. .field-item{.fs-perfnode-serie;}
  332. }
  333. .node-document-video{
  334. .cel(4);
  335. .fs-personne-texte;
  336. }
  337. .node-document{
  338. .cel(3);
  339. .fs-personne-texte;
  340. }
  341. .node-objet{
  342. .cel(3);
  343. .fs-personne-texte;
  344. }
  345. .node-temoignage{
  346. .cel(3);
  347. .fs-personne-texte;
  348. }
  349. figure{
  350. position:relative;
  351. figcaption{
  352. position:absolute; right:0; bottom:0;
  353. width:96%; padding:2%;
  354. background-color: rgba(255,255,255,0.8);
  355. .opacity(0); .transition(opacity, 0.5s, ease-out);
  356. color:#000; .10;
  357. }
  358. .blank{ position:absolute; top:0; left:0; width:100%; height:100%;}
  359. &:hover{figcaption{.opacity(1);}}
  360. }
  361. }
  362. }
  363. /** FOOTER */
  364. #footer{
  365. height:3%; display:none;
  366. #footer-top{
  367. text-align:center; p{.m(0);}
  368. }
  369. #footer-bottom{
  370. .block{
  371. .inlineblock; .fs-footer-bottom;
  372. }
  373. }
  374. }
  375. /** MISC */
  376. li, .item-list ul li{list-style: none inside url(); margin-left:0;}
  377. /** Messages. */
  378. div.messages {
  379. padding: 9px;
  380. margin: 0.5em 0 0;
  381. color: #036;
  382. background: #bdf;
  383. border: 1px solid #ace;
  384. -moz-border-radius: 5px;
  385. -webkit-border-radius: 5px;
  386. border-radius: 5px;
  387. }
  388. div.warning {
  389. color: #840;
  390. background: #fe6;
  391. border-color: #ed5;
  392. }
  393. div.error {
  394. color: #fff;
  395. background: #e63;
  396. border-color: #d52;
  397. }
  398. div.error p.error {
  399. color: #333;
  400. }
  401. div.status {
  402. color: #360;
  403. background: #cf8;
  404. border-color: #be7;
  405. }
  406. /** Tab navigation */
  407. ul.primary, .views-admin-links ul {
  408. font:13px/1.231 sans-serif; *font-size:small;
  409. border-collapse: collapse;
  410. padding: 0 0 0 1em; /* LTR */
  411. white-space: nowrap;
  412. list-style: none;
  413. margin: 5px;
  414. height: auto;
  415. line-height: normal;
  416. border-bottom: 1px solid #bbb;
  417. li{
  418. display: inline;
  419. a{
  420. background-color: #ddd;
  421. border-color: #bbb;
  422. border-width: 1px;
  423. border-style: solid solid none solid;
  424. height: auto;
  425. margin-right: 0.5em; /* LTR */
  426. padding: 0 1em;
  427. text-decoration: none;
  428. -moz-border-radius-topleft: 5px;
  429. -webkit-border-top-left-radius: 5px;
  430. border-top-left-radius: 5px;
  431. -moz-border-radius-topright: 5px;
  432. -webkit-border-top-right-radius: 5px;
  433. border-top-right-radius: 5px;
  434. &:hover{
  435. background-color: #eee;
  436. border-color: #ccc;
  437. border-bottom-color: #eee;
  438. }
  439. }
  440. &.active a {
  441. background-color: #fff;
  442. border: 1px solid #bbb;
  443. border-bottom: #fff 1px solid;
  444. }
  445. }
  446. }
  447. ul.secondary {
  448. border-bottom: 1px solid #bbb;
  449. padding: 0.5em 1em;
  450. margin: 5px;
  451. li {
  452. display: inline;
  453. padding: 0 1em;
  454. border-right: 1px solid #ccc; /* LTR */
  455. a {
  456. padding: 0;
  457. text-decoration: none;
  458. &.active {
  459. border-bottom: 4px solid #999;
  460. }
  461. }
  462. }
  463. }
  464. /** sound cloud player */
  465. .pa-sc-player{
  466. .sc-trackslist{ display:none; }
  467. .sc-controls, .sc-time-indicators, .sc-time-span{.inlineblock(); vertical-align:middle;}
  468. .sc-controls{
  469. position: relative;
  470. width:20px; height:20px;
  471. margin-right:15px;
  472. a.sc-play, a.sc-pause{
  473. position: absolute; top:0; left:0;
  474. display:block; width:100%; height:100%;
  475. text-decoration: none;
  476. .rounded(5px); overflow: hidden;
  477. span{margin-left:-100px;}
  478. }
  479. a.sc-play{
  480. background: #fff url('../images/player-sound-cloud-VA-bg-play.png') no-repeat center center;
  481. }
  482. a.sc-pause{
  483. background: #fff url('../images/player-sound-cloud-VA-bg-pause.png') no-repeat center center; display:none;
  484. }
  485. }
  486. &.playing{
  487. .sc-controls{
  488. a.sc-play{display:none;}
  489. a.sc-pause{display:block;}
  490. }
  491. // a.sc-play{
  492. // background-color: #1A1A1A;
  493. // color:#FFF;
  494. // }
  495. }
  496. .sc-time-indicators{
  497. font-size:14px; margin-right:10px; padding-top:3px; min-width:75px;
  498. }
  499. .sc-time-span{
  500. width:300px; height:10px; background-color: #fff; position:relative; cursor:pointer;
  501. .sc-buffer, .sc-played{width:0; height:100%; position:absolute;}
  502. .sc-buffer{background-color: #ddd;}
  503. .sc-played{background-color: #1A1A1A;}
  504. }
  505. .node-temoignage.grid-block &{
  506. background-color:#D3D3D3; .rounded(3); .p(2px);
  507. .sc-time-span{width:170px};
  508. }
  509. }
  510. /** navigation sans javascript **/
  511. .generale-design(){
  512. #main {background-color:#D3D3D3; height:100%;
  513. #center { height:100%;
  514. .page-title{margin-left:2.5em;}
  515. #content { padding:2%; display:block;
  516. a,a:visited{font-size:12px; font-weight:500; text-decoration:none;}
  517. a:hover {font-size:12px; font-weight:700; text-decoration:none; }
  518. }
  519. }
  520. }
  521. }
  522. html.no-js, html.classic-nav{
  523. body, #container, #container>.inner, #header, #main, #footer{ height:auto;}
  524. body{ overflow: auto;}
  525. #container{width:95%;}
  526. //HOME//
  527. body.front{
  528. .generale-design;
  529. .item-list {
  530. .pager li{
  531. background-color:transparent;
  532. a,a:visited{color:#000;}
  533. color:#000;
  534. border-left:1px solid #000;
  535. }
  536. li, ul li {
  537. a,a:visited{color:#A5A5A5;}
  538. color:#A5A5A5;
  539. background-color:#fff;
  540. display:inline-block;
  541. vertical-align:top;
  542. line-height:0.1em;
  543. margin-bottom:1em;
  544. padding-right:1em;
  545. padding-left:0.5em;
  546. border-left:3px solid #A5A5A5;
  547. }
  548. }
  549. }
  550. //FICHES PERFORMANCE//
  551. body.node-type-performance{
  552. .generale-design;
  553. #main{
  554. background-color:#F2F2F2;
  555. #center #content {
  556. .node.type-performance>.content{
  557. .bordered-block(){
  558. display: inline-block;
  559. vertical-align: top;
  560. padding-left:0.5em;
  561. margin:0 1em 0 0.5em;
  562. border-left:3px solid @timeline-lighten-color;
  563. }
  564. .non-bordered(){
  565. display:block; border:none;
  566. }
  567. @cel:100px;
  568. @padd:0;
  569. .cel(@n){
  570. width:(@cel* @n) - @padd*2;
  571. /* background-color:rgba(255,0,0,0.1);*/
  572. padding:@padd;
  573. //.bl(1px, rgba(255,0,0,0.1));
  574. }
  575. h1.node-title{
  576. .m(0);
  577. .fs-perfnode-title;
  578. .cel(3);
  579. }
  580. .field-label{.fs-perfnode-label; color:@timeline-lighten-color;}
  581. .field-personne{
  582. .cel(2);
  583. .fs-perfnode-personne;
  584. }
  585. .field-type-textauthor, .field-type-text-long{
  586. .cel(4);
  587. .field-item{
  588. max-height:@cel*3;
  589. overflow:auto;
  590. // article, address, p{
  591. .fs-personne-texte;
  592. // }
  593. }
  594. address{.700;}
  595. }
  596. .field-name-field-serie{
  597. .fs-perfnode-serie;
  598. .cel(3);
  599. }
  600. .field-name-field-images{
  601. .field-item{
  602. .inlineblock; margin:0 1em 1em 0;
  603. }
  604. }
  605. .field-name-field-type-de-performance{
  606. .fs-perfnode-serie;
  607. .cel(3);
  608. }
  609. .field-name-field-tags-libre{
  610. .fs-personne-texte;
  611. .cel(2);
  612. }
  613. .node-effectuation{
  614. .cel(2);
  615. h1{.m(0);}
  616. .field-item{.fs-perfnode-serie;}
  617. }
  618. .node-document-video{
  619. .cel(4);
  620. .fs-personne-texte;
  621. }
  622. .node-document{
  623. .cel(3);
  624. .fs-personne-texte;
  625. }
  626. .node-objet{
  627. .cel(3);
  628. .fs-personne-texte;
  629. }
  630. figure{
  631. position: relative;
  632. figcaption{
  633. position:absolute; right:0; bottom:0;
  634. width:96%; padding:2%;
  635. background-color: rgba(255,255,255,0.8);
  636. .opacity(0); .transition(opacity, 0.5s, ease-out);
  637. color:#000; .10;
  638. }
  639. .blank{ position:absolute; top:0; left:0; width:100%; height:100%;}
  640. &:hover{figcaption{.opacity(1);}}
  641. }
  642. >.field{
  643. .bordered-block;
  644. }
  645. .field-name-field-effectuations,
  646. .field-name-field-documents-sonor,
  647. .field-name-field-documents{
  648. .non-bordered;
  649. border-top: 2px solid #e4e4e4;
  650. margin-top:1em;
  651. .field-item{
  652. .field{
  653. .bordered-block;
  654. }
  655. }
  656. }
  657. .field-name-field-effectuations{
  658. .fs-personne-texte;
  659. }
  660. // .field-name-field-date-de-debut, .field-name-field-address{
  661. // .field-item{
  662. // .fs-perfnode-serie;
  663. // }
  664. // }
  665. // .field-type-text-long{
  666. // width:400px;
  667. // }
  668. }
  669. }
  670. }
  671. }
  672. }
  673. //EFFECTUATIONS, DOCUMENTS, OBJETS, ETC.//
  674. body.node-type-document, .node-type-document-sonor, .node-type-object, .page-taxonomy-term {
  675. .generale-design;
  676. #center #content {
  677. width: 720px;
  678. img {margin:1em 0 1em 0;}
  679. figure {position:relative;}
  680. img.blank{position:absolute; top:0; left:0;}
  681. figcaption {font-weight: 300; font-size:11px; width:250px; margin-bottom:1em; }
  682. font-size:12px;
  683. }
  684. }