_infobox.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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: rgba(0, 0, 0, .8);
  12. }
  13. #infobox {
  14. z-index: 4;
  15. position: fixed;
  16. right: -370px;
  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. transform: translateX(0);
  22. transition: transform .3s cubic-bezier(.51, .92, .24, 1.15);
  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-image: linear-gradient(to bottom, #2A2A2A, #131313);
  50. border-bottom: 1px solid rgba(0, 0, 0, .7);
  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 rgba(0, 0, 0, .3);
  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 rgba(0, 0, 0, .2) );
  70. transition: fill .2s ease;
  71. }
  72. &:hover .iconic { fill: #fff; }
  73. }
  74. /* Seperator ------------------------------------------------*/
  75. .separator {
  76. float: left;
  77. width: 100%;
  78. border-top: 1px solid rgba(255, 255, 255, .02);
  79. box-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
  80. &:first-child {
  81. border-top: 1px solid rgba(255, 255, 255, .02);
  82. box-shadow: none;
  83. }
  84. h1 {
  85. margin: 20px 0 5px 20px;
  86. color: #fff;
  87. font-size: 14px;
  88. font-weight: bold;
  89. text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  90. }
  91. }
  92. /* Table ------------------------------------------------*/
  93. table {
  94. float: left;
  95. margin: 10px 0 15px 20px;
  96. }
  97. table tr td {
  98. padding: 5px 0px;
  99. color: #fff;
  100. font-size: 14px;
  101. line-height: 19px;
  102. -webkit-user-select: text;
  103. -moz-user-select: text;
  104. user-select: text;
  105. &:first-child { width: 110px; }
  106. &:last-child { padding-right: 10px; }
  107. }
  108. /* Tags ------------------------------------------------*/
  109. #tags {
  110. width: calc(100% - 40px);
  111. margin: 16px 20px 12px 20px;
  112. color: #fff;
  113. display: inline-block;
  114. }
  115. #tags .empty {
  116. font-size: 14px;
  117. margin-bottom: 8px;
  118. }
  119. #tags .edit {
  120. display: inline-block;
  121. }
  122. #tags .empty .edit {
  123. display: inline;
  124. }
  125. #tags .tag {
  126. float: left;
  127. padding: 4px 7px;
  128. margin: 0 6px 8px 0;
  129. background-color: rgba(0, 0, 0, .5);
  130. border: 2px solid rgba(255, 255, 255, .3);
  131. border-radius: 100px;
  132. font-size: 12px;
  133. transition: border .3s;
  134. &:hover { border: 2px solid #aaa; }
  135. }
  136. #tags .tag span {
  137. float: right;
  138. width: 0;
  139. padding: 0;
  140. margin: 0 0 -2px 0;
  141. color: red;
  142. font-size: 11px;
  143. cursor: pointer;
  144. overflow: hidden;
  145. transform: scale(0);
  146. transition: width .3s, margin .3s, transform .3s;
  147. }
  148. #tags .tag:hover span {
  149. width: 10px;
  150. margin: 0 0 -2px 6px;
  151. transform: scale(1);
  152. }
  153. }