PopinFixed.styl 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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-right
  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. &__state
  90. width 100%
  91. padding 5px 15px
  92. border-radius 10px
  93. background-color #fbe294
  94. &__left
  95. transition width 0.4s ease
  96. width 25%
  97. height calc(100% - 10px) // 10px => margin of timeline
  98. &__right
  99. transition width 0.4s ease
  100. width calc(25% - 10px)
  101. height calc(100% - 10px) // 10px => margin of timeline
  102. .rightPartClose
  103. .wsContentGeneric__content__left
  104. width calc(50% - 50px)
  105. //.wsContentGeneric__content__right
  106. // width 50px // 50px is the width of the rightPart header (eg. timeline__header)
  107. @media (min-width: min-sm) and (max-width: max-lg)
  108. .wsContentGeneric__content
  109. overflow-Y auto
  110. &__left
  111. margin-bottom 20px
  112. width 100%
  113. height auto
  114. &__textnote
  115. height auto
  116. overflow-y hidden
  117. &__right
  118. width 100%
  119. @media (min-width: min-sm) and (max-width: max-sm)
  120. .wsContentGeneric
  121. top 68px
  122. @media (max-width: max-xs)
  123. .wsContentGeneric
  124. top 68 px
  125. &__content
  126. overflow-Y auto
  127. &__left
  128. width 100%
  129. margin-bottom 20px
  130. &__right
  131. width 100%