Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#535917 added styles for sxa initializer(basic site) #1062

Merged
merged 3 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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} />
<JssRichText field={props.fields.PromoText} />
sc-ruslanmatkovskyi marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
<div className="field-promolink">
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