You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

302 lines
5.2 KiB

11 years ago
  1. /* List */
  2. ul li {
  3. padding: 0 2rem;
  4. padding-left: 9rem;
  5. font-size: 2rem;
  6. min-height: 6rem;
  7. line-height: 6rem;
  8. position: relative;
  9. box-sizing: border-box;
  10. text-overflow: ellipsis;
  11. overflow: hidden;
  12. min-width: 12rem;
  13. }
  14. ul > a {
  15. display: block;
  16. }
  17. ul li.oppose {
  18. padding-left: 0;
  19. padding-right: 9rem;
  20. }
  21. ul li.inactive {
  22. opacity: 0.6;
  23. }
  24. ul.simple > li {
  25. padding-left: 2rem;
  26. line-height: 6rem;
  27. }
  28. ul.simple > li span.icon {
  29. display: none;
  30. }
  31. ul.middle > li {
  32. min-height: 7rem;
  33. line-height: 5rem;
  34. padding-top: 1rem;
  35. padding-bottom: 1rem;
  36. }
  37. ul.thin > li {
  38. min-height: 5rem;
  39. line-height: 5rem;
  40. }
  41. ul.thick > li {
  42. min-height: 7rem;
  43. line-height: 5rem;
  44. padding-top: 2rem;
  45. padding-bottom: 2rem;
  46. }
  47. ul li.subheader {
  48. min-height: 0;
  49. height: 5rem;
  50. line-height: 5rem;
  51. font-size: 1.75rem;
  52. padding-left: 2rem;
  53. padding-top: 0;
  54. font-weight: 600;
  55. }
  56. ul.active li:hover:not(.subheader),
  57. ul.active.all li:hover,
  58. ul.active li.active:not(.subheader) {
  59. background-color: rgba(0, 0, 0, 0.03);
  60. cursor: pointer;
  61. }
  62. ul.active li:hover:not(.subheader) > p.more:after,
  63. ul.active.all li:hover > p.more:after,
  64. ul.active li.active:not(.subheader) > p.more:after {
  65. background-image: linear-gradient(to bottom, transparent, rgba(247, 247, 247, 1));
  66. }
  67. ul.active li:focus:not(.subheader),
  68. ul.active.all li:focus,
  69. ul.active li.active:not(.subheader) {
  70. background-color: rgba(0, 0, 0, 0.07);
  71. }
  72. ul.active li:focus:not(.subheader) > p.more:after,
  73. ul.active.all li:focus > p.more:after,
  74. ul.active li.active:not(.subheader) > p.more:after {
  75. background-image: linear-gradient(to bottom, transparent, rgba(237, 237, 237, 1));
  76. }
  77. .dark ul.active li:hover:not(.subheader),
  78. .dark ul.active.all li:hover,
  79. .dark ul.active li.active:not(.subheader) {
  80. background-color: rgba(255, 255, 255, 0.035);
  81. }
  82. ul li.condensed,
  83. ul.thin li.condensed,
  84. ul.thick li.condensed {
  85. line-height: 3rem;
  86. }
  87. ul li.condensed p,
  88. ul.thin li.condensed p,
  89. ul.thick li.condensed p {
  90. line-height: 2.5rem;
  91. margin-bottom: 0;
  92. }
  93. ul li > p {
  94. display: block;
  95. font-size: 1.75rem;
  96. color: rgba(0, 0, 0, 0.60);
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. max-height: 8rem;
  100. line-height: 2.5rem;
  101. position: relative;
  102. }
  103. ul li > p.more:after {
  104. display: block;
  105. width: 100%;
  106. height: 3rem;
  107. background-image: linear-gradient(to bottom, transparent, white);
  108. content: "";
  109. position: absolute;
  110. bottom: 0;
  111. }
  112. ul li > p.all {
  113. max-height: 100%;
  114. }
  115. ul li p.wrap {
  116. white-space: nowrap;
  117. }
  118. ul li span {
  119. white-space: nowrap;
  120. }
  121. ul li img {
  122. max-width: 100%;
  123. }
  124. ul li > p.more img:not(.emoji) {
  125. margin: 1rem auto;
  126. display: block;
  127. }
  128. ul li.action {
  129. padding-right: 7rem;
  130. }
  131. ul li.action > div.action,
  132. ul li.action > form > div.action {
  133. position: absolute;
  134. top: 50%;
  135. right: 2rem;
  136. margin-top: -2.5rem;
  137. font-size: 3rem;
  138. height: 5rem;
  139. line-height: 5rem;
  140. }
  141. ul li span.info {
  142. float: right;
  143. margin-left: 1rem;
  144. }
  145. /* Counter */
  146. ul li span.counter:empty {
  147. display: none;
  148. }
  149. ul li span.counter {
  150. position: absolute;
  151. right: 1rem;
  152. top: calc(50% - 1.5rem);
  153. line-height: 2rem;
  154. border-radius: 3rem;
  155. padding: 0.5rem;
  156. text-align: center;
  157. min-width: 2rem;
  158. }
  159. ul li span.counter.bottom {
  160. top: calc(50%);
  161. }
  162. /* Bubble */
  163. ul li div.bubble {
  164. padding: 1rem 2rem;
  165. border-radius: 0.25rem;
  166. line-height: 2.75rem;
  167. position: relative;
  168. box-sizing: border-box;
  169. display: block;
  170. border-color: transparent;
  171. font-size: 1.75rem;
  172. background-color: #E5E5E5;
  173. border-color: #E5E5E5;
  174. max-width: 100%;
  175. min-width: 50%;
  176. float: left;
  177. /*word-break: break-all;*/
  178. }
  179. ul li div.bubble div {
  180. white-space: pre;
  181. display: inline;
  182. }
  183. ul li div.bubble.quote {
  184. font-style: italic;
  185. }
  186. ul li.oppose div.bubble {
  187. margin-left: 2rem;
  188. float: right;
  189. }
  190. ul li div.bubble:after {
  191. visibility: hidden;
  192. display: block;
  193. font-size: 0;
  194. content: " ";
  195. clear: both;
  196. height: 0;
  197. }
  198. ul li div.bubble:before {
  199. content: "";
  200. position: absolute;
  201. top: 0;
  202. left: -1.5rem;
  203. border-top: 1.5rem solid black;
  204. border-top-color: inherit;
  205. border-left: 1.5rem solid transparent;
  206. border-right: 1.5rem solid transparent;
  207. }
  208. li.oppose div.bubble:before {
  209. left: calc(100% - 1.5rem);
  210. }
  211. /* Tabs */
  212. ul.tabs {
  213. text-align: center;
  214. border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  215. overflow: hidden;
  216. white-space: nowrap;
  217. height: 6rem;
  218. }
  219. ul.tabs:hover {
  220. overflow-x: auto;
  221. }
  222. ul.tabs li {
  223. display: inline-block;
  224. white-space: nowrap;
  225. text-transform: uppercase;
  226. font-size: 1.75rem;
  227. font-weight: 600;
  228. opacity: 0.6;
  229. padding: 0 2rem;
  230. height: 2rem;
  231. box-sizing: border-box;
  232. }
  233. ul.tabs li:hover {
  234. cursor: pointer;
  235. }
  236. ul.tabs li.active {
  237. opacity: 1;
  238. border-bottom-width: 2px;
  239. border-bottom-style: solid;
  240. }
  241. /* Menu */
  242. ul.menu {
  243. border-radius: 0.25rem;
  244. display: inline-block;
  245. height: 5rem;
  246. margin-left: 1rem;
  247. overflow: hidden;
  248. }
  249. ul.menu:hover {
  250. height: auto;
  251. background-color: white;
  252. color: black;
  253. box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.26), 0px 2px 10px 0px rgba(0, 0, 0, 0.16);
  254. }