components.scss 9.0 KB

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