_infobox.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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: 0px;
  10. left: 0px;
  11. background-color: rgba(0, 0, 0, .8);
  12. }
  13. #infobox {
  14. z-index: 4;
  15. position: fixed;
  16. right: 0px;
  17. width: 350px;
  18. height: 100%;
  19. background-color: rgba(20, 20, 20, .98);
  20. box-shadow: -1px 0 2px rgba(0, 0, 0, .8);
  21. display: none;
  22. transform: translateX(370px);
  23. transition: transform .3s cubic-bezier(.51, .92, .24, 1.15);
  24. &.active { transform: translateX(50px); }
  25. /* Misc ------------------------------------------------*/
  26. .wrapper {
  27. float: left;
  28. height: 100%;
  29. width: 300px;
  30. overflow: scroll;
  31. -webkit-overflow-scrolling: touch;
  32. }
  33. .edit {
  34. display: inline;
  35. margin-left: 3px;
  36. width: 20px;
  37. height: 5px;
  38. cursor: pointer;
  39. }
  40. .bumper {
  41. float: left;
  42. width: 100%;
  43. height: 50px;
  44. }
  45. /* Header ------------------------------------------------*/
  46. .header {
  47. float: left;
  48. height: 49px;
  49. width: 100%;
  50. background-image: linear-gradient(to bottom, #2A2A2A, #131313);
  51. border-bottom: 1px solid rgba(0, 0, 0, .7);
  52. }
  53. .header h1 {
  54. position: absolute;
  55. margin: 15px 30% 15px calc(30% - 25px);
  56. width: 40%;
  57. color: #fff;
  58. font-size: 16px;
  59. font-weight: bold;
  60. text-align: center;
  61. text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  62. }
  63. .header .close {
  64. float: right;
  65. padding: 16px 65px 12px 15px;
  66. width: 15px;
  67. cursor: pointer;
  68. .iconic {
  69. fill: #888;
  70. filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .2) );
  71. transition: fill .2s ease;
  72. }
  73. &:hover .iconic { fill: #fff; }
  74. }
  75. /* Seperator ------------------------------------------------*/
  76. .separator {
  77. float: left;
  78. width: 100%;
  79. border-top: 1px solid rgba(255, 255, 255, .02);
  80. box-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
  81. &:first-child {
  82. border-top: 1px solid rgba(255, 255, 255, .02);
  83. box-shadow: none;
  84. }
  85. h1 {
  86. margin: 20px 0 5px 20px;
  87. color: #fff;
  88. font-size: 14px;
  89. font-weight: bold;
  90. text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  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 {
  121. display: inline-block;
  122. }
  123. #tags .empty .edit {
  124. display: inline;
  125. }
  126. #tags .tag {
  127. float: left;
  128. padding: 4px 7px;
  129. margin: 0 6px 8px 0;
  130. background-color: rgba(0, 0, 0, .5);
  131. border: 2px solid rgba(255, 255, 255, .3);
  132. border-radius: 100px;
  133. font-size: 12px;
  134. transition: border .3s;
  135. &:hover { border: 2px solid #aaa; }
  136. }
  137. #tags .tag span {
  138. float: right;
  139. width: 0;
  140. padding: 0;
  141. margin: 0 0 -2px 0;
  142. color: red;
  143. font-size: 11px;
  144. cursor: pointer;
  145. overflow: hidden;
  146. transform: scale(0);
  147. transition: width .3s, margin .3s, transform .3s;
  148. }
  149. #tags .tag:hover span {
  150. width: 10px;
  151. margin: 0 0 -2px 6px;
  152. transform: scale(1);
  153. }
  154. }