_infobox.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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,0.98);
  20. box-shadow: -1px 0px 2px rgba(0,0,0,.8);
  21. display: none;
  22. transform: translateX(370px);
  23. transition: transform .3s cubic-bezier(0.51,.92,.24,1.15);
  24. }
  25. #infobox.active {
  26. transform: translateX(50px);
  27. }
  28. /* Misc ------------------------------------------------*/
  29. #infobox .wrapper {
  30. float: left;
  31. height: 100%;
  32. width: 300px;
  33. overflow: scroll;
  34. -webkit-overflow-scrolling: touch;
  35. }
  36. #infobox .edit {
  37. display: inline;
  38. margin-left: 3px;
  39. width: 20px;
  40. height: 5px;
  41. cursor: pointer;
  42. }
  43. #infobox .bumper {
  44. float: left;
  45. width: 100%;
  46. height: 50px;
  47. }
  48. /* Header ------------------------------------------------*/
  49. #infobox .header {
  50. float: left;
  51. height: 49px;
  52. width: 100%;
  53. background-image: linear-gradient(to bottom, #2A2A2A, #131313);
  54. border-bottom: 1px solid #000;
  55. }
  56. #infobox .header h1 {
  57. position: absolute;
  58. margin: 15px 30% 15px calc(30% - 25px);
  59. width: 40%;
  60. color: #fff;
  61. font-size: 16px;
  62. font-weight: bold;
  63. text-align: center;
  64. text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
  65. }
  66. #infobox .header a {
  67. float: right;
  68. padding: 15px 65px 15px 15px;
  69. color: #fff;
  70. font-size: 20px;
  71. font-weight: bold;
  72. text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
  73. opacity: .5;
  74. cursor: pointer;
  75. }
  76. #infobox .header a:hover {
  77. opacity: 1;
  78. }
  79. /* Seperator ------------------------------------------------*/
  80. #infobox .separator {
  81. float: left;
  82. width: 100%;
  83. border-top: 1px solid rgba(255,255,255,.04);
  84. box-shadow: 0px -1px 0px #000;
  85. }
  86. #infobox .separator h1 {
  87. margin: 20px 0px 5px 20px;
  88. color: #fff;
  89. font-size: 14px;
  90. font-weight: bold;
  91. text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
  92. }
  93. /* Table ------------------------------------------------*/
  94. #infobox table {
  95. float: left;
  96. margin: 10px 0px 15px 20px;
  97. }
  98. #infobox 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. }
  107. #infobox table tr td:first-child {
  108. width: 110px;
  109. }
  110. #infobox table tr td:last-child {
  111. padding-right: 10px;
  112. }
  113. /* Tags ------------------------------------------------*/
  114. #infobox #tags {
  115. width: calc(100% - 40px);
  116. margin: 16px 20px 12px 20px;
  117. color: #fff;
  118. display: inline-block;
  119. }
  120. #infobox #tags .empty {
  121. font-size: 14px;
  122. margin-bottom: 8px;
  123. }
  124. #infobox #tags .edit {
  125. display: inline-block;
  126. }
  127. #infobox #tags .empty .edit {
  128. display: inline;
  129. }
  130. #infobox .tag {
  131. float: left;
  132. padding: 4px 7px;
  133. margin: 0px 6px 8px 0px;
  134. background-color: rgba(0,0,0,.5);
  135. border: 2px solid rgba(255,255,255,.3);
  136. border-radius: 100px;
  137. font-size: 12px;
  138. transition: border .3s;
  139. }
  140. #infobox .tag:hover {
  141. border: 2px solid #aaa;
  142. }
  143. #infobox .tag span {
  144. float: right;
  145. width: 0px;
  146. padding: 0px;
  147. margin: 0px 0px -2px 0px;
  148. color: red;
  149. font-size: 11px;
  150. cursor: pointer;
  151. overflow: hidden;
  152. transform: scale(0);
  153. transition: width .3s, margin .3s, transform .3s;
  154. }
  155. #infobox .tag:hover span {
  156. width: 10px;
  157. margin: 0px 0px -2px 6px;
  158. transform: scale(1);
  159. }