闭社主体 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.

594 lines
9.1 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. cursor: pointer;
  42. &:hover {
  43. color: #717b98;
  44. }
  45. &.disabled {
  46. color: #454b5e;
  47. cursor: default;
  48. }
  49. &.active {
  50. color: #2b90d9;
  51. }
  52. }
  53. .lightbox .icon-button {
  54. color: #282c37;
  55. }
  56. .compose-form__textarea, .follow-form__input {
  57. background: #fff;
  58. &:disabled {
  59. background: #d9e1e8;
  60. }
  61. }
  62. .emojione {
  63. display: inline-block;
  64. font-size: inherit;
  65. vertical-align: middle;
  66. margin: -.2ex .15em .2ex;
  67. width: 16px;
  68. height: 16px;
  69. img {
  70. width: auto;
  71. }
  72. }
  73. .status__content, .reply-indicator__content {
  74. font-size: 15px;
  75. line-height: 20px;
  76. word-wrap: break-word;
  77. font-weight: 300;
  78. overflow: hidden;
  79. white-space: pre-wrap;
  80. .emojione {
  81. width: 18px;
  82. height: 18px;
  83. }
  84. p {
  85. margin-bottom: 20px;
  86. &:last-child {
  87. margin-bottom: 0;
  88. }
  89. }
  90. a {
  91. color: #d9e1e8;
  92. text-decoration: none;
  93. &:hover {
  94. text-decoration: underline;
  95. }
  96. &.mention {
  97. &:hover {
  98. text-decoration: none;
  99. span {
  100. text-decoration: underline;
  101. }
  102. }
  103. }
  104. }
  105. }
  106. .detailed-status {
  107. .status__content {
  108. font-size: 19px;
  109. line-height: 24px;
  110. .emojione {
  111. width: 22px;
  112. height: 22px;
  113. }
  114. }
  115. }
  116. .reply-indicator__content {
  117. color: #282c37;
  118. font-size: 14px;
  119. a {
  120. color: #535b72;
  121. }
  122. }
  123. @media screen and (max-height: 800px) {
  124. .account__header__avatar, .account__header__content {
  125. display: none;
  126. }
  127. }
  128. .account__header__content {
  129. word-wrap: break-word;
  130. font-weight: 300;
  131. overflow: hidden;
  132. p {
  133. margin-bottom: 20px;
  134. &:last-child {
  135. margin-bottom: 0;
  136. }
  137. }
  138. a {
  139. color: inherit;
  140. text-decoration: underline;
  141. &:hover {
  142. text-decoration: none;
  143. }
  144. }
  145. }
  146. .account__header__display-name {
  147. .emojione {
  148. width: 25px;
  149. height: 25px;
  150. }
  151. }
  152. .status__display-name, .status__relative-time, .detailed-status__display-name, .detailed-status__datetime, .account__display-name {
  153. text-decoration: none;
  154. }
  155. .status__display-name, .account__display-name {
  156. strong {
  157. color: #fff;
  158. }
  159. &.muted {
  160. .emojione {
  161. opacity: 0.5;
  162. }
  163. }
  164. }
  165. .status__display-name, .reply-indicator__display-name, .detailed-status__display-name, .account__display-name {
  166. &:hover {
  167. strong {
  168. text-decoration: underline;
  169. }
  170. }
  171. }
  172. .account__display-name {
  173. strong {
  174. display: block;
  175. }
  176. }
  177. .detailed-status__display-name {
  178. color: #d9e1e8;
  179. line-height: 24px;
  180. strong, span {
  181. display: block;
  182. }
  183. strong {
  184. font-size: 16px;
  185. color: #fff;
  186. }
  187. }
  188. .muted {
  189. .status__content p, .status__content a {
  190. color: #616b86;
  191. }
  192. .status__display-name strong {
  193. color: #616b86;
  194. }
  195. .status__avatar {
  196. opacity: 0.5;
  197. }
  198. }
  199. .notification__display-name {
  200. color: inherit;
  201. text-decoration: none;
  202. &:hover {
  203. color: #fff;
  204. text-decoration: underline;
  205. }
  206. }
  207. .status__relative-time, .detailed-status__datetime {
  208. &:hover {
  209. text-decoration: underline;
  210. }
  211. }
  212. .transparent-background {
  213. background: image-url('void.png');
  214. }
  215. .dropdown {
  216. display: inline-block;
  217. }
  218. .dropdown__content {
  219. display: none;
  220. position: absolute;
  221. }
  222. .dropdown--active .dropdown__content {
  223. display: block;
  224. z-index: 9999;
  225. &:before {
  226. content: "";
  227. display: block;
  228. position: absolute;
  229. width: 0;
  230. height: 0;
  231. border-style: solid;
  232. border-width: 0 4.5px 7.8px 4.5px;
  233. border-color: transparent transparent #d9e1e8 transparent;
  234. top: -7px;
  235. left: 8px;
  236. }
  237. ul {
  238. list-style: none;
  239. background: #d9e1e8;
  240. padding: 4px 0;
  241. border-radius: 4px;
  242. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  243. min-width: 100px;
  244. }
  245. a {
  246. font-size: 13px;
  247. display: block;
  248. padding: 6px 16px;
  249. width: 100px;
  250. text-decoration: none;
  251. background: #d9e1e8;
  252. color: #282c37;
  253. &:hover {
  254. background: #2b90d9;
  255. color: #d9e1e8;
  256. }
  257. }
  258. }
  259. .static-content {
  260. padding: 10px;
  261. padding-top: 20px;
  262. color: #616b86;
  263. h1 {
  264. font-size: 16px;
  265. font-weight: 500;
  266. margin-bottom: 40px;
  267. text-align: center;
  268. }
  269. p {
  270. font-size: 13px;
  271. margin-bottom: 20px;
  272. }
  273. }
  274. .columns-area {
  275. margin: 10px;
  276. margin-left: 0;
  277. flex-direction: row;
  278. }
  279. .column {
  280. width: 330px;
  281. position: relative;
  282. }
  283. .drawer {
  284. width: 280px;
  285. }
  286. .column, .drawer {
  287. margin-left: 10px;
  288. flex: 0 0 auto;
  289. overflow: hidden;
  290. }
  291. @media screen and (max-width: 1024px) {
  292. .column, .drawer {
  293. width: 100%;
  294. margin: 0;
  295. flex: 1 1 100%;
  296. }
  297. .columns-area {
  298. margin: 10px;
  299. flex-direction: column;
  300. }
  301. }
  302. .tabs-bar {
  303. display: flex;
  304. }
  305. @media screen and (min-width: 1025px) {
  306. .tabs-bar {
  307. display: none;
  308. }
  309. }
  310. .react-autosuggest__container {
  311. position: relative;
  312. }
  313. .react-autosuggest__suggestions-container {
  314. position: absolute;
  315. top: 100%;
  316. width: 100%;
  317. z-index: 99;
  318. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  319. }
  320. .react-autosuggest__section-title {
  321. background: #9baec8;
  322. padding: 4px 10px;
  323. font-weight: 500;
  324. cursor: default;
  325. color: #282c37;
  326. text-transform: uppercase;
  327. font-size: 11px;
  328. }
  329. .react-autosuggest__suggestions-list {
  330. background: #d9e1e8;
  331. color: #282c37;
  332. font-size: 14px;
  333. }
  334. .react-autosuggest__suggestion {
  335. padding: 10px;
  336. cursor: pointer;
  337. }
  338. .react-autosuggest__suggestion--focused {
  339. background: #2b90d9;
  340. color: #fff;
  341. }
  342. .scrollable {
  343. overflow-y: scroll;
  344. overflow-x: hidden;
  345. flex: 1 1 auto;
  346. -webkit-overflow-scrolling: touch;
  347. }
  348. .column-back-button {
  349. &:hover {
  350. text-decoration: underline;
  351. }
  352. }
  353. .react-toggle {
  354. display: inline-block;
  355. position: relative;
  356. cursor: pointer;
  357. background-color: transparent;
  358. border: 0;
  359. padding: 0;
  360. user-select: none;
  361. -webkit-tap-highlight-color: rgba(0,0,0,0);
  362. -webkit-tap-highlight-color: transparent;
  363. }
  364. .react-toggle-screenreader-only {
  365. border: 0;
  366. clip: rect(0 0 0 0);
  367. height: 1px;
  368. margin: -1px;
  369. overflow: hidden;
  370. padding: 0;
  371. position: absolute;
  372. width: 1px;
  373. }
  374. .react-toggle--disabled {
  375. cursor: not-allowed;
  376. opacity: 0.5;
  377. transition: opacity 0.25s;
  378. }
  379. .react-toggle-track {
  380. width: 50px;
  381. height: 24px;
  382. padding: 0;
  383. border-radius: 30px;
  384. background-color: #282c37;
  385. transition: all 0.2s ease;
  386. }
  387. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  388. background-color: darken(#282c37, 10%);
  389. }
  390. .react-toggle--checked .react-toggle-track {
  391. background-color: #2b90d9;
  392. }
  393. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  394. background-color: lighten(#2b90d9, 10%);
  395. }
  396. .react-toggle-track-check {
  397. position: absolute;
  398. width: 14px;
  399. height: 10px;
  400. top: 0px;
  401. bottom: 0px;
  402. margin-top: auto;
  403. margin-bottom: auto;
  404. line-height: 0;
  405. left: 8px;
  406. opacity: 0;
  407. transition: opacity 0.25s ease;
  408. }
  409. .react-toggle--checked .react-toggle-track-check {
  410. opacity: 1;
  411. transition: opacity 0.25s ease;
  412. }
  413. .react-toggle-track-x {
  414. position: absolute;
  415. width: 10px;
  416. height: 10px;
  417. top: 0px;
  418. bottom: 0px;
  419. margin-top: auto;
  420. margin-bottom: auto;
  421. line-height: 0;
  422. right: 10px;
  423. opacity: 1;
  424. transition: opacity 0.25s ease;
  425. }
  426. .react-toggle--checked .react-toggle-track-x {
  427. opacity: 0;
  428. }
  429. .react-toggle-thumb {
  430. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  431. position: absolute;
  432. top: 1px;
  433. left: 1px;
  434. width: 22px;
  435. height: 22px;
  436. border: 1px solid #282c37;
  437. border-radius: 50%;
  438. background-color: #FAFAFA;
  439. box-sizing: border-box;
  440. transition: all 0.25s ease;
  441. }
  442. .react-toggle--checked .react-toggle-thumb {
  443. left: 27px;
  444. border-color: #2b90d9;
  445. }
  446. .column-link {
  447. background: #373b4a;
  448. &:hover {
  449. background: lighten(#373b4a, 5%);
  450. }
  451. }
  452. .autosuggest-textarea {
  453. position: relative;
  454. }
  455. .autosuggest-textarea__textarea {
  456. display: block;
  457. box-sizing: border-box;
  458. width: 100%;
  459. height: 100px;
  460. resize: none;
  461. border: none;
  462. color: #282c37;
  463. padding: 10px;
  464. font-family: 'Roboto';
  465. font-size: 14px;
  466. margin: 0;
  467. resize: vertical;
  468. }
  469. .autosuggest-textarea__suggestions {
  470. position: absolute;
  471. top: 100%;
  472. width: 100%;
  473. z-index: 99;
  474. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  475. background: #d9e1e8;
  476. color: #282c37;
  477. font-size: 14px;
  478. }
  479. .autosuggest-textarea__suggestions__item {
  480. padding: 10px;
  481. cursor: pointer;
  482. &:hover {
  483. background: darken(#d9e1e8, 10%);
  484. }
  485. &.selected {
  486. background: #2b90d9;
  487. color: #fff;
  488. }
  489. }
  490. .getting-started__illustration {
  491. width: 330px;
  492. height: 235px;
  493. background: image-url('mastodon-getting-started.png') no-repeat 0 0;
  494. position: absolute;
  495. pointer-events: none;
  496. bottom: 0;
  497. left: 0;
  498. }