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.

524 lines
7.9 KiB

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