styles.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. @default-text-color: #888;
  2. @text-dark-color: #333;
  3. @light-action-color: #3C9DCF;
  4. @light-action-hover-color: #41ABE1;
  5. @text-hover-color: #5CAD1A;
  6. @default-content-background: #A6EA57;
  7. .mixin-grey-gradient{
  8. background: #f2f2f2; /* Old browsers */
  9. background: -moz-linear-gradient(top, #f2f2f2 0%, #e2e2e2 50%, #f7f7f7 100%); /* FF3.6+ */
  10. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(50%,#e2e2e2), color-stop(100%,#f7f7f7)); /* Chrome,Safari4+ */
  11. background: -webkit-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* Chrome10+,Safari5.1+ */
  12. background: -o-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* Opera 11.10+ */
  13. background: -ms-linear-gradient(top, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* IE10+ */
  14. background: linear-gradient(to bottom, #f2f2f2 0%,#e2e2e2 50%,#f7f7f7 100%); /* W3C */
  15. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */
  16. }
  17. .mixin-hoverable{
  18. cursor: pointer;
  19. cursor: hand;
  20. }
  21. .mixin-event-title-hover-transition{
  22. -moz-transition: background 0.4s linear 0;
  23. -webkit-transition: background 0.4s linear 0;
  24. transition: background 0.4s linear 0;
  25. }
  26. html{
  27. background: url('../img/pattern_001.png');
  28. }
  29. body {
  30. background: url('../img/birds.png') no-repeat;
  31. color: @default-text-color;
  32. font: 16px/26px Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  33. line-height:1.125em; /* 16x1.125=18px */
  34. text-rendering: optimizeLegibility;
  35. -webkit-appearance: caret;
  36. -webkit-font-smoothing: antialiased;
  37. }
  38. a{
  39. color: @light-action-color;
  40. &:hover{
  41. color: @light-action-hover-color;
  42. }
  43. }
  44. .wrapper {
  45. width: 100%;
  46. margin: 0 auto;
  47. }
  48. ul,ol{
  49. list-style-type: none;
  50. margin: 0;
  51. padding: 0;
  52. }
  53. .align-right{
  54. float: right;
  55. }
  56. .action-button{
  57. background-color: @light-action-color;
  58. border-radius: 6px;
  59. color: #fff;
  60. display: inline-block;
  61. line-height: 1.2em;
  62. font-weight: bold;
  63. padding: 0.5em 1em;
  64. text-decoration: none;
  65. &:hover{
  66. background-color: @light-action-hover-color;
  67. color: #fff;
  68. }
  69. }
  70. h1{
  71. font-size: 1.5em;
  72. line-height: 1.25em;
  73. }
  74. .mixin-standard-shadow{
  75. -moz-box-shadow: 0 0 1px #888;
  76. -webkit-box-shadow: 0 0 1px#888;
  77. box-shadow: 0 0 1px #888;
  78. }
  79. .landing{
  80. text-align: center;
  81. width: 100%;
  82. img{
  83. margin-top: 9em;
  84. }
  85. span{
  86. display: block;
  87. font-size: 1.25em;
  88. }
  89. }
  90. .participant{
  91. img{
  92. .mixin-standard-shadow;
  93. border-radius: 6px;
  94. }
  95. }
  96. .event-description{
  97. h1{
  98. color: #F07057;
  99. font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
  100. font-size: 2em;
  101. font-weight: bold;
  102. }
  103. p{
  104. line-height: 1.6em;
  105. }
  106. h1, footer{
  107. text-align: center;
  108. }
  109. footer{
  110. margin: 1.5em auto 2.5em;
  111. }
  112. }
  113. .event-participants{
  114. .mixin-standard-shadow;
  115. background: #333;
  116. border-radius: 12px;
  117. color: #fff;
  118. margin: 3em 0 3em;
  119. padding: 1em;
  120. position: relative;
  121. overflow: hidden;
  122. .participants-list{
  123. overflow: hidden;
  124. width: 100%;
  125. }
  126. .participant-item{
  127. float: left;
  128. margin: 0.5em 0;
  129. text-align: center;
  130. width: 33%;
  131. &:nth-child(4n+1){
  132. clear: left;
  133. }
  134. }
  135. .participant{
  136. opacity: 0.8;
  137. -webkit-transition: opacity 0.4s ease-in-out;
  138. -moz-transition: opacity 0.4s ease-in-out;
  139. -o-transition: opacity 0.4s ease-in-out;
  140. transition: opacity 0.4s ease-in-out;
  141. color: #ccc;
  142. font-weight: bold;
  143. text-decoration: none;
  144. .participant-details{
  145. display: block;
  146. width: 100%;
  147. }
  148. img{
  149. max-width: 12em;
  150. width: 80%;
  151. }
  152. &:hover{
  153. color: #fff;
  154. opacity: 1;
  155. }
  156. }
  157. }
  158. .pop-up{
  159. .details{
  160. .mixin-standard-shadow;
  161. background: #fff;
  162. border-radius: 6px;
  163. margin: 0 auto;
  164. overflow-y: auto;
  165. padding: 15px;
  166. position: relative;
  167. max-width: 700px;
  168. width: 86%;
  169. }
  170. background: rgba(0,0,0,0.5);
  171. position: fixed;
  172. top: 0;
  173. left: 0;
  174. height: 100%;
  175. width: 100%;
  176. z-index: 100;
  177. img{
  178. display: none;
  179. float: left;
  180. margin: 0.5em;
  181. max-width: 12em;
  182. width: 80%;
  183. }
  184. .name{
  185. display: block;
  186. font-size: 1.25em;
  187. text-align: center;
  188. margin: 0.5em 0;
  189. }
  190. .description{
  191. display: block;
  192. padding: 0.5em;
  193. }
  194. .close-btn{
  195. .mixin-hoverable;
  196. background: url('../img/coliberator-close-btn-back.png') no-repeat 0 0;
  197. border: none;
  198. position: absolute;
  199. top: 3%;
  200. right: 0.5em;
  201. height: 15px;
  202. width: 15px;
  203. }
  204. .presentations{
  205. margin: 0.5em;
  206. ul{
  207. color: #666;
  208. list-style-type: disc;
  209. list-style-position: inside;
  210. }
  211. }
  212. }
  213. .event-fast-nav{
  214. a.nav-item{
  215. background: url('../img/ics-icon.png') no-repeat 0 0;
  216. color: @text-dark-color;
  217. display: block;
  218. font-weight: bold;
  219. padding-left: 3em;
  220. text-decoration: none;
  221. &:hover{
  222. color: #111;
  223. font-weight: bold;
  224. }
  225. }
  226. }
  227. /* ==============
  228. MOBILE: Menu
  229. ============== */
  230. .lang{
  231. padding-right: 0.875em;
  232. a {
  233. color: #ccc;
  234. display: block;
  235. font-size: 0.875em;
  236. text-align: center;
  237. text-decoration: none;
  238. &.active,
  239. &:hover{
  240. color: @light-action-hover-color;
  241. }
  242. }
  243. li{
  244. display: inline-block;
  245. }
  246. }
  247. .main-menu{
  248. ul {
  249. margin: 0;
  250. padding: 0;
  251. }
  252. a {
  253. display: block;
  254. margin-bottom: 0.875em;
  255. padding: 1em 0;
  256. text-align: center;
  257. text-decoration: none;
  258. color: @text-dark-color;
  259. &.active,
  260. &:hover{
  261. color: @light-action-hover-color;
  262. }
  263. }
  264. }
  265. .main .presentations-container {
  266. display: block;
  267. font-size: 0.875em;
  268. margin-bottom: 4em;
  269. li{
  270. .mixin-event-title-hover-transition;
  271. .mixin-hoverable;
  272. background: none;
  273. border-bottom: 1px solid #eee;
  274. margin: 0.5em 0 1em;
  275. .when{
  276. display: block;
  277. }
  278. .title{
  279. font-weight: bold;
  280. }
  281. &:hover{
  282. background: #fff;
  283. }
  284. }
  285. h3 a{
  286. .align-right;
  287. font-size: 0.75em;
  288. }
  289. p{
  290. display: none;
  291. margin: 0.25em 0;
  292. }
  293. }
  294. .main .event-details {
  295. font-size: 0.875em;
  296. line-height: 2em;
  297. text-align: center;
  298. margin-bottom: 2em;
  299. h2{
  300. margin-top: 0;
  301. }
  302. img{
  303. border-radius: 6px;
  304. border: 1px solid #ddd;
  305. height: 300px;
  306. }
  307. }
  308. .main .collaborators li {
  309. span{
  310. display: block;
  311. }
  312. a{
  313. display: inline-block;
  314. margin: 0.5em;
  315. }
  316. }
  317. @media only screen and (max-width: 480px) {
  318. .wrapper{
  319. width: 95%;
  320. }
  321. .header-container .main-menu{
  322. display: none;
  323. }
  324. .header-container .lang{
  325. text-align: center;
  326. margin-top: 1em;
  327. a{
  328. font-size: 1.25em;
  329. }
  330. }
  331. h1.title{
  332. display: block;
  333. text-align: center;
  334. #logo{
  335. height: 1.4em;
  336. }
  337. }
  338. .main .event-details img {
  339. height: 250px;
  340. }
  341. .event-participants{
  342. .participant-item{
  343. width: 50%;
  344. }
  345. }
  346. .pop-up{
  347. .name{
  348. text-align: center;
  349. }
  350. .description{
  351. padding: 0;
  352. }
  353. }
  354. }
  355. @media only screen and (min-width: 480px) {
  356. .wrapper{
  357. width: 90%;
  358. }
  359. .header-container{
  360. -moz-box-shadow: 0 0 5px #888;
  361. -webkit-box-shadow: 0 0 5px#888;
  362. box-shadow: 0 0 5px #888;
  363. background: #fff;
  364. padding: 1em 0;
  365. position: fixed;
  366. top: 0;
  367. width: 100%;
  368. z-index: 10;
  369. h1.title{
  370. display: block;
  371. float: none;
  372. margin: 0 0 1em;
  373. text-align: center;
  374. #logo{
  375. height: 2em;
  376. }
  377. }
  378. .lang{
  379. float: none;
  380. position: absolute;
  381. top: 1em;
  382. right: 0;
  383. a{
  384. font-size: 1.25em;
  385. }
  386. }
  387. .main-menu{
  388. clear: both;
  389. overflow: hidden;
  390. margin: 0;
  391. text-align: center;
  392. a {
  393. float: left;
  394. margin: 0 1% 0 0;
  395. padding: 0.5em;
  396. margin-bottom: 0;
  397. }
  398. ul{
  399. display: inline-block;
  400. li{
  401. margin: 0 1em;
  402. display: inline-block;
  403. }
  404. }
  405. }
  406. }
  407. .main-container{
  408. margin-top: 11em;
  409. }
  410. .motto{
  411. color: #888;
  412. float: right;
  413. font-size: 0.875em;
  414. font-style: italic;
  415. margin-top: 0.75em;
  416. width: 40%;
  417. }
  418. .pop-up{
  419. img{
  420. display: inline-block;
  421. }
  422. }
  423. }
  424. @media only screen and (min-width: 768px) {
  425. .wrapper{
  426. max-width: 1000px;
  427. }
  428. .main .event{
  429. overflow: hidden;
  430. }
  431. .header-container{
  432. overflow: hidden;
  433. h1.title{
  434. float: left;
  435. margin: 0;
  436. }
  437. .lang{
  438. position: initial;
  439. float: right;
  440. font-size: 0.75em;
  441. }
  442. .main-menu{
  443. overflow: hidden;
  444. margin: 0;
  445. clear: right;
  446. float: right;
  447. a {
  448. float: left;
  449. margin: 0 1% 0 0;
  450. padding: 0.5em;
  451. margin-bottom: 0;
  452. }
  453. ul{
  454. display: block;
  455. li{
  456. display: inline-block;
  457. margin: 0 0.2em;
  458. }
  459. }
  460. }
  461. }
  462. .main-container{
  463. margin-top: 8em;
  464. }
  465. .main .event-details {
  466. float: right;
  467. width: 55%;
  468. }
  469. .main .collaborators {
  470. float: left;
  471. width: 45%;
  472. span{
  473. margin: 1em 0 0.5em;
  474. }
  475. a{
  476. display: inline-block;
  477. margin: 1em;
  478. }
  479. }
  480. .event-description{
  481. h1, footer{
  482. text-align: left;
  483. }
  484. footer{
  485. margin: 1em 0;
  486. }
  487. }
  488. .event-participants{
  489. .participant-item{
  490. width: 25%;
  491. }
  492. }
  493. }
  494. @media only screen and (min-width: 1140px) {
  495. }
  496. .footer-container{
  497. clear: both;
  498. margin: 4em auto 2em;
  499. overflow: hidden;
  500. .copyright{
  501. font-size: 0.875em;
  502. float: left;
  503. a{
  504. color: #444;
  505. &:hover{
  506. color: @light-action-hover-color;
  507. }
  508. }
  509. }
  510. }
  511. .noscript .event-participants{
  512. li.item{
  513. display: inline-block;
  514. margin: 20px 0;
  515. }
  516. img{
  517. display: inline-block;
  518. vertical-align: top;
  519. width: 25%;
  520. }
  521. .details{
  522. display: inline-block;
  523. margin-left: 4%;
  524. width: 70%;
  525. h2{
  526. line-height: 1.5em;
  527. margin-top: 0px;
  528. }
  529. }
  530. .presentations{
  531. margin-top: 20px;
  532. }
  533. }
  534. .noscript .header-container{
  535. position: inherit !important;
  536. }
  537. .noscript .main-container{
  538. margin-top: 2em;
  539. }
  540. .noscript #presentations{
  541. li{
  542. cursor: default;
  543. margin: 5px 0;
  544. padding: 5px;
  545. }
  546. .title{
  547. cursor: normal;
  548. display: block;
  549. }
  550. .when{
  551. color: #aaa;
  552. }
  553. }
  554. .noscript.redirect{
  555. background: #fff;
  556. top: 0;
  557. position: fixed;
  558. height: 100%;
  559. width: 100%;
  560. z-index: 100;
  561. a{
  562. display: table;
  563. margin: 10em auto 0;
  564. }
  565. }