闭社主体 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.

368 lines
5.4 KiB

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. img {
  67. width: auto;
  68. }
  69. }
  70. .status__content, .reply-indicator__content {
  71. font-size: 15px;
  72. line-height: 20px;
  73. word-wrap: break-word;
  74. font-weight: 300;
  75. overflow: hidden;
  76. .emojione {
  77. width: 18px;
  78. height: 18px;
  79. }
  80. p {
  81. margin-bottom: 20px;
  82. &:last-child {
  83. margin-bottom: 0;
  84. }
  85. }
  86. a {
  87. color: #d9e1e8;
  88. text-decoration: none;
  89. &:hover {
  90. text-decoration: underline;
  91. }
  92. &.mention {
  93. &:hover {
  94. text-decoration: none;
  95. span {
  96. text-decoration: underline;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. .detailed-status {
  103. .status__content {
  104. font-size: 19px;
  105. line-height: 24px;
  106. .emojione {
  107. width: 22px;
  108. height: 22px;
  109. }
  110. }
  111. }
  112. .reply-indicator__content {
  113. color: #282c37;
  114. font-size: 14px;
  115. a {
  116. color: #535b72;
  117. }
  118. }
  119. .account__header__content {
  120. word-wrap: break-word;
  121. font-weight: 300;
  122. overflow: hidden;
  123. p {
  124. margin-bottom: 20px;
  125. &:last-child {
  126. margin-bottom: 0;
  127. }
  128. }
  129. a {
  130. color: inherit;
  131. text-decoration: underline;
  132. &:hover {
  133. text-decoration: none;
  134. }
  135. }
  136. }
  137. .status__display-name, .status__relative-time, .detailed-status__display-name, .detailed-status__datetime, .account__display-name {
  138. text-decoration: none;
  139. }
  140. .status__display-name, .account__display-name {
  141. strong {
  142. color: #fff;
  143. }
  144. }
  145. .status__display-name, .reply-indicator__display-name, .detailed-status__display-name, .account__display-name {
  146. &:hover {
  147. strong {
  148. text-decoration: underline;
  149. }
  150. }
  151. }
  152. .account__display-name {
  153. strong {
  154. display: block;
  155. }
  156. }
  157. .detailed-status__display-name {
  158. color: #d9e1e8;
  159. line-height: 24px;
  160. strong, span {
  161. display: block;
  162. }
  163. strong {
  164. font-size: 16px;
  165. color: #fff;
  166. }
  167. }
  168. .status__relative-time, .detailed-status__datetime {
  169. &:hover {
  170. text-decoration: underline;
  171. }
  172. }
  173. .transparent-background {
  174. background: image-url('void.png');
  175. }
  176. .dropdown {
  177. display: inline-block;
  178. }
  179. .dropdown__content {
  180. display: none;
  181. position: absolute;
  182. }
  183. .dropdown--active .dropdown__content {
  184. display: block;
  185. z-index: 9999;
  186. &:before {
  187. content: "";
  188. display: block;
  189. position: absolute;
  190. width: 0;
  191. height: 0;
  192. border-style: solid;
  193. border-width: 0 4.5px 7.8px 4.5px;
  194. border-color: transparent transparent #d9e1e8 transparent;
  195. top: -7px;
  196. left: 8px;
  197. }
  198. ul {
  199. list-style: none;
  200. background: #d9e1e8;
  201. padding: 4px 0;
  202. border-radius: 4px;
  203. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  204. min-width: 100px;
  205. }
  206. a {
  207. font-size: 13px;
  208. display: block;
  209. padding: 6px 16px;
  210. width: 100px;
  211. text-decoration: none;
  212. background: #d9e1e8;
  213. color: #282c37;
  214. &:hover {
  215. background: #2b90d9;
  216. color: #d9e1e8;
  217. }
  218. }
  219. }
  220. .static-content {
  221. padding: 10px;
  222. padding-top: 20px;
  223. color: #616b86;
  224. h1 {
  225. font-size: 16px;
  226. font-weight: 500;
  227. margin-bottom: 40px;
  228. text-align: center;
  229. }
  230. p {
  231. font-size: 13px;
  232. margin-bottom: 20px;
  233. }
  234. }
  235. .columns-area {
  236. margin: 10px;
  237. margin-left: 0;
  238. flex-direction: row;
  239. }
  240. .column {
  241. width: 330px;
  242. }
  243. .drawer {
  244. width: 280px;
  245. }
  246. .column, .drawer {
  247. margin-left: 10px;
  248. flex: 0 0 auto;
  249. overflow: hidden;
  250. }
  251. @media screen and (max-width: 1024px) {
  252. .column, .drawer {
  253. width: 100%;
  254. margin: 0;
  255. flex: 1 1 100%;
  256. }
  257. .columns-area {
  258. margin: 10px;
  259. flex-direction: column;
  260. }
  261. }
  262. .react-autosuggest__container {
  263. position: relative;
  264. }
  265. .react-autosuggest__suggestions-container {
  266. position: absolute;
  267. top: 100%;
  268. width: 100%;
  269. z-index: 99;
  270. box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  271. }
  272. .react-autosuggest__section-title {
  273. background: #9baec8;
  274. padding: 4px 10px;
  275. font-weight: 500;
  276. cursor: default;
  277. color: #282c37;
  278. text-transform: uppercase;
  279. font-size: 11px;
  280. }
  281. .react-autosuggest__suggestions-list {
  282. background: #d9e1e8;
  283. color: #282c37;
  284. font-size: 14px;
  285. }
  286. .react-autosuggest__suggestion {
  287. padding: 10px;
  288. cursor: pointer;
  289. }
  290. .react-autosuggest__suggestion--focused {
  291. background: #2b90d9;
  292. color: #fff;
  293. }
  294. .scrollable {
  295. overflow-y: scroll;
  296. overflow-x: hidden;
  297. flex: 1 1 auto;
  298. -webkit-overflow-scrolling: touch;
  299. }
  300. .column-back-button {
  301. &:hover {
  302. text-decoration: underline;
  303. }
  304. }