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

MNG-77_SetupSASSforProject #3

Merged
merged 6 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions styles/SASS/_animations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Placeholder for animations (keyframes)
13 changes: 13 additions & 0 deletions styles/SASS/_config.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Placeholder for variables, colors, mixins etc.

// Example of variable
$background-color: white;
$text-color: black;
$mobile: 800px;


@mixins mobile {
@media (max-width: $mobile) {
@content
}
}
mariusz-sm marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions styles/SASS/_fight-view.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Styles for pokemon fighting screen. Common elements should be added to _config.scss in mixins.
1 change: 1 addition & 0 deletions styles/SASS/_loading-view.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Styles for loading screen. Common elements should be added to _config.scss in mixins.
1 change: 1 addition & 0 deletions styles/SASS/_pokemon-choose-view.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Styles for pokemon choosing screen. Common elements should be added to _config.scss in mixins.
5 changes: 5 additions & 0 deletions styles/SASS/_resets.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
2 changes: 2 additions & 0 deletions styles/SASS/_responsive-view.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Placeholder for @media-query-breakpoints

1 change: 1 addition & 0 deletions styles/SASS/_start-view.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Styles for start page. Common elements should be added to _config.scss in mixins.
38 changes: 38 additions & 0 deletions styles/SASS/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// File should contains:
// - styles for body, footer, p, h1, ...
// - styles for buttons and scrollbars
// - imports for rest of _<name>.scss files

@import './resets';
@import './config';
@import './loading-view';
@import './start-view';
@import './pokemon-choose-view';
@import './fight-view';
@import './animations';
@import './responsive-view';

body {
background-color: $background-color;
color: $text-color;
}

footer {
// ...
}

p {
// ...
}

a {
// ...
}

h1 {
// ...
}

h2 {
// ...
}
12 changes: 12 additions & 0 deletions styles/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.