Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
5ff75de9
Verified
Commit
5ff75de9
authored
Apr 10, 2020
by
Roberto Bochet
Browse files
Change scss breakpoints syntax
parent
0992a179
Changes
8
Hide whitespace changes
Inline
Side-by-side
assets/_sass/breakpoints/_
1200up
.scss
→
assets/_sass/breakpoints/_
desktop_only
.scss
View file @
5ff75de9
File moved
assets/_sass/breakpoints/_mobileup.scss
→
assets/_sass/breakpoints/_mobile
_
up.scss
View file @
5ff75de9
File moved
assets/_sass/breakpoints/_
800
up.scss
→
assets/_sass/breakpoints/_
tablet_
up.scss
View file @
5ff75de9
File moved
assets/_sass/layout/_
1200up
.scss
→
assets/_sass/layout/_
desktop_only
.scss
View file @
5ff75de9
File moved
assets/_sass/layout/_layout.scss
View file @
5ff75de9
@import
"sections"
;
@import
"footer"
;
@media
only
screen
and
(
min-width
:
800px
)
{
@import
"800up"
;
}
@media
only
screen
and
(
min-width
:
1200px
)
{
@import
"1200up"
;
}
\ No newline at end of file
@include
tablet-up
{
@import
"tablet_up"
;
}
@include
desktop-only
{
@import
"desktop_only"
;
}
\ No newline at end of file
assets/_sass/layout/_
800
up.scss
→
assets/_sass/layout/_
tablet_
up.scss
View file @
5ff75de9
File moved
assets/_sass/partials/_breakpoints.scss
0 → 100644
View file @
5ff75de9
@mixin
mobile-only
{
@media
only
screen
and
(
max-width
:
800px
)
{
@content
;
}
}
@mixin
tablet-only
{
@media
only
screen
and
(
min-width
:
800px
)
and
(
max-width
:
1200px
)
{
@content
;
}
}
@mixin
desktop-only
{
@media
only
screen
and
(
min-width
:
1200px
)
{
@content
;
}
}
@mixin
tablet-up
{
@media
only
screen
and
(
min-width
:
800px
)
{
@content
;
}
}
@mixin
tablet-down
{
@media
only
screen
and
(
max-width
:
1200px
)
{
@content
;
}
}
\ No newline at end of file
assets/css/style.scss
View file @
5ff75de9
...
...
@@ -11,6 +11,7 @@
// Import Partials
@import
"partials/typography"
;
@import
"partials/mixins"
;
@import
"partials/breakpoints"
;
@import
"colors/backgrounds"
;
@import
"colors/buttons"
;
...
...
@@ -35,19 +36,20 @@
@import
"layout/layout"
;
// Pages
@import
"pages/home"
;
@import
"pages/courses"
;
@import
"pages/coding_gym"
;
// Mobile up base styles
@import
"breakpoints/mobileup"
;
@import
"breakpoints/mobile
_
up"
;
// Import media queries add more as you desire
@
media
only
screen
and
(
min-width
:
800px
)
{
@import
"breakpoints/
800
up"
;
@
include
tablet_up
{
@import
"breakpoints/
tablet_
up"
;
}
@
media
only
screen
and
(
min-width
:
1200px
)
{
@import
"breakpoints/
1200up
"
;
@
include
desktop_only
{
@import
"breakpoints/
desktop_only
"
;
}
// If IE support is needed you can add them here or create another stylesheet for specific IE fixes
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment