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

621 lines
9.5 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: 480px) {
  124. .account__header__avatar, .account__header .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. flex-direction: row;
  276. }
  277. @media screen and (min-width: 360px) {
  278. .columns-area {
  279. margin: 10px;
  280. }
  281. }
  282. .column {
  283. width: 330px;
  284. position: relative;
  285. }
  286. .drawer {
  287. width: 280px;
  288. }
  289. .column, .drawer {
  290. margin-left: 5px;
  291. margin-right: 5px;
  292. flex: 0 0 auto;
  293. overflow: hidden;
  294. }
  295. .column:first-child, .drawer:first-child {
  296. margin-left: 0;
  297. }
  298. .column:last-child, .drawer:last-child {
  299. margin-right: 0;
  300. }
  301. @media screen and (max-width: 1024px) {
  302. .column, .drawer {
  303. width: 100%;
  304. margin: 0;
  305. flex: 1 1 100%;
  306. }
  307. .columns-area {
  308. flex-direction: column;
  309. }
  310. }
  311. .tabs-bar {
  312. display: flex;
  313. }
  314. @media screen and (min-width: 360px) {
  315. .tabs-bar {
  316. margin: 10px;
  317. margin-bottom: 0;
  318. }
  319. }
  320. @media screen and (min-width: 1025px) {
  321. .tabs-bar {
  322. display: none;
  323. }
  324. }
  325. .react-autosuggest__container {
  326. position: relative;
  327. }
  328. .react-autosuggest__suggestions-container {
  329. position: absolute;
  330. top: 100%;
  331. width: 100%;
  332. z-index: 99;
  333. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  334. }
  335. .react-autosuggest__section-title {
  336. background: #9baec8;
  337. padding: 4px 10px;
  338. font-weight: 500;
  339. cursor: default;
  340. color: #282c37;
  341. text-transform: uppercase;
  342. font-size: 11px;
  343. }
  344. .react-autosuggest__suggestions-list {
  345. background: #d9e1e8;
  346. color: #282c37;
  347. font-size: 14px;
  348. }
  349. .react-autosuggest__suggestion {
  350. padding: 10px;
  351. cursor: pointer;
  352. }
  353. .react-autosuggest__suggestion--focused {
  354. background: #2b90d9;
  355. color: #fff;
  356. }
  357. .scrollable {
  358. overflow-y: scroll;
  359. overflow-x: hidden;
  360. flex: 1 1 auto;
  361. -webkit-overflow-scrolling: touch;
  362. &.optionally-scrollable {
  363. overflow-y: auto;
  364. }
  365. }
  366. .column-back-button {
  367. &:hover {
  368. text-decoration: underline;
  369. }
  370. }
  371. .react-toggle {
  372. display: inline-block;
  373. position: relative;
  374. cursor: pointer;
  375. background-color: transparent;
  376. border: 0;
  377. padding: 0;
  378. user-select: none;
  379. -webkit-tap-highlight-color: rgba(0,0,0,0);
  380. -webkit-tap-highlight-color: transparent;
  381. }
  382. .react-toggle-screenreader-only {
  383. border: 0;
  384. clip: rect(0 0 0 0);
  385. height: 1px;
  386. margin: -1px;
  387. overflow: hidden;
  388. padding: 0;
  389. position: absolute;
  390. width: 1px;
  391. }
  392. .react-toggle--disabled {
  393. cursor: not-allowed;
  394. opacity: 0.5;
  395. transition: opacity 0.25s;
  396. }
  397. .react-toggle-track {
  398. width: 50px;
  399. height: 24px;
  400. padding: 0;
  401. border-radius: 30px;
  402. background-color: #282c37;
  403. transition: all 0.2s ease;
  404. }
  405. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  406. background-color: darken(#282c37, 10%);
  407. }
  408. .react-toggle--checked .react-toggle-track {
  409. background-color: #2b90d9;
  410. }
  411. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  412. background-color: lighten(#2b90d9, 10%);
  413. }
  414. .react-toggle-track-check {
  415. position: absolute;
  416. width: 14px;
  417. height: 10px;
  418. top: 0px;
  419. bottom: 0px;
  420. margin-top: auto;
  421. margin-bottom: auto;
  422. line-height: 0;
  423. left: 8px;
  424. opacity: 0;
  425. transition: opacity 0.25s ease;
  426. }
  427. .react-toggle--checked .react-toggle-track-check {
  428. opacity: 1;
  429. transition: opacity 0.25s ease;
  430. }
  431. .react-toggle-track-x {
  432. position: absolute;
  433. width: 10px;
  434. height: 10px;
  435. top: 0px;
  436. bottom: 0px;
  437. margin-top: auto;
  438. margin-bottom: auto;
  439. line-height: 0;
  440. right: 10px;
  441. opacity: 1;
  442. transition: opacity 0.25s ease;
  443. }
  444. .react-toggle--checked .react-toggle-track-x {
  445. opacity: 0;
  446. }
  447. .react-toggle-thumb {
  448. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  449. position: absolute;
  450. top: 1px;
  451. left: 1px;
  452. width: 22px;
  453. height: 22px;
  454. border: 1px solid #282c37;
  455. border-radius: 50%;
  456. background-color: #FAFAFA;
  457. box-sizing: border-box;
  458. transition: all 0.25s ease;
  459. }
  460. .react-toggle--checked .react-toggle-thumb {
  461. left: 27px;
  462. border-color: #2b90d9;
  463. }
  464. .column-link {
  465. background: #373b4a;
  466. &:hover {
  467. background: lighten(#373b4a, 5%);
  468. }
  469. }
  470. .autosuggest-textarea {
  471. position: relative;
  472. }
  473. .autosuggest-textarea__textarea {
  474. display: block;
  475. box-sizing: border-box;
  476. width: 100%;
  477. height: 100px;
  478. resize: none;
  479. color: #282c37;
  480. padding: 7px;
  481. font-family: 'Roboto';
  482. font-size: 14px;
  483. margin: 0;
  484. resize: vertical;
  485. border: 3px dashed transparent;
  486. transition: border-color 0.3s ease;
  487. &.file-drop {
  488. border-color: #aaa;
  489. }
  490. }
  491. .autosuggest-textarea__suggestions {
  492. position: absolute;
  493. top: 100%;
  494. width: 100%;
  495. z-index: 99;
  496. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  497. background: #d9e1e8;
  498. color: #282c37;
  499. font-size: 14px;
  500. }
  501. .autosuggest-textarea__suggestions__item {
  502. padding: 10px;
  503. cursor: pointer;
  504. &:hover {
  505. background: darken(#d9e1e8, 10%);
  506. }
  507. &.selected {
  508. background: #2b90d9;
  509. color: #fff;
  510. }
  511. }
  512. .getting-started {
  513. box-sizing: border-box;
  514. overflow-y: auto;
  515. padding-bottom: 235px;
  516. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  517. height: 100%;
  518. }