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.

682 lines
11 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: inherit;
  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, .detailed-status__application, .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. .drawer__inner {
  290. background: linear-gradient(rgba(69, 75, 94, 1), rgba(69, 75, 94, 0.65));
  291. }
  292. .drawer__header {
  293. flex: 0 0 auto;
  294. font-size: 16px;
  295. background: darken(#454b5e, 5%);
  296. margin-bottom: 10px;
  297. display: flex;
  298. flex-direction: row;
  299. a {
  300. transition: all 100ms ease-in;
  301. &:hover {
  302. background: darken(#454b5e, 10%);
  303. transition: all 200ms ease-out;
  304. }
  305. }
  306. }
  307. .column, .drawer {
  308. margin-left: 5px;
  309. margin-right: 5px;
  310. flex: 0 0 auto;
  311. overflow: hidden;
  312. }
  313. .column:first-child, .drawer:first-child {
  314. margin-left: 0;
  315. }
  316. .column:last-child, .drawer:last-child {
  317. margin-right: 0;
  318. }
  319. @media screen and (max-width: 1024px) {
  320. .column, .drawer {
  321. width: 100%;
  322. margin: 0;
  323. flex: 1 1 100%;
  324. }
  325. .columns-area {
  326. flex-direction: column;
  327. }
  328. }
  329. .tabs-bar {
  330. display: flex;
  331. }
  332. @media screen and (min-width: 360px) {
  333. .tabs-bar {
  334. margin: 10px;
  335. margin-bottom: 0;
  336. }
  337. }
  338. @media screen and (min-width: 1025px) {
  339. .tabs-bar {
  340. display: none;
  341. }
  342. }
  343. .react-autosuggest__container {
  344. position: relative;
  345. }
  346. .react-autosuggest__suggestions-container {
  347. position: absolute;
  348. top: 100%;
  349. width: 100%;
  350. z-index: 99;
  351. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  352. }
  353. .react-autosuggest__section-title {
  354. background: #9baec8;
  355. padding: 4px 10px;
  356. font-weight: 500;
  357. cursor: default;
  358. color: #282c37;
  359. text-transform: uppercase;
  360. font-size: 11px;
  361. }
  362. .react-autosuggest__suggestions-list {
  363. background: #d9e1e8;
  364. color: #282c37;
  365. font-size: 14px;
  366. }
  367. .react-autosuggest__suggestion {
  368. padding: 10px;
  369. cursor: pointer;
  370. }
  371. .react-autosuggest__suggestion--focused {
  372. background: #2b90d9;
  373. color: #fff;
  374. }
  375. .scrollable {
  376. overflow-y: scroll;
  377. overflow-x: hidden;
  378. flex: 1 1 auto;
  379. -webkit-overflow-scrolling: touch;
  380. &.optionally-scrollable {
  381. overflow-y: auto;
  382. }
  383. }
  384. .column-back-button {
  385. &:hover {
  386. text-decoration: underline;
  387. }
  388. }
  389. .react-toggle {
  390. display: inline-block;
  391. position: relative;
  392. cursor: pointer;
  393. background-color: transparent;
  394. border: 0;
  395. padding: 0;
  396. user-select: none;
  397. -webkit-tap-highlight-color: rgba(0,0,0,0);
  398. -webkit-tap-highlight-color: transparent;
  399. }
  400. .react-toggle-screenreader-only {
  401. border: 0;
  402. clip: rect(0 0 0 0);
  403. height: 1px;
  404. margin: -1px;
  405. overflow: hidden;
  406. padding: 0;
  407. position: absolute;
  408. width: 1px;
  409. }
  410. .react-toggle--disabled {
  411. cursor: not-allowed;
  412. opacity: 0.5;
  413. transition: opacity 0.25s;
  414. }
  415. .react-toggle-track {
  416. width: 50px;
  417. height: 24px;
  418. padding: 0;
  419. border-radius: 30px;
  420. background-color: #282c37;
  421. transition: all 0.2s ease;
  422. }
  423. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  424. background-color: darken(#282c37, 10%);
  425. }
  426. .react-toggle--checked .react-toggle-track {
  427. background-color: #2b90d9;
  428. }
  429. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  430. background-color: lighten(#2b90d9, 10%);
  431. }
  432. .react-toggle-track-check {
  433. position: absolute;
  434. width: 14px;
  435. height: 10px;
  436. top: 0px;
  437. bottom: 0px;
  438. margin-top: auto;
  439. margin-bottom: auto;
  440. line-height: 0;
  441. left: 8px;
  442. opacity: 0;
  443. transition: opacity 0.25s ease;
  444. }
  445. .react-toggle--checked .react-toggle-track-check {
  446. opacity: 1;
  447. transition: opacity 0.25s ease;
  448. }
  449. .react-toggle-track-x {
  450. position: absolute;
  451. width: 10px;
  452. height: 10px;
  453. top: 0px;
  454. bottom: 0px;
  455. margin-top: auto;
  456. margin-bottom: auto;
  457. line-height: 0;
  458. right: 10px;
  459. opacity: 1;
  460. transition: opacity 0.25s ease;
  461. }
  462. .react-toggle--checked .react-toggle-track-x {
  463. opacity: 0;
  464. }
  465. .react-toggle-thumb {
  466. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  467. position: absolute;
  468. top: 1px;
  469. left: 1px;
  470. width: 22px;
  471. height: 22px;
  472. border: 1px solid #282c37;
  473. border-radius: 50%;
  474. background-color: #FAFAFA;
  475. box-sizing: border-box;
  476. transition: all 0.25s ease;
  477. }
  478. .react-toggle--checked .react-toggle-thumb {
  479. left: 27px;
  480. border-color: #2b90d9;
  481. }
  482. .column-link {
  483. background: #373b4a;
  484. &:hover {
  485. background: lighten(#373b4a, 5%);
  486. }
  487. }
  488. .autosuggest-textarea {
  489. position: relative;
  490. }
  491. .autosuggest-textarea__textarea {
  492. display: block;
  493. box-sizing: border-box;
  494. width: 100%;
  495. height: 100px;
  496. resize: none;
  497. color: #282c37;
  498. padding: 7px;
  499. font-family: inherit;
  500. font-size: 14px;
  501. margin: 0;
  502. resize: vertical;
  503. border: 3px dashed transparent;
  504. transition: border-color 0.3s ease;
  505. &.file-drop {
  506. border-color: #aaa;
  507. }
  508. }
  509. .autosuggest-textarea__suggestions {
  510. position: absolute;
  511. top: 100%;
  512. width: 100%;
  513. z-index: 99;
  514. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  515. background: #d9e1e8;
  516. color: #282c37;
  517. font-size: 14px;
  518. }
  519. .autosuggest-textarea__suggestions__item {
  520. padding: 10px;
  521. cursor: pointer;
  522. &:hover {
  523. background: darken(#d9e1e8, 10%);
  524. }
  525. &.selected {
  526. background: #2b90d9;
  527. color: #fff;
  528. }
  529. }
  530. .getting-started {
  531. box-sizing: border-box;
  532. overflow-y: auto;
  533. padding-bottom: 235px;
  534. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  535. height: 100%;
  536. }
  537. .dropdown__content.dropdown__left {
  538. transform: translateX(-108px);
  539. &::before {
  540. right: 8px !important;
  541. left: initial !important;
  542. }
  543. }
  544. .setting-text {
  545. color: #9baec8;
  546. background: transparent;
  547. border: none;
  548. border-bottom: 2px solid #9baec8;
  549. &:focus, &:active {
  550. color: #fff;
  551. border-bottom-color: #2b90d9;
  552. }
  553. }
  554. button i.fa-retweet {
  555. height: 19px;
  556. width: 22px;
  557. background: image-url('boost_sprite.png') no-repeat;
  558. background-position: 0 0;
  559. transition: background-position 0.9s steps(11);
  560. transition-duration: 0s;
  561. &::before {
  562. display: none !important;
  563. }
  564. }
  565. button.active i.fa-retweet {
  566. transition-duration: 0.9s;
  567. background-position: 0 -209px;
  568. }