timeline.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @import "elements";
  2. @import "commons";
  3. @import "fonts";
  4. /** time line */
  5. #timeline-loader{
  6. max-width:700px; .m(0 auto);
  7. .fs-artist-event-timeline;
  8. // .bb(1px, #000);
  9. .progress{
  10. border-top: 4px solid #999; width:0;
  11. /* .transition(width 4s linear);*/
  12. transition: width 3s linear;
  13. -moz-transition: width 3s linear;
  14. -o-transition: width 3s linear;
  15. -webkit-transition: width 3s linear;
  16. &.complete{
  17. /* .transition(width 0.1s linear);*/
  18. transition: width 0.1s linear;
  19. -moz-transition: width 0.1s linear;
  20. -o-transition: width 0.1s linear;
  21. -webkit-transition: width 0.1s linear;
  22. }
  23. }
  24. }
  25. #timeline{
  26. height:65%;
  27. .mt(25px);
  28. h3.title{
  29. cursor:pointer;
  30. .fs-region-title(); color:@timeline-lighten-color;
  31. }
  32. }
  33. #timeline-container{
  34. width:100%; height:98%; .bt(2px, @timeline-lighten-color); overflow:hidden;
  35. .bgc(@timeline-juicy-color);
  36. .timeline-frame{
  37. border: 0 solid #999;
  38. }
  39. .timeline-navigation{
  40. top:0; right:0; height:20px;
  41. border: 0 solid transparent; background-color: #fff;
  42. div{
  43. .p(2px 0 0 10px);
  44. &.timeline-navigation-zoom-in{background-image: url('../images/btns_zoomin.png');}
  45. &.timeline-navigation-zoom-out{background-image: url('../images/btns_zoomout.png');}
  46. &.timeline-navigation-move-left{background-image: url('../images/btns_moveleft.png');}
  47. &.timeline-navigation-move-right{background-image: url('../images/btns_moveright.png');}
  48. }
  49. }
  50. .timeline-axis-text{
  51. .fs-region-title(); color:@timeline-lighten-color;
  52. }
  53. .timeline-event{
  54. .rounded(0); border: 0 solid transparent; // background-color: #fff;
  55. &.timeline-event-range{ background-color:#fff;}
  56. /*
  57. TODO move events with css3
  58. */
  59. }
  60. .timeline-event-content{
  61. .m(0);
  62. div.date{
  63. //border-left: 3px solid @timeline-grey;
  64. display:block; text-decoration: none; text-align:left; cursor:pointer;
  65. .p(4px 0);
  66. .text-content{
  67. .p(0 5px); .mb(4px);
  68. .bl(3px, @timeline-lighten-color);
  69. // max-width:145px; // pourquoi le texte ne va pas a la ligne avec le max-width ???
  70. }
  71. &:hover{
  72. .text-content{
  73. .bl(3px, @timeline-color);
  74. }
  75. }
  76. h4, h5{.m(0); color:@timeline-lighten-color;}
  77. h4{.fs-titre-event-timeline();}
  78. h5{.fs-artist-event-timeline();}
  79. body.view-mode-dot &{
  80. .p(0);
  81. .text-content{
  82. min-height:15px;
  83. }
  84. h4, h5, img{display:none;}
  85. }
  86. body.view-mode-titles &{
  87. background-color:#fff;
  88. h4, h5{display:block;}
  89. img{display:none;}
  90. }
  91. body.view-mode-thumbnails &{
  92. h4, h5, img{display:block;}
  93. img{max-width:145px;height:auto;}
  94. }
  95. body.view-mode-images &{
  96. h4, h5, img{display:block;}
  97. }
  98. }
  99. }
  100. .timeline-event-selected{
  101. background-color: transparent;
  102. .timeline-event-content{
  103. div.date{
  104. .text-content{
  105. .bl(3px, @timeline-color);
  106. }
  107. h4, h5{color:@timeline-color;}
  108. }
  109. }
  110. }
  111. }
  112. .timeline-modal{
  113. width:150px; min-height:30px; //margin-right: -75px;
  114. padding:5px;
  115. background-color:#fff;
  116. position:absolute; z-index:99999;
  117. display:none;
  118. h4, h5{.m(0); color:@timeline-color;}
  119. h4{.fs-titre-event-timeline();}
  120. h5{.fs-artist-event-timeline();}
  121. }