123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906 |
- $maximum-width: 1235px;
- $fluid-breakpoint: $maximum-width + 20px;
- $column-breakpoint: 700px;
- $small-breakpoint: 960px;
- .container {
- box-sizing: border-box;
- max-width: $maximum-width;
- margin: 0 auto;
- position: relative;
- @media screen and (max-width: $fluid-breakpoint) {
- width: 100%;
- padding: 0 10px;
- }
- }
- .rich-formatting {
- font-family: $font-sans-serif, sans-serif;
- font-size: 14px;
- font-weight: 400;
- line-height: 1.7;
- word-wrap: break-word;
- color: $darker-text-color;
- a {
- color: $highlight-text-color;
- text-decoration: underline;
- &:hover,
- &:focus,
- &:active {
- text-decoration: none;
- }
- }
- p,
- li {
- color: $darker-text-color;
- }
- p {
- margin-top: 0;
- margin-bottom: 0.85em;
- &:last-child {
- margin-bottom: 0;
- }
- }
- strong {
- font-weight: 700;
- color: $secondary-text-color;
- }
- em {
- font-style: italic;
- color: $secondary-text-color;
- }
- code {
- font-size: 0.85em;
- background: darken($ui-base-color, 8%);
- border-radius: 4px;
- padding: 0.2em 0.3em;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- font-family: $font-display, sans-serif;
- margin-top: 1.275em;
- margin-bottom: 0.85em;
- font-weight: 500;
- color: $secondary-text-color;
- }
- h1 {
- font-size: 2em;
- }
- h2 {
- font-size: 1.75em;
- }
- h3 {
- font-size: 1.5em;
- }
- h4 {
- font-size: 1.25em;
- }
- h5,
- h6 {
- font-size: 1em;
- }
- ul {
- list-style: disc;
- }
- ol {
- list-style: decimal;
- }
- ul,
- ol {
- margin: 0;
- padding: 0;
- padding-left: 2em;
- margin-bottom: 0.85em;
- &[type='a'] {
- list-style-type: lower-alpha;
- }
- &[type='i'] {
- list-style-type: lower-roman;
- }
- }
- hr {
- width: 100%;
- height: 0;
- border: 0;
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- margin: 1.7em 0;
- &.spacer {
- height: 1px;
- border: 0;
- }
- }
- table {
- width: 100%;
- border-collapse: collapse;
- break-inside: auto;
- margin-top: 24px;
- margin-bottom: 32px;
- thead tr,
- tbody tr {
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- font-size: 1em;
- line-height: 1.625;
- font-weight: 400;
- text-align: left;
- color: $darker-text-color;
- }
- thead tr {
- border-bottom-width: 2px;
- line-height: 1.5;
- font-weight: 500;
- color: $dark-text-color;
- }
- th,
- td {
- padding: 8px;
- align-self: start;
- align-items: start;
- word-break: break-all;
- &.nowrap {
- width: 25%;
- position: relative;
- &::before {
- content: ' ';
- visibility: hidden;
- }
- span {
- position: absolute;
- left: 8px;
- right: 8px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- }
- }
- & > :first-child {
- margin-top: 0;
- }
- }
- .information-board {
- background: darken($ui-base-color, 4%);
- padding: 20px 0;
- .container-alt {
- position: relative;
- padding-right: 280px + 15px;
- }
- &__sections {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- &__section {
- flex: 1 0 0;
- font-family: $font-sans-serif, sans-serif;
- font-size: 16px;
- line-height: 28px;
- color: $primary-text-color;
- text-align: right;
- padding: 10px 15px;
- span,
- strong {
- display: block;
- }
- span {
- &:last-child {
- color: $secondary-text-color;
- }
- }
- strong {
- font-family: $font-display, sans-serif;
- font-weight: 500;
- font-size: 32px;
- line-height: 48px;
- }
- @media screen and (max-width: $column-breakpoint) {
- text-align: center;
- }
- }
- .panel {
- position: absolute;
- width: 280px;
- box-sizing: border-box;
- background: darken($ui-base-color, 8%);
- padding: 20px;
- padding-top: 10px;
- border-radius: 4px 4px 0 0;
- right: 0;
- bottom: -40px;
- .panel-header {
- font-family: $font-display, sans-serif;
- font-size: 14px;
- line-height: 24px;
- font-weight: 500;
- color: $darker-text-color;
- padding-bottom: 5px;
- margin-bottom: 15px;
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- a,
- span {
- font-weight: 400;
- color: darken($darker-text-color, 10%);
- }
- a {
- text-decoration: none;
- }
- }
- }
- .owner {
- text-align: center;
- .avatar {
- width: 80px;
- height: 80px;
- margin: 0 auto;
- margin-bottom: 15px;
- img {
- display: block;
- width: 80px;
- height: 80px;
- border-radius: 48px;
- }
- }
- .name {
- font-size: 14px;
- a {
- display: block;
- color: $primary-text-color;
- text-decoration: none;
- &:hover {
- .display_name {
- text-decoration: underline;
- }
- }
- }
- .username {
- display: block;
- color: $darker-text-color;
- }
- }
- }
- }
- .landing-page {
- p,
- li {
- font-family: $font-sans-serif, sans-serif;
- font-size: 16px;
- font-weight: 400;
- line-height: 30px;
- margin-bottom: 12px;
- color: $darker-text-color;
- a {
- color: $highlight-text-color;
- text-decoration: underline;
- }
- }
- em {
- display: inline;
- margin: 0;
- padding: 0;
- font-weight: 700;
- background: transparent;
- font-family: inherit;
- font-size: inherit;
- line-height: inherit;
- color: lighten($darker-text-color, 10%);
- }
- h1 {
- font-family: $font-display, sans-serif;
- font-size: 26px;
- line-height: 30px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- small {
- font-family: $font-sans-serif, sans-serif;
- display: block;
- font-size: 18px;
- font-weight: 400;
- color: lighten($darker-text-color, 10%);
- }
- }
- h2 {
- font-family: $font-display, sans-serif;
- font-size: 22px;
- line-height: 26px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- }
- h3 {
- font-family: $font-display, sans-serif;
- font-size: 18px;
- line-height: 24px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- }
- h4 {
- font-family: $font-display, sans-serif;
- font-size: 16px;
- line-height: 24px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- }
- h5 {
- font-family: $font-display, sans-serif;
- font-size: 14px;
- line-height: 24px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- }
- h6 {
- font-family: $font-display, sans-serif;
- font-size: 12px;
- line-height: 24px;
- font-weight: 500;
- margin-bottom: 20px;
- color: $secondary-text-color;
- }
- ul,
- ol {
- margin-left: 20px;
- &[type='a'] {
- list-style-type: lower-alpha;
- }
- &[type='i'] {
- list-style-type: lower-roman;
- }
- }
- ul {
- list-style: disc;
- }
- ol {
- list-style: decimal;
- }
- li > ol,
- li > ul {
- margin-top: 6px;
- }
- hr {
- width: 100%;
- height: 0;
- border: 0;
- border-bottom: 1px solid rgba($ui-base-lighter-color, 0.6);
- margin: 20px 0;
- &.spacer {
- height: 1px;
- border: 0;
- }
- }
- &__information,
- &__forms {
- padding: 20px;
- }
- &__call-to-action {
- background: $ui-base-color;
- border-radius: 4px;
- padding: 25px 40px;
- overflow: hidden;
- box-sizing: border-box;
- .row {
- width: 100%;
- display: flex;
- flex-direction: row-reverse;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- }
- .row__information-board {
- display: flex;
- justify-content: flex-end;
- align-items: flex-end;
- .information-board__section {
- flex: 1 0 auto;
- padding: 0 10px;
- }
- @media screen and (max-width: $no-gap-breakpoint) {
- width: 100%;
- justify-content: space-between;
- }
- }
- .row__mascot {
- flex: 1;
- margin: 10px -50px 0 0;
- @media screen and (max-width: $no-gap-breakpoint) {
- display: none;
- }
- }
- }
- &__logo {
- margin-right: 20px;
- img {
- height: 50px;
- width: auto;
- mix-blend-mode: lighten;
- }
- }
- &__information {
- padding: 45px 40px;
- margin-bottom: 10px;
- &:last-child {
- margin-bottom: 0;
- }
- strong {
- font-weight: 500;
- color: lighten($darker-text-color, 10%);
- }
- .account {
- border-bottom: 0;
- padding: 0;
- &__display-name {
- align-items: center;
- display: flex;
- margin-right: 5px;
- }
- div.account__display-name {
- &:hover {
- .display-name strong {
- text-decoration: none;
- }
- }
- .account__avatar {
- cursor: default;
- }
- }
- &__avatar-wrapper {
- margin-left: 0;
- flex: 0 0 auto;
- }
- .display-name {
- font-size: 15px;
- &__account {
- font-size: 14px;
- }
- }
- }
- @media screen and (max-width: $small-breakpoint) {
- .contact {
- margin-top: 30px;
- }
- }
- @media screen and (max-width: $column-breakpoint) {
- padding: 25px 20px;
- }
- }
- &__information,
- &__forms,
- #mastodon-timeline {
- box-sizing: border-box;
- background: $ui-base-color;
- border-radius: 4px;
- box-shadow: 0 0 6px rgba($black, 0.1);
- }
- &__mascot {
- height: 104px;
- position: relative;
- left: -40px;
- bottom: 25px;
- img {
- height: 190px;
- width: auto;
- }
- }
- &__short-description {
- .row {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- margin-bottom: 40px;
- }
- @media screen and (max-width: $column-breakpoint) {
- .row {
- margin-bottom: 20px;
- }
- }
- p a {
- color: $secondary-text-color;
- }
- h1 {
- font-weight: 500;
- color: $primary-text-color;
- margin-bottom: 0;
- small {
- color: $darker-text-color;
- span {
- color: $secondary-text-color;
- }
- }
- }
- p:last-child {
- margin-bottom: 0;
- }
- }
- &__hero {
- margin-bottom: 10px;
- img {
- display: block;
- margin: 0;
- max-width: 100%;
- height: auto;
- border-radius: 4px;
- }
- }
- @media screen and (max-width: 840px) {
- .information-board {
- .container-alt {
- padding-right: 20px;
- }
- .panel {
- position: static;
- margin-top: 20px;
- width: 100%;
- border-radius: 4px;
- .panel-header {
- text-align: center;
- }
- }
- }
- }
- @media screen and (max-width: 675px) {
- .header-wrapper {
- padding-top: 0;
- &.compact {
- padding-bottom: 0;
- }
- &.compact .hero .heading {
- text-align: initial;
- }
- }
- .header .container-alt,
- .features .container-alt {
- display: block;
- }
- }
- .cta {
- margin: 20px;
- }
- }
- .landing {
- margin-bottom: 100px;
- @media screen and (max-width: 738px) {
- margin-bottom: 0;
- }
- &__brand {
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 50px;
- svg {
- fill: $primary-text-color;
- height: 52px;
- }
- @media screen and (max-width: $no-gap-breakpoint) {
- padding: 0;
- margin-bottom: 30px;
- }
- }
- .directory {
- margin-top: 30px;
- background: transparent;
- box-shadow: none;
- border-radius: 0;
- }
- .hero-widget {
- margin-top: 30px;
- margin-bottom: 0;
- h4 {
- padding: 10px;
- text-transform: uppercase;
- font-weight: 700;
- font-size: 13px;
- color: $darker-text-color;
- }
- &__text {
- border-radius: 0;
- padding-bottom: 0;
- }
- &__footer {
- background: $ui-base-color;
- padding: 10px;
- border-radius: 0 0 4px 4px;
- display: flex;
- &__column {
- flex: 1 1 50%;
- overflow-x: hidden;
- }
- }
- .account {
- padding: 10px 0;
- border-bottom: 0;
- .account__display-name {
- display: flex;
- align-items: center;
- }
- }
- &__counters__wrapper {
- display: flex;
- }
- &__counter {
- padding: 10px;
- width: 50%;
- strong {
- font-family: $font-display, sans-serif;
- font-size: 15px;
- font-weight: 700;
- display: block;
- }
- span {
- font-size: 14px;
- color: $darker-text-color;
- }
- }
- }
- .simple_form .user_agreement .label_input > label {
- font-weight: 400;
- color: $darker-text-color;
- }
- .simple_form p.lead {
- color: $darker-text-color;
- font-size: 15px;
- line-height: 20px;
- font-weight: 400;
- margin-bottom: 25px;
- }
- &__grid {
- max-width: 960px;
- margin: 0 auto;
- display: grid;
- grid-template-columns: minmax(0, 50%) minmax(0, 50%);
- grid-gap: 30px;
- @media screen and (max-width: 738px) {
- grid-template-columns: minmax(0, 100%);
- grid-gap: 10px;
- &__column-login {
- grid-row: 1;
- display: flex;
- flex-direction: column;
- .box-widget {
- order: 2;
- flex: 0 0 auto;
- }
- .hero-widget {
- margin-top: 0;
- margin-bottom: 10px;
- order: 1;
- flex: 0 0 auto;
- }
- }
- &__column-registration {
- grid-row: 2;
- }
- .directory {
- margin-top: 10px;
- }
- }
- @media screen and (max-width: $no-gap-breakpoint) {
- grid-gap: 0;
- .hero-widget {
- display: block;
- margin-bottom: 0;
- box-shadow: none;
- &__img,
- &__img img,
- &__footer {
- border-radius: 0;
- }
- }
- .hero-widget,
- .box-widget,
- .directory__tag {
- border-bottom: 1px solid lighten($ui-base-color, 8%);
- }
- .directory {
- margin-top: 0;
- &__tag {
- margin-bottom: 0;
- & > a,
- & > div {
- border-radius: 0;
- box-shadow: none;
- }
- &:last-child {
- border-bottom: 0;
- }
- }
- }
- }
- }
- }
- .brand {
- position: relative;
- text-decoration: none;
- }
- .brand__tagline {
- display: block;
- position: absolute;
- bottom: -10px;
- left: 50px;
- width: 300px;
- color: $ui-primary-color;
- text-decoration: none;
- font-size: 14px;
- @media screen and (max-width: $no-gap-breakpoint) {
- position: static;
- width: auto;
- margin-top: 20px;
- color: $dark-text-color;
- }
- }
- .rules-list {
- background: darken($ui-base-color, 2%);
- border: 1px solid darken($ui-base-color, 8%);
- border-radius: 4px;
- padding: 0.5em 2.5em !important;
- margin-top: 1.85em !important;
- li {
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- color: $dark-text-color;
- padding: 1em;
- &:last-child {
- border-bottom: 0;
- }
- }
- &__text {
- color: $primary-text-color;
- }
- }
|