infobox.css 3.7 KB

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