The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

574 lines
8.7 KiB

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