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.

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