gab-social/app/javascript/styles/gabsocial/about.scss

752 lines
12 KiB
SCSS
Raw Normal View History

2019-07-02 08:10:25 +01:00
$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;
color: $darker-text-color;
padding-right: 10px;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 400, 30px);
2019-07-02 08:10:25 +01:00
a {
color: $highlight-text-color;
text-decoration: underline;
}
p,
li {
font-family: $font-sans-serif, sans-serif;
margin-bottom: 12px;
color: $darker-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 400, 30px);
2019-07-02 08:10:25 +01:00
a {
color: $highlight-text-color;
text-decoration: underline;
}
&:last-child {
margin-bottom: 0;
}
}
strong,
em {
font-weight: 700;
color: lighten($darker-text-color, 10%);
}
h1 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(26px, 500, 30px);
2019-07-02 08:10:25 +01:00
small {
font-family: $font-sans-serif, sans-serif;
display: block;
color: lighten($darker-text-color, 10%);
2019-09-17 00:31:30 +01:00
@include text-sizing(18px, 400);
2019-07-02 08:10:25 +01:00
}
}
h2 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(22px, 500, 26px);
2019-07-02 08:10:25 +01:00
}
h3 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(18px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h4 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h5 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(14px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h6 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(12px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
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 {
border: 0;
border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
margin: 20px 0;
2019-09-17 00:31:30 +01:00
@include size(100%, 0);
2019-07-02 08:10:25 +01:00
&.spacer {
height: 1px;
border: 0;
}
}
}
.information-board {
background: darken($ui-base-color, 4%);
padding: 20px 0;
.container-alt {
position: relative;
2019-09-17 00:31:30 +01:00
padding-right: 295px;
2019-07-02 08:10:25 +01:00
}
&__sections {
flex-wrap: wrap;
2019-09-17 00:31:30 +01:00
@include flex(space-between);
2019-07-02 08:10:25 +01:00
}
&__section {
flex: 1 0 0;
font-family: $font-sans-serif, sans-serif;
color: $primary-text-color;
padding: 10px 15px;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 400, 28px, right);
2019-07-02 08:10:25 +01:00
span,
strong {
display: block;
}
span {
&:last-child {
color: $secondary-text-color;
}
}
strong {
font-family: $font-display, sans-serif;
2019-09-17 00:31:30 +01:00
@include text-sizing(32px, 500, 48px);
2019-07-02 08:10:25 +01:00
}
@media screen and (max-width: $column-breakpoint) {
text-align: center;
}
}
.owner {
text-align: center;
.avatar {
margin-bottom: 15px;
2019-09-17 00:31:30 +01:00
@include size(80px);
@include margin-center;
2019-07-02 08:10:25 +01:00
img {
display: block;
2019-09-17 00:31:30 +01:00
@include circle(80px);
2019-07-02 08:10:25 +01:00
}
}
.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;
margin-bottom: 12px;
color: $darker-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 400, 30px);
2019-07-02 08:10:25 +01:00
a {
color: $highlight-text-color;
text-decoration: underline;
}
}
em {
display: inline;
margin: 0;
padding: 0;
background: transparent;
font-family: inherit;
color: lighten($darker-text-color, 10%);
2019-09-17 00:31:30 +01:00
@include text-sizing(inherit, 700, inherit);
2019-07-02 08:10:25 +01:00
}
h1 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(26px, 500, 30px);
2019-07-02 08:10:25 +01:00
small {
font-family: $font-sans-serif, sans-serif;
display: block;
color: lighten($darker-text-color, 10%);
2019-09-17 00:31:30 +01:00
@include text-sizing(18px, 400);
2019-07-02 08:10:25 +01:00
}
}
h2 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(22px, 500, 26px);
2019-07-02 08:10:25 +01:00
}
h3 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(18px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h4 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(16px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h5 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(14px, 500, 24px);
2019-07-02 08:10:25 +01:00
}
h6 {
font-family: $font-display, sans-serif;
margin-bottom: 20px;
color: $secondary-text-color;
2019-09-17 00:31:30 +01:00
@include text-sizing(12px, 24px, 500);
2019-07-02 08:10:25 +01:00
}
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 {
border: 0;
border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
margin: 20px 0;
2019-09-17 00:31:30 +01:00
@include size(100%, 0);
2019-07-02 08:10:25 +01:00
&.spacer {
height: 1px;
border: 0;
}
}
&__information,
&__forms {
padding: 20px;
}
&__call-to-action {
background: darken($ui-base-color, 4%);
border-radius: 4px;
padding: 25px 40px;
overflow: hidden;
box-sizing: border-box;
.row {
width: 100%;
2019-09-17 00:31:30 +01:00
@include flex(space-between, center, row-reverse, nowrap);
2019-07-02 08:10:25 +01:00
}
.row__information-board {
2019-09-17 00:31:30 +01:00
@include flex(flex-end, flex-end);
2019-07-02 08:10:25 +01:00
.information-board__section {
flex: 1 0 auto;
padding: 0 10px;
}
@media screen and (max-width: $no-gap-breakpoint) {
width: 100%;
justify-content: space-between;
}
}
}
&__logo {
margin-right: 20px;
img {
mix-blend-mode: lighten;
2019-09-17 00:31:30 +01:00
@include size(auto, 50px);
2019-07-02 08:10:25 +01:00
}
}
&__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;
}
&__avatar {
background-size: 44px 44px;
2019-09-17 00:31:30 +01:00
@include size(44px);
2019-07-02 08:10:25 +01:00
}
.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,
#gabsocial-timeline {
box-sizing: border-box;
background: $ui-base-color;
border-radius: 4px;
box-shadow: 0 0 6px rgba($black, 0.1);
}
&__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;
}
}
}
@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 {
height: auto;
min-height: 80vh;
@media (min-width:767px) {
height: 100vh;
height: calc(100vh - 180px);
min-height: 580px;
}
.landing-columns {
display: flex;
flex-direction: row;
padding: 40px 0 20px;
&--left {
margin-right: 80px;
}
&--right {
margin-left: auto;
width: 395px;
}
@media (min-width:767px) and (max-width:1024px) {
padding: 40px 20px 20px 20px;
&--left {
2019-09-17 00:31:30 +01:00
margin-: 40px;
2019-07-02 08:10:25 +01:00
}
&--right {
width: 425px;
}
}
@media screen and (max-width:767px) {
height: auto;
padding: 20px 10px 30px;
flex-direction: column;
align-items: center;
&--left {
margin-right: 0;
}
&--right {
width: 100%;
margin-left: 0;
margin-top: 30px;
}
}
}
&__brand {
2019-09-17 00:31:30 +01:00
@include flex(start, center, column);
2019-07-02 08:10:25 +01:00
.brand {
margin-right: auto !important;
}
img {
height: 130px;
@media (min-width:767px) and (max-width:1024px) {
height: 90px;
}
@media screen and (max-width:767px) {
display: none;
}
}
}
.directory {
margin-top: 30px;
background: transparent;
box-shadow: none;
border-radius: 0;
}
.simple_form .user_agreement .label_input > label {
font-weight: 400;
color: $darker-text-color;
}
.simple_form p.lead {
color: $darker-text-color;
margin-bottom: 25px;
2019-09-17 00:31:30 +01:00
@include text-sizing(15px, 400, 20px);
2019-07-02 08:10:25 +01:00
}
&__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;
}
}
&__column-registration {
grid-row: 2;
}
.directory {
margin-top: 10px;
}
}
@media screen and (max-width: $no-gap-breakpoint) {
grid-gap: 0;
.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;
margin-right: 15px;
}
.brand__tagline {
display: block;
width: 470px;
color: $primary-text-color;
margin-top: 25px;
2019-09-17 00:31:30 +01:00
@include text-sizing(30px, 400, 1.4);
2019-07-02 08:10:25 +01:00
@media (min-width:767px) and (max-width:1024px) {
width: 320px;
font-size: 20px;
}
@media screen and (max-width:767px) {
width: 100%;
font-size: 22px;
margin-top: 0;
}
}
@media (min-width:767px) {
.hidden-sm {
display: block;
}
.visible-sm {
display: none;
}
}
@media screen and (max-width:767px) {
.hidden-sm {
display: none !important;
}
.visible-sm {
display: block !important;
}
}