PopinFixed.styl 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. @import '../../css/Variable.styl'
  2. .wsContentGeneric
  3. position fixed
  4. top 85px
  5. right 0
  6. border 1px solid grey
  7. height 100%
  8. background-color lightGrey
  9. box-shadow shadow-page
  10. z-index 4
  11. &.visible
  12. visibility visible
  13. &__header
  14. display flex
  15. align-items center
  16. padding 15px
  17. height 64px
  18. &__icon
  19. margin-right 15px
  20. font-size 22px
  21. color white
  22. &__title
  23. margin-right 15px
  24. border-radius 5px
  25. width 100%
  26. color white
  27. text-overflow ellipsis
  28. overflow hidden
  29. white-space nowrap
  30. & > input
  31. padding-left 5px
  32. &__edittitle
  33. margin 0 15px
  34. border 1px solid transparent
  35. border-radius 5px
  36. padding 2px 8px
  37. color white
  38. font-size 17px
  39. cursor pointer
  40. &:hover
  41. border-color white
  42. .fa-pencil
  43. color off-white
  44. &__close
  45. border 1px solid white
  46. border-radius 5px
  47. padding 2px 5px
  48. cursor pointer
  49. & > i
  50. color white
  51. font-size 20px
  52. &__option
  53. border-bottom 1px solid grey
  54. padding 10px
  55. height 58px
  56. background-color off-white
  57. &__menu
  58. & > div
  59. display flex
  60. flex-flow row
  61. justify-content space-between
  62. align-items center
  63. &__addversion
  64. display flex
  65. align-items center
  66. cursor pointer
  67. &__lastversion
  68. display flex
  69. align-items center
  70. cursor pointer
  71. margin-left 15px
  72. & > i
  73. margin-right 10px
  74. color darkGrey
  75. font-size 22px
  76. &__action
  77. font-size 18px
  78. background-color transparent
  79. border none
  80. cursor pointer
  81. &:hover , &:focus
  82. color blue
  83. &__content
  84. display flex
  85. flex-wrap wrap
  86. // 209 = wsContentGeneric:top wsContentGeneric__header:height - wsContentGeneric__option:height
  87. width 200% // to allow transform translateX of right part
  88. height calc(100% - 209px)
  89. &__left
  90. transition width 0.4s ease
  91. width 25%
  92. height calc(100% - 10px) // 10px => margin of timeline
  93. &__right
  94. transition width 0.4s ease
  95. width calc(25% - 10px)
  96. height calc(100% - 10px) // 10px => margin of timeline
  97. .rightPartClose
  98. .wsContentGeneric__content__left
  99. width calc(50% - 50px)
  100. //.wsContentGeneric__content__right
  101. // width 50px // 50px is the width of the rightPart header (eg. timeline__header)
  102. @media (min-width: min-sm) and (max-width: max-lg)
  103. .wsContentGeneric__content
  104. overflow-Y auto
  105. &__left
  106. width 100%
  107. margin-bottom 50px
  108. &__right
  109. width 100%
  110. @media (min-width: min-sm) and (max-width: max-sm)
  111. .wsContentGeneric
  112. top 70px
  113. @media (max-width: max-xs)
  114. .wsContentGeneric
  115. top 70px
  116. &__content
  117. overflow-Y auto
  118. &__left
  119. width 100%
  120. margin-bottom 50px
  121. &__right
  122. width 100%