_infobox.scss 3.0 KB

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