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.

693 lines
13 KiB

  1. .container-alt {
  2. width: 700px;
  3. margin: 0 auto;
  4. margin-top: 40px;
  5. @media screen and (max-width: 740px) {
  6. width: 100%;
  7. margin: 0;
  8. }
  9. }
  10. .logo-container {
  11. margin: 100px auto;
  12. margin-bottom: 50px;
  13. @media screen and (max-width: 400px) {
  14. margin: 30px auto;
  15. margin-bottom: 20px;
  16. }
  17. h1 {
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. img {
  22. height: 42px;
  23. margin-right: 10px;
  24. }
  25. a {
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. color: $primary-text-color;
  30. text-decoration: none;
  31. outline: 0;
  32. padding: 12px 16px;
  33. line-height: 32px;
  34. font-family: 'mastodon-font-display', sans-serif;
  35. font-weight: 500;
  36. font-size: 14px;
  37. }
  38. }
  39. }
  40. .compose-standalone {
  41. .compose-form {
  42. width: 400px;
  43. margin: 0 auto;
  44. padding: 20px 0;
  45. margin-top: 40px;
  46. box-sizing: border-box;
  47. @media screen and (max-width: 400px) {
  48. width: 100%;
  49. margin-top: 0;
  50. padding: 20px;
  51. }
  52. }
  53. }
  54. .media-standalone__body {
  55. overflow: hidden;
  56. }
  57. .account-header {
  58. width: 400px;
  59. margin: 0 auto;
  60. display: flex;
  61. font-size: 13px;
  62. line-height: 18px;
  63. box-sizing: border-box;
  64. padding: 20px 0;
  65. padding-bottom: 0;
  66. margin-bottom: -30px;
  67. margin-top: 40px;
  68. @media screen and (max-width: 440px) {
  69. width: 100%;
  70. margin: 0;
  71. margin-bottom: 10px;
  72. padding: 20px;
  73. padding-bottom: 0;
  74. }
  75. .avatar {
  76. width: 40px;
  77. height: 40px;
  78. margin-right: 8px;
  79. img {
  80. width: 100%;
  81. height: 100%;
  82. display: block;
  83. margin: 0;
  84. border-radius: 4px;
  85. }
  86. }
  87. .name {
  88. flex: 1 1 auto;
  89. color: $secondary-text-color;
  90. width: calc(100% - 88px);
  91. .username {
  92. display: block;
  93. font-weight: 500;
  94. text-overflow: ellipsis;
  95. overflow: hidden;
  96. }
  97. }
  98. .logout-link {
  99. display: block;
  100. font-size: 32px;
  101. line-height: 40px;
  102. margin-left: 8px;
  103. }
  104. }
  105. .public-layout {
  106. @media screen and (max-width: $no-gap-breakpoint) {
  107. padding-top: 48px;
  108. }
  109. .container {
  110. max-width: 960px;
  111. @media screen and (max-width: $no-gap-breakpoint) {
  112. padding: 0;
  113. }
  114. }
  115. .header {
  116. background: lighten($ui-base-color, 8%);
  117. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  118. border-radius: 4px;
  119. height: 48px;
  120. margin: 10px 0;
  121. display: flex;
  122. align-items: stretch;
  123. justify-content: center;
  124. flex-wrap: nowrap;
  125. overflow: hidden;
  126. @media screen and (max-width: $no-gap-breakpoint) {
  127. position: fixed;
  128. width: 100%;
  129. top: 0;
  130. left: 0;
  131. margin: 0;
  132. border-radius: 0;
  133. box-shadow: none;
  134. z-index: 110;
  135. }
  136. & > div {
  137. flex: 1 1 33.3%;
  138. min-height: 1px;
  139. }
  140. .nav-left {
  141. display: flex;
  142. align-items: stretch;
  143. justify-content: flex-start;
  144. flex-wrap: nowrap;
  145. }
  146. .nav-center {
  147. display: flex;
  148. align-items: stretch;
  149. justify-content: center;
  150. flex-wrap: nowrap;
  151. }
  152. .nav-right {
  153. display: flex;
  154. align-items: stretch;
  155. justify-content: flex-end;
  156. flex-wrap: nowrap;
  157. }
  158. .brand {
  159. display: block;
  160. padding: 15px;
  161. img {
  162. display: block;
  163. height: 18px;
  164. width: auto;
  165. position: relative;
  166. bottom: -2px;
  167. @media screen and (max-width: $no-gap-breakpoint) {
  168. height: 20px;
  169. }
  170. }
  171. &:hover,
  172. &:focus,
  173. &:active {
  174. background: lighten($ui-base-color, 12%);
  175. }
  176. }
  177. .nav-link {
  178. display: flex;
  179. align-items: center;
  180. padding: 0 1rem;
  181. font-size: 12px;
  182. font-weight: 500;
  183. text-decoration: none;
  184. color: $darker-text-color;
  185. white-space: nowrap;
  186. text-align: center;
  187. &:hover,
  188. &:focus,
  189. &:active {
  190. text-decoration: underline;
  191. color: $primary-text-color;
  192. }
  193. }
  194. .nav-button {
  195. background: lighten($ui-base-color, 16%);
  196. margin: 8px;
  197. margin-left: 0;
  198. border-radius: 4px;
  199. &:hover,
  200. &:focus,
  201. &:active {
  202. text-decoration: none;
  203. background: lighten($ui-base-color, 20%);
  204. }
  205. }
  206. }
  207. $no-columns-breakpoint: 600px;
  208. .grid {
  209. display: grid;
  210. grid-gap: 10px;
  211. grid-template-columns: minmax(300px, 3fr) minmax(298px, 1fr);
  212. grid-auto-columns: 25%;
  213. grid-auto-rows: max-content;
  214. .column-0 {
  215. grid-row: 1;
  216. grid-column: 1;
  217. }
  218. .column-1 {
  219. grid-row: 1;
  220. grid-column: 2;
  221. }
  222. @media screen and (max-width: $no-columns-breakpoint) {
  223. grid-template-columns: 100%;
  224. grid-gap: 0;
  225. .column-1 {
  226. display: none;
  227. }
  228. }
  229. }
  230. .public-account-header {
  231. overflow: hidden;
  232. margin-bottom: 10px;
  233. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  234. &__image {
  235. border-radius: 4px 4px 0 0;
  236. overflow: hidden;
  237. height: 300px;
  238. position: relative;
  239. background: darken($ui-base-color, 12%);
  240. &::after {
  241. content: "";
  242. display: block;
  243. position: absolute;
  244. width: 100%;
  245. height: 100%;
  246. box-shadow: inset 0 -1px 1px 1px rgba($base-shadow-color, 0.15);
  247. top: 0;
  248. left: 0;
  249. }
  250. img {
  251. object-fit: cover;
  252. display: block;
  253. width: 100%;
  254. height: 100%;
  255. margin: 0;
  256. border-radius: 4px 4px 0 0;
  257. }
  258. @media screen and (max-width: 600px) {
  259. height: 200px;
  260. }
  261. }
  262. @media screen and (max-width: $no-gap-breakpoint) {
  263. margin-bottom: 0;
  264. box-shadow: none;
  265. &__image::after {
  266. display: none;
  267. }
  268. &__image,
  269. &__image img {
  270. border-radius: 0;
  271. }
  272. }
  273. &__bar {
  274. position: relative;
  275. margin-top: -80px;
  276. display: flex;
  277. justify-content: flex-start;
  278. &::before {
  279. content: "";
  280. display: block;
  281. background: lighten($ui-base-color, 4%);
  282. position: absolute;
  283. bottom: 0;
  284. left: 0;
  285. right: 0;
  286. height: 60px;
  287. border-radius: 0 0 4px 4px;
  288. z-index: -1;
  289. }
  290. .avatar {
  291. display: block;
  292. width: 120px;
  293. height: 120px;
  294. padding-left: 20px - 4px;
  295. flex: 0 0 auto;
  296. img {
  297. display: block;
  298. width: 100%;
  299. height: 100%;
  300. margin: 0;
  301. border-radius: 50%;
  302. border: 4px solid lighten($ui-base-color, 4%);
  303. background: darken($ui-base-color, 8%);
  304. }
  305. }
  306. @media screen and (max-width: 600px) {
  307. margin-top: 0;
  308. background: lighten($ui-base-color, 4%);
  309. border-radius: 0 0 4px 4px;
  310. padding: 5px;
  311. &::before {
  312. display: none;
  313. }
  314. .avatar {
  315. width: 48px;
  316. height: 48px;
  317. padding: 7px 0;
  318. padding-left: 10px;
  319. img {
  320. border: 0;
  321. border-radius: 4px;
  322. }
  323. @media screen and (max-width: 360px) {
  324. display: none;
  325. }
  326. }
  327. }
  328. @media screen and (max-width: $no-gap-breakpoint) {
  329. border-radius: 0;
  330. }
  331. @media screen and (max-width: $no-columns-breakpoint) {
  332. flex-wrap: wrap;
  333. }
  334. }
  335. &__tabs {
  336. flex: 1 1 auto;
  337. margin-left: 20px;
  338. &__name {
  339. padding-top: 20px;
  340. padding-bottom: 8px;
  341. h1 {
  342. font-size: 20px;
  343. line-height: 18px * 1.5;
  344. color: $primary-text-color;
  345. font-weight: 500;
  346. overflow: hidden;
  347. white-space: nowrap;
  348. text-overflow: ellipsis;
  349. text-shadow: 1px 1px 1px $base-shadow-color;
  350. small {
  351. display: block;
  352. font-size: 14px;
  353. color: $primary-text-color;
  354. font-weight: 400;
  355. overflow: hidden;
  356. text-overflow: ellipsis;
  357. }
  358. }
  359. }
  360. @media screen and (max-width: 600px) {
  361. margin-left: 15px;
  362. display: flex;
  363. justify-content: space-between;
  364. align-items: center;
  365. &__name {
  366. padding-top: 0;
  367. padding-bottom: 0;
  368. h1 {
  369. font-size: 16px;
  370. line-height: 24px;
  371. text-shadow: none;
  372. small {
  373. color: $darker-text-color;
  374. }
  375. }
  376. }
  377. }
  378. &__tabs {
  379. display: flex;
  380. justify-content: flex-start;
  381. align-items: stretch;
  382. height: 58px;
  383. .details-counters {
  384. display: flex;
  385. flex-direction: row;
  386. min-width: 300px;
  387. }
  388. @media screen and (max-width: $no-columns-breakpoint) {
  389. .details-counters {
  390. display: none;
  391. }
  392. }
  393. .counter {
  394. width: 33.3%;
  395. box-sizing: border-box;
  396. flex: 0 0 auto;
  397. color: $darker-text-color;
  398. padding: 10px;
  399. border-right: 1px solid lighten($ui-base-color, 4%);
  400. cursor: default;
  401. text-align: center;
  402. position: relative;
  403. a {
  404. display: block;
  405. }
  406. &:last-child {
  407. border-right: 0;
  408. }
  409. &::after {
  410. display: block;
  411. content: "";
  412. position: absolute;
  413. bottom: 0;
  414. left: 0;
  415. width: 100%;
  416. border-bottom: 4px solid $ui-primary-color;
  417. opacity: 0.5;
  418. transition: all 400ms ease;
  419. }
  420. &.active {
  421. &::after {
  422. border-bottom: 4px solid $highlight-text-color;
  423. opacity: 1;
  424. }
  425. }
  426. &:hover {
  427. &::after {
  428. opacity: 1;
  429. transition-duration: 100ms;
  430. }
  431. }
  432. a {
  433. text-decoration: none;
  434. color: inherit;
  435. }
  436. .counter-label {
  437. font-size: 12px;
  438. display: block;
  439. }
  440. .counter-number {
  441. font-weight: 500;
  442. font-size: 18px;
  443. margin-bottom: 5px;
  444. color: $primary-text-color;
  445. font-family: 'mastodon-font-display', sans-serif;
  446. }
  447. }
  448. .spacer {
  449. flex: 1 1 auto;
  450. height: 1px;
  451. }
  452. &__buttons {
  453. padding: 7px 8px;
  454. }
  455. }
  456. }
  457. &__extra {
  458. display: none;
  459. margin-top: 4px;
  460. .public-account-bio {
  461. border-radius: 0;
  462. box-shadow: none;
  463. background: transparent;
  464. margin: 0 -5px;
  465. .account__header__fields {
  466. border-top: 1px solid lighten($ui-base-color, 12%);
  467. }
  468. .roles {
  469. display: none;
  470. }
  471. }
  472. &__links {
  473. margin-top: -15px;
  474. font-size: 14px;
  475. color: $darker-text-color;
  476. a {
  477. display: inline-block;
  478. color: $darker-text-color;
  479. text-decoration: none;
  480. padding: 15px;
  481. strong {
  482. font-weight: 700;
  483. color: $primary-text-color;
  484. }
  485. }
  486. }
  487. @media screen and (max-width: $no-columns-breakpoint) {
  488. display: block;
  489. flex: 100%;
  490. }
  491. }
  492. }
  493. .account__section-headline {
  494. border-radius: 4px 4px 0 0;
  495. @media screen and (max-width: $no-gap-breakpoint) {
  496. border-radius: 0;
  497. }
  498. }
  499. .detailed-status__meta {
  500. margin-top: 25px;
  501. }
  502. .public-account-bio {
  503. background: lighten($ui-base-color, 8%);
  504. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  505. border-radius: 4px;
  506. overflow: hidden;
  507. margin-bottom: 10px;
  508. @media screen and (max-width: $no-gap-breakpoint) {
  509. box-shadow: none;
  510. margin-bottom: 0;
  511. border-radius: 0;
  512. }
  513. .account__header__fields {
  514. margin: 0;
  515. border-top: 0;
  516. a {
  517. color: lighten($ui-highlight-color, 8%);
  518. }
  519. }
  520. .account__header__content {
  521. padding: 20px;
  522. padding-bottom: 0;
  523. color: $primary-text-color;
  524. }
  525. &__extra,
  526. .roles {
  527. padding: 20px;
  528. font-size: 14px;
  529. color: $darker-text-color;
  530. }
  531. .roles {
  532. padding-bottom: 0;
  533. }
  534. }
  535. .static-icon-button {
  536. color: $action-button-color;
  537. font-size: 18px;
  538. & > span {
  539. font-size: 14px;
  540. font-weight: 500;
  541. }
  542. }
  543. .card-grid {
  544. display: flex;
  545. flex-wrap: wrap;
  546. min-width: 100%;
  547. margin: 0 -5px;
  548. & > div {
  549. box-sizing: border-box;
  550. flex: 1 0 auto;
  551. width: 300px;
  552. padding: 0 5px;
  553. margin-bottom: 10px;
  554. max-width: 33.333%;
  555. @media screen and (max-width: 900px) {
  556. max-width: 50%;
  557. }
  558. @media screen and (max-width: 600px) {
  559. max-width: 100%;
  560. }
  561. }
  562. @media screen and (max-width: $no-gap-breakpoint) {
  563. margin: 0;
  564. border-top: 1px solid lighten($ui-base-color, 8%);
  565. & > div {
  566. width: 100%;
  567. padding: 0;
  568. margin-bottom: 0;
  569. border-bottom: 1px solid lighten($ui-base-color, 8%);
  570. &:last-child {
  571. border-bottom: 0;
  572. }
  573. .card__bar {
  574. background: $ui-base-color;
  575. &:hover,
  576. &:active,
  577. &:focus {
  578. background: lighten($ui-base-color, 4%);
  579. }
  580. }
  581. }
  582. }
  583. }
  584. }