summaryrefslogtreecommitdiff
path: root/website/static/sass/layout
diff options
context:
space:
mode:
authorkomalsheth2862016-09-08 10:44:04 +0530
committerkomalsheth2862016-09-08 10:44:04 +0530
commit95bb4b3c871732f354132fc1571a00b0acbf68ac (patch)
tree3c21f0883cbecaffc1eee011bfdb352423b7af6d /website/static/sass/layout
downloadSciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.gz
SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.tar.bz2
SciPy2016-95bb4b3c871732f354132fc1571a00b0acbf68ac.zip
First Commit
Diffstat (limited to 'website/static/sass/layout')
-rw-r--r--website/static/sass/layout/_footer.scss60
-rw-r--r--website/static/sass/layout/_header.scss116
-rw-r--r--website/static/sass/layout/_main.scss99
-rw-r--r--website/static/sass/layout/_nav.scss96
-rw-r--r--website/static/sass/layout/_wrapper.scss21
5 files changed, 392 insertions, 0 deletions
diff --git a/website/static/sass/layout/_footer.scss b/website/static/sass/layout/_footer.scss
new file mode 100644
index 0000000..478d73e
--- /dev/null
+++ b/website/static/sass/layout/_footer.scss
@@ -0,0 +1,60 @@
+///
+/// Stellar by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Footer */
+
+ #footer {
+ @include vendor('display', 'flex');
+ @include vendor('flex-wrap', 'wrap');
+ @include padding(5em, 5em);
+ width: calc(100% + #{_size(element-margin)});
+ margin: 0 0 (_size(element-margin) * 1.5) (_size(element-margin) * -1);
+
+ > * {
+ width: calc(50% - #{_size(element-margin)});
+ margin-left: _size(element-margin);
+ }
+
+ .copyright {
+ width: 100%;
+ margin: (_size(element-margin) * 1.25) 0 _size(element-margin) 0;
+ font-size: 0.8em;
+ text-align: center;
+ }
+
+ @include breakpoint(large) {
+ @include padding(4em, 4em);
+ }
+
+ @include breakpoint(medium) {
+ @include padding(4em, 3em);
+ display: block;
+ margin: 0 0 (_size(element-margin) * 1.5) 0;
+ width: 100%;
+
+ > * {
+ width: 100%;
+ margin-left: 0;
+ margin-bottom: (_size(element-margin) * 1.5);
+ }
+
+ .copyright {
+ text-align: left;
+ }
+ }
+
+ @include breakpoint(small) {
+ @include padding(3em, 2em);
+ }
+
+ @include breakpoint(xsmall) {
+ @include padding(3em, 1.5em);
+ }
+
+ @include breakpoint(xsmall) {
+ @include padding(2.5em, 1em);
+ }
+ } \ No newline at end of file
diff --git a/website/static/sass/layout/_header.scss b/website/static/sass/layout/_header.scss
new file mode 100644
index 0000000..f13ca67
--- /dev/null
+++ b/website/static/sass/layout/_header.scss
@@ -0,0 +1,116 @@
+///
+/// Stellar by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Header */
+
+ #header {
+ @include padding(5em, 5em, (0, 0, -2em, 0));
+ text-align: center;
+
+ h1 {
+ margin: 0 0 (_size(element-margin) * 0.125) 0;
+ }
+
+ p {
+ font-size: 1.25em;
+ letter-spacing: _font(letter-spacing);
+ }
+
+ &.alt {
+ @include padding(6em, 5em, (1em, 0, 0, 0));
+
+ h1 {
+ font-size: 3.25em;
+ }
+
+ > * {
+ @include vendor('transition', 'opacity 3s ease');
+ @include vendor('transition-delay', '0.5s');
+ opacity: 1;
+ }
+
+ .logo {
+ @include vendor('transition', (
+ 'opacity 1.25s ease',
+ 'transform 0.5s ease'
+ ));
+ @include vendor('transition-delay', '0s');
+ display: block;
+ margin: 0 0 (_size(element-margin) * 0.75) 0;
+
+ img {
+ display: block;
+ margin: 0 auto;
+ max-width: 75%;
+ }
+ }
+ }
+
+ @include breakpoint(large) {
+ @include padding(4em, 4em, (0, 0, -2em, 0));
+
+ &.alt {
+ @include padding(5em, 4em, (1em, 0, 0, 0));
+ }
+ }
+
+ @include breakpoint(medium) {
+ @include padding(4em, 3em, (0, 0, -2em, 0));
+
+ &.alt {
+ @include padding(4em, 3em, (1em, 0, 0, 0));
+ }
+ }
+
+ @include breakpoint(small) {
+ @include padding(3em, 2em, (0, 0, -1em, 0));
+
+ p {
+ font-size: 1em;
+ letter-spacing: 0;
+
+ br {
+ display: none;
+ }
+ }
+
+ &.alt {
+ @include padding(3em, 2em, (1em, 0, 0, 0));
+
+ h1 {
+ font-size: 2.5em;
+ }
+ }
+ }
+
+ @include breakpoint(xsmall) {
+ @include padding(3em, 1.5em, (0, 0, -1em, 0));
+
+ &.alt {
+ @include padding(3em, 1.5em, (1em, 0, 0, 0));
+ }
+ }
+
+ @include breakpoint(xxsmall) {
+ @include padding(2.5em, 1em, (0, 0, -1em, 0));
+
+ &.alt {
+ @include padding(2.5em, 1em, (1em, 0, 0, 0));
+ }
+ }
+
+ body.is-loading & {
+ &.alt {
+ > * {
+ opacity: 0;
+ }
+
+ .logo {
+ @include vendor('transform', 'scale(0.8) rotate(-30deg)');
+ }
+ }
+ }
+ } \ No newline at end of file
diff --git a/website/static/sass/layout/_main.scss b/website/static/sass/layout/_main.scss
new file mode 100644
index 0000000..b6a8708
--- /dev/null
+++ b/website/static/sass/layout/_main.scss
@@ -0,0 +1,99 @@
+///
+/// Stellar by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Main */
+
+ #main {
+ @include color(invert);
+ border-radius: _size(border-radius-main);
+
+ > .main {
+ @include padding(5em, 5em);
+ border-top: solid 1px _palette(invert, border);
+
+ &:first-child {
+ border-top: 0;
+ }
+
+ > .image.main:first-child {
+ margin: -5em 0 5em -5em;
+ width: calc(100% + 10em);
+ border-top-right-radius: _size(border-radius-main);
+ border-top-left-radius: _size(border-radius-main);
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+
+ img {
+ border-top-right-radius: _size(border-radius-main);
+ border-top-left-radius: _size(border-radius-main);
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 0;
+ }
+ }
+ }
+
+ @include breakpoint(large) {
+ > .main {
+ @include padding(4em, 4em);
+
+ > .image.main:first-child {
+ margin: -4em 0 4em -4em;
+ width: calc(100% + 8em);
+ }
+ }
+ }
+
+ @include breakpoint(medium) {
+ > .main {
+ @include padding(4em, 3em);
+
+ > .image.main:first-child {
+ margin: -4em 0 4em -3em;
+ width: calc(100% + 6em);
+ }
+ }
+ }
+
+ @include breakpoint(small) {
+ > .main {
+ @include padding(3em, 2em);
+
+ > .image.main:first-child {
+ margin: -3em 0 2em -2em;
+ width: calc(100% + 4em);
+ }
+ }
+ }
+
+ @include breakpoint(xsmall) {
+ > .main {
+ @include padding(3em, 1.5em);
+
+ > .image.main:first-child {
+ margin: -3em 0 1.5em -1.5em;
+ width: calc(100% + 3em);
+ }
+ }
+ }
+
+ @include breakpoint(xxsmall) {
+ border-radius: 0;
+
+ > .main {
+ @include padding(2.5em, 1em);
+
+ > .image.main:first-child {
+ margin: -2.5em 0 1.5em -1em;
+ width: calc(100% + 2em);
+ border-radius: 0;
+
+ img {
+ border-radius: 0;
+ }
+ }
+ }
+ }
+ } \ No newline at end of file
diff --git a/website/static/sass/layout/_nav.scss b/website/static/sass/layout/_nav.scss
new file mode 100644
index 0000000..d6eda19
--- /dev/null
+++ b/website/static/sass/layout/_nav.scss
@@ -0,0 +1,96 @@
+///
+/// Stellar by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Nav */
+
+ #nav {
+ @include vendor('transition', (
+ 'background-color #{_duration(transition)} ease',
+ 'border-top-left-radius #{_duration(transition)} ease',
+ 'border-top-right-radius #{_duration(transition)} ease',
+ 'padding #{_duration(transition)} ease',
+ ));
+ @include color-typography(invert);
+ position: absolute;
+ width: _size(inner);
+ max-width: calc(100% - #{_size(element-margin) * 2});
+ padding: 1em;
+ background-color: _palette(invert, bg-alt);
+ border-top-left-radius: _size(border-radius-main);
+ border-top-right-radius: _size(border-radius-main);
+ cursor: default;
+ text-align: center;
+
+ & + #main {
+ padding-top: 4.25em;
+ }
+
+ ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+
+ li {
+ @include vendor('transition', (
+ 'margin #{_duration(transition)} ease'
+ ));
+ display: inline-block;
+ margin: 0 0.35em;
+ padding: 0;
+ vertical-align: middle;
+
+ a {
+ @include vendor('transition', (
+ 'font-size #{_duration(transition)} ease'
+ ));
+ display: inline-block;
+ height: 2.25em;
+ line-height: 2.25em;
+ padding: 0 1.25em;
+ border: 0;
+ border-radius: _size(border-radius);
+ box-shadow: inset 0 0 0 1px transparent;
+
+ &:hover {
+ background-color: _palette(invert, border-bg);
+ }
+
+ &.active {
+ background-color: _palette(invert, bg);
+ box-shadow: none;
+ }
+ }
+ }
+ }
+
+ &.alt {
+ position: fixed;
+ top: 0;
+ padding: 0.5em 1em;
+ background-color: transparentize(_palette(invert, bg-alt), 0.05);
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ z-index: _misc(z-index-base);
+
+ ul {
+ li {
+ margin: 0 0.175em;
+
+ a {
+ font-size: 0.9em;
+ }
+ }
+ }
+ }
+
+ @include breakpoint(small) {
+ display: none;
+
+ & + #main {
+ padding-top: 0;
+ }
+ }
+ } \ No newline at end of file
diff --git a/website/static/sass/layout/_wrapper.scss b/website/static/sass/layout/_wrapper.scss
new file mode 100644
index 0000000..c5a05eb
--- /dev/null
+++ b/website/static/sass/layout/_wrapper.scss
@@ -0,0 +1,21 @@
+///
+/// Stellar by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Wrapper */
+
+ #wrapper {
+ width: _size(inner);
+ max-width: calc(100% - 4em);
+ margin: 0 auto;
+
+ @include breakpoint(xsmall) {
+ max-width: calc(100% - 2em);
+ }
+
+ @include breakpoint(xxsmall) {
+ max-width: 100%;
+ }
+ } \ No newline at end of file