_infobox.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /**
  2. * @copyright 2015 by Tobias Reich
  3. */
  4. #infobox_overlay {
  5. z-index: 3;
  6. position: fixed;
  7. width: 100%;
  8. height: 100%;
  9. top: 0;
  10. left: 0;
  11. background-color: black(.8);
  12. }
  13. #infobox {
  14. z-index: 4;
  15. position: fixed;
  16. right: -370px;
  17. width: 350px;
  18. height: 100%;
  19. background-color: rgba(30, 30, 30, .98);
  20. box-shadow: -1px 0 2px black(.7);
  21. transform: translateX(0);
  22. transition: transform .3s $timingBounce;
  23. &.active { transform: translateX(-92%); }
  24. /* Misc ------------------------------------------------*/
  25. .wrapper {
  26. float: left;
  27. height: 100%;
  28. width: 300px;
  29. overflow: scroll;
  30. -webkit-overflow-scrolling: touch;
  31. }
  32. .edit {
  33. display: inline-block;
  34. margin-left: 3px;
  35. width: 10px;
  36. cursor: pointer;
  37. .iconic {
  38. fill: white(.5);
  39. filter: drop-shadow($shadow);
  40. transition: fill .2s ease-out;
  41. }
  42. &:hover .iconic { fill: white(1); }
  43. }
  44. .bumper {
  45. float: left;
  46. width: 100%;
  47. height: 50px;
  48. }
  49. /* Header ------------------------------------------------*/
  50. .header {
  51. float: left;
  52. height: 49px;
  53. width: 100%;
  54. background: linear-gradient(to bottom, #1f1f1f, #1a1a1a);
  55. border-bottom: 1px solid #0f0f0f;
  56. }
  57. .header h1 {
  58. position: absolute;
  59. margin: 15px 30% 15px calc(30% - 25px);
  60. width: 40%;
  61. color: #fff;
  62. font-size: 16px;
  63. font-weight: bold;
  64. text-align: center;
  65. text-shadow: $shadow;
  66. }
  67. .header .close {
  68. float: right;
  69. padding: 16px 65px 12px 15px;
  70. width: 15px;
  71. cursor: pointer;
  72. .iconic {
  73. fill: #888;
  74. filter: drop-shadow($shadow);
  75. transition: fill .2s ease-out;
  76. }
  77. &:hover .iconic { fill: #fff; }
  78. }
  79. /* Divider ------------------------------------------------*/
  80. .divider {
  81. float: left;
  82. padding: 12px 0 8px;
  83. width: 100%;
  84. border-top: 1px solid white(.02);
  85. box-shadow: $shadow;
  86. h1 {
  87. margin: 0 0 0 20px;
  88. color: white(.6);
  89. font-size: 14px;
  90. font-weight: bold;
  91. }
  92. }
  93. /* Table ------------------------------------------------*/
  94. table {
  95. float: left;
  96. margin: 10px 0 15px 20px;
  97. }
  98. table tr td {
  99. padding: 5px 0px;
  100. color: #fff;
  101. font-size: 14px;
  102. line-height: 19px;
  103. -webkit-user-select: text;
  104. -moz-user-select: text;
  105. user-select: text;
  106. &:first-child { width: 110px; }
  107. &:last-child { padding-right: 10px; }
  108. }
  109. /* Tags ------------------------------------------------*/
  110. #tags {
  111. width: calc(100% - 40px);
  112. margin: 16px 20px 12px 20px;
  113. color: #fff;
  114. display: inline-block;
  115. }
  116. #tags .empty {
  117. font-size: 14px;
  118. margin-bottom: 8px;
  119. }
  120. #tags .edit { margin-top: 6px; }
  121. #tags .empty .edit { margin-top: 0; }
  122. #tags .tag {
  123. display: inline-block;
  124. padding: 6px 10px;
  125. margin: 0 6px 8px 0;
  126. background-color: black(.5);
  127. border-radius: 100px;
  128. font-size: 12px;
  129. transition: background-color .3s;
  130. &:hover { background-color: black(.3); }
  131. }
  132. #tags .tag span {
  133. float: right;
  134. padding: 0;
  135. margin: 0 0 -2px 0;
  136. width: 0;
  137. cursor: pointer;
  138. overflow: hidden;
  139. transform: scale(0);
  140. transition: width .3s, margin .3s, transform .3s;
  141. .iconic {
  142. fill: $colorRed;
  143. width: 8px;
  144. filter: drop-shadow($shadowLight);
  145. }
  146. }
  147. #tags .tag:hover span {
  148. width: 9px;
  149. margin: 0 0 -2px 5px;
  150. transform: scale(1);
  151. }
  152. }