infobox.css 4.1 KB

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