_infobox.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /**
  2. * @copyright 2014 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;
  34. margin-left: 3px;
  35. width: 20px;
  36. height: 5px;
  37. cursor: pointer;
  38. }
  39. .bumper {
  40. float: left;
  41. width: 100%;
  42. height: 50px;
  43. }
  44. /* Header ------------------------------------------------*/
  45. .header {
  46. float: left;
  47. height: 49px;
  48. width: 100%;
  49. background: linear-gradient(to bottom, #1f1f1f, #1a1a1a);
  50. border-bottom: 1px solid #0f0f0f;
  51. }
  52. .header h1 {
  53. position: absolute;
  54. margin: 15px 30% 15px calc(30% - 25px);
  55. width: 40%;
  56. color: #fff;
  57. font-size: 16px;
  58. font-weight: bold;
  59. text-align: center;
  60. text-shadow: 0 -1px 0 black(.2);
  61. }
  62. .header .close {
  63. float: right;
  64. padding: 16px 65px 12px 15px;
  65. width: 15px;
  66. cursor: pointer;
  67. .iconic {
  68. fill: #888;
  69. filter: drop-shadow(0 -1px 0 black(.2));
  70. transition: fill .2s ease-out;
  71. }
  72. &:hover .iconic { fill: #fff; }
  73. }
  74. /* Seperator ------------------------------------------------*/
  75. .separator {
  76. float: left;
  77. padding: 12px 0 8px;
  78. width: 100%;
  79. border-top: 1px solid white(.02);
  80. box-shadow: 0 -1px 0 0 black(.2);
  81. h1 {
  82. margin: 0 0 0 20px;
  83. color: white(.6);
  84. font-size: 14px;
  85. font-weight: bold;
  86. }
  87. }
  88. /* Table ------------------------------------------------*/
  89. table {
  90. float: left;
  91. margin: 10px 0 15px 20px;
  92. }
  93. table tr td {
  94. padding: 5px 0px;
  95. color: #fff;
  96. font-size: 14px;
  97. line-height: 19px;
  98. -webkit-user-select: text;
  99. -moz-user-select: text;
  100. user-select: text;
  101. &:first-child { width: 110px; }
  102. &:last-child { padding-right: 10px; }
  103. }
  104. /* Tags ------------------------------------------------*/
  105. #tags {
  106. width: calc(100% - 40px);
  107. margin: 16px 20px 12px 20px;
  108. color: #fff;
  109. display: inline-block;
  110. }
  111. #tags .empty {
  112. font-size: 14px;
  113. margin-bottom: 8px;
  114. }
  115. #tags .edit {
  116. display: inline-block;
  117. }
  118. #tags .empty .edit {
  119. display: inline;
  120. }
  121. #tags .tag {
  122. float: left;
  123. padding: 6px 10px;
  124. margin: 0 6px 8px 0;
  125. background-color: black(.5);
  126. border-radius: 100px;
  127. font-size: 12px;
  128. transition: background-color .3s;
  129. &:hover { background-color: black(.3); }
  130. }
  131. #tags .tag span {
  132. float: right;
  133. width: 0;
  134. padding: 0;
  135. margin: 0 0 -2px 0;
  136. color: red;
  137. font-size: 11px;
  138. cursor: pointer;
  139. overflow: hidden;
  140. transform: scale(0);
  141. transition: width .3s, margin .3s, transform .3s;
  142. }
  143. #tags .tag:hover span {
  144. width: 10px;
  145. margin: 0 0 -2px 6px;
  146. transform: scale(1);
  147. }
  148. }