_infobox.scss 3.1 KB

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