Skip to content

Commit

Permalink
#535917 added styles for sxa initializer(basic site)
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-ruslanmatkovskyi committed Jun 16, 2022
1 parent d579dd1 commit 7f292a3
Show file tree
Hide file tree
Showing 10 changed files with 198 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* {
font-family: Roboto;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.component-content {
@include respond-to(all-mobile) {
.row {
padding: 0;
margin: 0;
}
}
}
@include respond-to(all-mobile) {
.row {
margin: 0;
padding: 0;
> * {
padding: 0;
margin: 0;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@import "@sass/abstracts/mixins";

footer {
.rich-text {
font-size: 14px;
color: $text-white;
}

.indent-inner {
padding: 3rem;

@include respond-to(all-mobile) {
padding: 25px 0;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@import "@sass/abstracts/vars/colors";
@import "@sass/abstracts/mixins";

header {
.container {
.row {
display: flex;
flex-direction: column;
padding-top: 10px;

@include respond-to(all-mobile) {
padding-top: 0;
flex-direction: column-reverse;
}
}
}

.title {
padding-left: 50px;

@include respond-to(all-mobile) {
padding-left: 0;
}

.field-title {
@include respond-to(all-mobile) {
text-align: center;
}
a {
font-size: 30px;
font-weight: bold;
border: none;
margin-bottom: 0;
color: $bg-black;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@import "@sass/abstracts/vars";

$hamburger-width: 30px;
$hamburger-height: 18px;
$border-size: 6px;
$hamburger-margin: 1.5rem;

.navigation.navigation-horizontal {
width: 100%;
padding-right: 50px;

@include respond-to(all-mobile) {
padding-right: 0;
}

.component-content {
display: inline-block;

@include respond-to(all-mobile) {
display: none;
}
}

@include respond-to(all-mobile) {
&::before {
content: "";
width: $hamburger-width;
height: $hamburger-height;
margin-right: $hamburger-margin;
margin-top: $hamburger-margin;
display: block;
border-top: 6px solid $bg-black;
border-bottom: 6px solid $bg-black;
float: right;
cursor: pointer;
}

&:active, &:hover {
&::before {
display: none;
}
.component-content {
display: inline-block;
}

.level0 {
display: block;
}
}
}

ul.clearfix {
list-style: none;
}
.level0 {
display: flex;
}

.level0, .level1 {
>.navigation-title {
>a {
border-width: 0;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@import "@sass/abstracts/vars";
@import "@sass/abstracts/mixins";
/**PROMO**/

.promo {
&.promo-no-border {
padding-left: 0;
padding-right: 0;

>.component-content {
@include border-basic(all, 'none', 0);
@include respond-to(all-mobile) {
> div {
padding: 0;
}

.promo-text {
padding: 15px 10px 10px 25px;
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.rich-text {
@include respond-to(all-mobile) {
padding: 15px 10px 10px 25px;

h2 {
font-size: 18px;
}

h4 {
font-size: 18px;
line-height: 35px;
font-weight: 600;
}

h6 {
font-size: 14px;
strong {
font-weight: normal;
line-height: 24px;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import "common";
@import "header";
@import "promo";
@import "navigation";
@import "component";
@import "rich-text";
@import "footer";
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Default = (props: PromoProps): JSX.Element => {
<div className="promo-text">
<div>
<div className="field-promotext">
<Text className="image-caption" field={props.fields.PromoText} />
<Text className="image-caption" field={props.fields.PromoText} encode={false} />
</div>
</div>
<div className="field-promolink">
Expand All @@ -65,11 +65,11 @@ export const WithText = (props: PromoProps): JSX.Element => {
<div className="promo-text">
<div>
<div className="field-promotext">
<Text className="promo-text" field={props.fields.PromoText} />
<Text className="promo-text" field={props.fields.PromoText} encode={false} />
</div>
</div>
<div className="field-promotext">
<Text className="promo-text" field={props.fields.PromoText2} />
<Text className="promo-text" field={props.fields.PromoText2} encode={false} />
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { I18nProvider } from 'next-localization';

import 'bootstrap/dist/css/bootstrap.css';
import 'assets/sass/main.scss';
import 'assets/basic/main.scss';

function App({ Component, pageProps }: AppProps): JSX.Element {
const { dictionary, ...rest } = pageProps;
Expand Down

0 comments on commit 7f292a3

Please sign in to comment.