闭社主体 forked from https://github.com/tootsuite/mastodon
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.

407 lines
5.8 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. .button {
  2. background-color: #2b90d9;
  3. font-family: 'Roboto';
  4. display: inline-block;
  5. position: relative;
  6. box-sizing: border-box;
  7. text-align: center;
  8. border: 10px none;
  9. color: #fff;
  10. font-size: 14px;
  11. font-weight: 500;
  12. letter-spacing: 0;
  13. text-transform: uppercase;
  14. padding: 0 16px;
  15. height: 36px;
  16. cursor: pointer;
  17. line-height: 36px;
  18. border-radius: 4px;
  19. text-decoration: none;
  20. &:hover {
  21. background-color: #489fde;
  22. }
  23. &:disabled {
  24. background-color: #9baec8;
  25. cursor: default;
  26. }
  27. &.button-secondary {
  28. background-color: #282c37;
  29. &:hover {
  30. background-color: #282c37;
  31. }
  32. &:disabled {
  33. background-color: #9baec8;
  34. }
  35. }
  36. }
  37. .icon-button {
  38. color: #616b86;
  39. border: none;
  40. background: transparent;
  41. &:hover {
  42. color: #717b98;
  43. }
  44. &.disabled {
  45. color: #535b72;
  46. cursor: default;
  47. }
  48. &.active {
  49. color: #2b90d9;
  50. }
  51. }
  52. .lightbox .icon-button {
  53. color: #282c37;
  54. }
  55. .compose-form__textarea, .follow-form__input {
  56. background: #fff;
  57. &:disabled {
  58. background: #d9e1e8;
  59. }
  60. }
  61. .emojione {
  62. display: inline-block;
  63. font-size: inherit;
  64. vertical-align: middle;
  65. margin: -.2ex .15em .2ex;
  66. width: 16px;
  67. height: 16px;
  68. img {
  69. width: auto;
  70. }
  71. }
  72. .status__content, .reply-indicator__content {
  73. font-size: 15px;
  74. line-height: 20px;
  75. word-wrap: break-word;
  76. font-weight: 300;
  77. overflow: hidden;
  78. .emojione {
  79. width: 18px;
  80. height: 18px;
  81. }
  82. p {
  83. margin-bottom: 20px;
  84. &:last-child {
  85. margin-bottom: 0;
  86. }
  87. }
  88. a {
  89. color: #d9e1e8;
  90. text-decoration: none;
  91. &:hover {
  92. text-decoration: underline;
  93. }
  94. &.mention {
  95. &:hover {
  96. text-decoration: none;
  97. span {
  98. text-decoration: underline;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. .detailed-status {
  105. .status__content {
  106. font-size: 19px;
  107. line-height: 24px;
  108. .emojione {
  109. width: 22px;
  110. height: 22px;
  111. }
  112. }
  113. }
  114. .reply-indicator__content {
  115. color: #282c37;
  116. font-size: 14px;
  117. a {
  118. color: #535b72;
  119. }
  120. }
  121. .account__header__content {
  122. word-wrap: break-word;
  123. font-weight: 300;
  124. overflow: hidden;
  125. p {
  126. margin-bottom: 20px;
  127. &:last-child {
  128. margin-bottom: 0;
  129. }
  130. }
  131. a {
  132. color: inherit;
  133. text-decoration: underline;
  134. &:hover {
  135. text-decoration: none;
  136. }
  137. }
  138. }
  139. .account__header__display-name {
  140. .emojione {
  141. width: 25px;
  142. height: 25px;
  143. }
  144. }
  145. .status__display-name, .status__relative-time, .detailed-status__display-name, .detailed-status__datetime, .account__display-name {
  146. text-decoration: none;
  147. }
  148. .status__display-name, .account__display-name {
  149. strong {
  150. color: #fff;
  151. }
  152. &.muted {
  153. .emojione {
  154. opacity: 0.5;
  155. }
  156. }
  157. }
  158. .status__display-name, .reply-indicator__display-name, .detailed-status__display-name, .account__display-name {
  159. &:hover {
  160. strong {
  161. text-decoration: underline;
  162. }
  163. }
  164. }
  165. .account__display-name {
  166. strong {
  167. display: block;
  168. }
  169. }
  170. .detailed-status__display-name {
  171. color: #d9e1e8;
  172. line-height: 24px;
  173. strong, span {
  174. display: block;
  175. }
  176. strong {
  177. font-size: 16px;
  178. color: #fff;
  179. }
  180. }
  181. .muted {
  182. .status__content p, .status__content a {
  183. color: #616b86;
  184. }
  185. .status__display-name strong {
  186. color: #616b86;
  187. }
  188. .status__avatar {
  189. opacity: 0.5;
  190. }
  191. }
  192. .notification__display-name {
  193. color: inherit;
  194. text-decoration: none;
  195. &:hover {
  196. color: #fff;
  197. text-decoration: underline;
  198. }
  199. }
  200. .status__relative-time, .detailed-status__datetime {
  201. &:hover {
  202. text-decoration: underline;
  203. }
  204. }
  205. .transparent-background {
  206. background: image-url('void.png');
  207. }
  208. .dropdown {
  209. display: inline-block;
  210. }
  211. .dropdown__content {
  212. display: none;
  213. position: absolute;
  214. }
  215. .dropdown--active .dropdown__content {
  216. display: block;
  217. z-index: 9999;
  218. &:before {
  219. content: "";
  220. display: block;
  221. position: absolute;
  222. width: 0;
  223. height: 0;
  224. border-style: solid;
  225. border-width: 0 4.5px 7.8px 4.5px;
  226. border-color: transparent transparent #d9e1e8 transparent;
  227. top: -7px;
  228. left: 8px;
  229. }
  230. ul {
  231. list-style: none;
  232. background: #d9e1e8;
  233. padding: 4px 0;
  234. border-radius: 4px;
  235. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  236. min-width: 100px;
  237. }
  238. a {
  239. font-size: 13px;
  240. display: block;
  241. padding: 6px 16px;
  242. width: 100px;
  243. text-decoration: none;
  244. background: #d9e1e8;
  245. color: #282c37;
  246. &:hover {
  247. background: #2b90d9;
  248. color: #d9e1e8;
  249. }
  250. }
  251. }
  252. .static-content {
  253. padding: 10px;
  254. padding-top: 20px;
  255. color: #616b86;
  256. h1 {
  257. font-size: 16px;
  258. font-weight: 500;
  259. margin-bottom: 40px;
  260. text-align: center;
  261. }
  262. p {
  263. font-size: 13px;
  264. margin-bottom: 20px;
  265. }
  266. }
  267. .columns-area {
  268. margin: 10px;
  269. margin-left: 0;
  270. flex-direction: row;
  271. }
  272. .column {
  273. width: 330px;
  274. }
  275. .drawer {
  276. width: 280px;
  277. }
  278. .column, .drawer {
  279. margin-left: 10px;
  280. flex: 0 0 auto;
  281. overflow: hidden;
  282. }
  283. @media screen and (max-width: 1024px) {
  284. .column, .drawer {
  285. width: 100%;
  286. margin: 0;
  287. flex: 1 1 100%;
  288. }
  289. .columns-area {
  290. margin: 10px;
  291. flex-direction: column;
  292. }
  293. }
  294. .react-autosuggest__container {
  295. position: relative;
  296. }
  297. .react-autosuggest__suggestions-container {
  298. position: absolute;
  299. top: 100%;
  300. width: 100%;
  301. z-index: 99;
  302. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  303. }
  304. .react-autosuggest__section-title {
  305. background: #9baec8;
  306. padding: 4px 10px;
  307. font-weight: 500;
  308. cursor: default;
  309. color: #282c37;
  310. text-transform: uppercase;
  311. font-size: 11px;
  312. }
  313. .react-autosuggest__suggestions-list {
  314. background: #d9e1e8;
  315. color: #282c37;
  316. font-size: 14px;
  317. }
  318. .react-autosuggest__suggestion {
  319. padding: 10px;
  320. cursor: pointer;
  321. }
  322. .react-autosuggest__suggestion--focused {
  323. background: #2b90d9;
  324. color: #fff;
  325. }
  326. .scrollable {
  327. overflow-y: scroll;
  328. overflow-x: hidden;
  329. flex: 1 1 auto;
  330. -webkit-overflow-scrolling: touch;
  331. }
  332. .column-back-button {
  333. &:hover {
  334. text-decoration: underline;
  335. }
  336. }