闭社主体 forked from https://github.com/tootsuite/mastodon
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.

383 lines
5.5 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. .status__relative-time, .detailed-status__datetime {
  182. &:hover {
  183. text-decoration: underline;
  184. }
  185. }
  186. .transparent-background {
  187. background: image-url('void.png');
  188. }
  189. .dropdown {
  190. display: inline-block;
  191. }
  192. .dropdown__content {
  193. display: none;
  194. position: absolute;
  195. }
  196. .dropdown--active .dropdown__content {
  197. display: block;
  198. z-index: 9999;
  199. &:before {
  200. content: "";
  201. display: block;
  202. position: absolute;
  203. width: 0;
  204. height: 0;
  205. border-style: solid;
  206. border-width: 0 4.5px 7.8px 4.5px;
  207. border-color: transparent transparent #d9e1e8 transparent;
  208. top: -7px;
  209. left: 8px;
  210. }
  211. ul {
  212. list-style: none;
  213. background: #d9e1e8;
  214. padding: 4px 0;
  215. border-radius: 4px;
  216. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  217. min-width: 100px;
  218. }
  219. a {
  220. font-size: 13px;
  221. display: block;
  222. padding: 6px 16px;
  223. width: 100px;
  224. text-decoration: none;
  225. background: #d9e1e8;
  226. color: #282c37;
  227. &:hover {
  228. background: #2b90d9;
  229. color: #d9e1e8;
  230. }
  231. }
  232. }
  233. .static-content {
  234. padding: 10px;
  235. padding-top: 20px;
  236. color: #616b86;
  237. h1 {
  238. font-size: 16px;
  239. font-weight: 500;
  240. margin-bottom: 40px;
  241. text-align: center;
  242. }
  243. p {
  244. font-size: 13px;
  245. margin-bottom: 20px;
  246. }
  247. }
  248. .columns-area {
  249. margin: 10px;
  250. margin-left: 0;
  251. flex-direction: row;
  252. }
  253. .column {
  254. width: 330px;
  255. }
  256. .drawer {
  257. width: 280px;
  258. }
  259. .column, .drawer {
  260. margin-left: 10px;
  261. flex: 0 0 auto;
  262. overflow: hidden;
  263. }
  264. @media screen and (max-width: 1024px) {
  265. .column, .drawer {
  266. width: 100%;
  267. margin: 0;
  268. flex: 1 1 100%;
  269. }
  270. .columns-area {
  271. margin: 10px;
  272. flex-direction: column;
  273. }
  274. }
  275. .react-autosuggest__container {
  276. position: relative;
  277. }
  278. .react-autosuggest__suggestions-container {
  279. position: absolute;
  280. top: 100%;
  281. width: 100%;
  282. z-index: 99;
  283. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  284. }
  285. .react-autosuggest__section-title {
  286. background: #9baec8;
  287. padding: 4px 10px;
  288. font-weight: 500;
  289. cursor: default;
  290. color: #282c37;
  291. text-transform: uppercase;
  292. font-size: 11px;
  293. }
  294. .react-autosuggest__suggestions-list {
  295. background: #d9e1e8;
  296. color: #282c37;
  297. font-size: 14px;
  298. }
  299. .react-autosuggest__suggestion {
  300. padding: 10px;
  301. cursor: pointer;
  302. }
  303. .react-autosuggest__suggestion--focused {
  304. background: #2b90d9;
  305. color: #fff;
  306. }
  307. .scrollable {
  308. overflow-y: scroll;
  309. overflow-x: hidden;
  310. flex: 1 1 auto;
  311. -webkit-overflow-scrolling: touch;
  312. }
  313. .column-back-button {
  314. &:hover {
  315. text-decoration: underline;
  316. }
  317. }