Last active
December 13, 2017 13:56
-
-
Save cb109/22ac5fdbf57eb05541d81a972ed9df0d to your computer and use it in GitHub Desktop.
CSS vs Stylus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .desktop-mode.application { | |
| margin: 0 auto; | |
| max-width: 1280px; | |
| } | |
| .desktop-mode.shadow-box { | |
| position: fixed; | |
| height: 100%; | |
| width: 100%; | |
| z-index: -99; | |
| max-width: 1280px; | |
| } | |
| .desktop-mode.shadow-box.login { | |
| display: none; | |
| } | |
| .desktop-mode.toolbar--fixed { | |
| left: calc((100vw - 1280px - 16px) / 2.0); | |
| max-width: 1280px; | |
| } | |
| .desktop-mode.safari.toolbar--fixed { | |
| left: calc((100vw - 1280px) / 2.0); | |
| } | |
| .desktop-mode.navigation-drawer--fixed { | |
| left: calc((100vw - 1280px - 16px) / 2.0); | |
| } | |
| .desktop-mode.safari.navigation-drawer--fixed { | |
| left: calc((100vw - 1280px) / 2.0); | |
| } | |
| .desktop-mode.btn--fixed { | |
| right: calc((100vw - 1280px + 16px) / 2.0); | |
| } | |
| .desktop-mode.safari.btn--fixed { | |
| right: calc((100vw - 1280px + 16px + 16px) / 2.0); | |
| } | |
| .desktop-mode.alert { | |
| right: calc((100vw - 1280px - 14px) / 2.0); | |
| } | |
| .desktop-mode.safari.alert { | |
| right: calc((100vw - 1280px - 14px - 16px) / 2.0); | |
| } | |
| .desktop-mode.navigation-drawer { | |
| transition-duration: 0s !important; | |
| } | |
| .desktop-mode | |
| .navigation-drawer--close.navigation-drawer:not( | |
| .navigation-drawer--right) { | |
| z-index: -9999; | |
| opacity: 0; | |
| } | |
| .desktop-mode.tools-fixed { | |
| left: calc((100vw - 1280px - 16px) / 2.0); | |
| max-width: 1280px; | |
| } | |
| .desktop-mode.safari.tools-fixed { | |
| left: calc((100vw - 1280px) / 2.0); | |
| } | |
| .desktop-margins { | |
| margin-right: 8.33%; | |
| margin-left: 8.33%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $desktop-max-width = 1280px | |
| $scrollbar = 16px | |
| $offset-lg1 = 8.33% | |
| $centered-left = 'calc((100vw - %s) / 2.0)' % ( $desktop-max-width) | |
| $centered-left-scrollbar = \ | |
| 'calc((100vw - %s - %s) / 2.0)' % ($desktop-max-width $scrollbar) | |
| $centered-left-fab = \ | |
| 'calc((100vw - %s + %s) / 2.0)' % ($desktop-max-width $scrollbar) | |
| $centered-left-fab-safari = \ | |
| 'calc((100vw - %s + (%s * 2)) / 2.0)' % ($desktop-max-width $scrollbar) | |
| $centered-left-alert = \ | |
| 'calc((100vw - %s - %s + 2px) / 2.0)' % ($desktop-max-width $scrollbar) | |
| $centered-left-alert-safari = \ | |
| 'calc((100vw - %s - (%s * 2) + 2px) / 2.0)' % ($desktop-max-width $scrollbar) | |
| .desktop-mode | |
| &.application | |
| margin: 0 auto | |
| max-width: $desktop-max-width | |
| &.shadow-box | |
| position: fixed | |
| height: 100% | |
| width: 100% | |
| z-index: -99 | |
| max-width: $desktop-max-width | |
| &.login | |
| display: none | |
| &.toolbar--fixed | |
| left: $centered-left-scrollbar | |
| max-width: $desktop-max-width | |
| &.safari | |
| left: $centered-left | |
| &.navigation-drawer | |
| transition-duration: 0s !important | |
| &.navigation-drawer--close | |
| .navigation-drawer:not(.navigation-drawer--right) | |
| z-index: -9999 | |
| opacity: 0 | |
| &.navigation-drawer--fixed | |
| left: $centered-left-scrollbar | |
| &.safari | |
| left: $centered-left | |
| &.btn--fixed | |
| right: $centered-left-fab | |
| &.safari | |
| right: $centered-left-fab-safari | |
| &.alert | |
| right: $centered-left-alert | |
| &.safari | |
| right: $centered-left-alert-safari | |
| &.tools-fixed | |
| left: $centered-left-scrollbar | |
| max-width: $desktop-max-width | |
| &.safari | |
| left: $centered-left | |
| .desktop-margins | |
| margin-right: $offset-lg1 | |
| margin-left: $offset-lg1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment