where i deviate from standard mastodon assets
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.

containers.scss 15KB

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