Skip to content

Bug/mobile css #255

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

Merged
merged 5 commits into from
May 23, 2020
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: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ params:
url: /case-studies/cricket-analytics

keyfeatures:
title: KEY FEATURES
features:
- title: Powerful N-dimensional arrays
text: Fast and versatile, the NumPy vectorization, indexing and broadcasting concepts are the de-facto standards of array computing today.
Expand Down
4 changes: 0 additions & 4 deletions layouts/partials/keyfeatures.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{{- $keyfeatures := .Site.Params.keyfeatures }}
{{- $title := index $keyfeatures "title" }}
{{- $features := index $keyfeatures "features" }}

<section class="keyfeatures">
<div class="container">
<h1 class="keyfeatures-header">
{{ $title }}
</h1>
<div class="keyfeatures-box-container">
{{- range $features }}
<div class="keyfeatures-box-content keyfeatures-underline">
Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
<nav id="nav" class="navbar is-fresh is-transparent no-shadow" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
{{ if not .IsHome }}
{{- if $navbarLogo}}
<a id="navbar-item" class="navbar-item" href="{{ $navbarLogo.link }}">
<img src="{{ printf "/images/%s" $navbarLogo.image | relURL }}" alt="Numpy logo. A three-dimensional blue cube with the letter 'N' highlighted in yellow." width="112" height="28" alt="Numpy logo. A three-dimensional blue cube with the letter 'N' highlighted in yellow.">
</a>
{{- end}}

{{ end }}
{{- if $sidebarVisible }}
<a id="navbar-item" class="navbar-item is-hidden-desktop is-hidden-tablet">
<div id="menu-icon-wrapper" class="menu-icon-wrapper" style="visibility: visible;">
Expand Down
2 changes: 1 addition & 1 deletion static/css/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
margin: 30px 0 0 0;
}

@media only screen and (max-width: 1088px) {
@media only screen and (max-width: 1090px) {
.shortcuts-container {
display: none;
}
Expand Down
23 changes: 2 additions & 21 deletions static/css/keyfeatures.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
.keyfeatures {
margin: 50px 0;
margin: 30px 0;
}

.keyfeatures .container {
display: flex;
flex-direction: column;
}

.keyfeatures-header {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
letter-spacing: 1.5px;
font-size: 27px;
}

.keyfeatures-box-container {
display: flex;
flex-wrap: wrap;
Expand All @@ -26,7 +17,7 @@
height: 175px;
min-width: 275px;
width: 325px;
margin: 30px 30px 30px 0;
margin: 30px auto;
border-radius: 3px;
}

Expand Down Expand Up @@ -66,22 +57,12 @@
}
}

@media only screen and (max-width: 525px) {
.keyfeatures-header {
flex-direction: column;
}
}

@media only screen and (max-width: 425px) {
.keyfeatures .container {
align-items: center;
justify-content: center;
margin: 0 10%;
}

.keyfeatures-box-content {
margin: 30px;
}
}

.keyfeatures-underline {
Expand Down
2 changes: 1 addition & 1 deletion static/css/news.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
}

@media only screen and (max-width: 1087px) {
@media only screen and (max-width: 1090px) {
.news-container {
flex-direction: column;
padding: 30px;
Expand Down
4 changes: 2 additions & 2 deletions static/css/section3.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
height: 450px;
min-width: 275px;
width: 350px;
margin: 30px 30px 30px 0;
margin: 30px auto;
border-radius: 3px;
}

Expand All @@ -43,7 +43,7 @@
font-size: 14px;
}

@media only screen and (max-width: 1290px) {
@media only screen and (max-width: 1300px) {
.section3-box-container {
justify-content: center;
}
Expand Down
16 changes: 12 additions & 4 deletions static/css/shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
align-items: center;
}


.shell-content {
display: flex;
flex-direction: column;
min-width: 500px;
text-align: center;
}

Expand All @@ -57,6 +55,13 @@
left: 40%;
}

.shell-title-container {
text-align: center;
align-items: center;
margin: 15px;
min-width: 260px;
}

.shell-title {
font-size: 35px;
font-weight: bold;
Expand Down Expand Up @@ -171,16 +176,19 @@
font-size: 0.8em;
}

.thebelab-input {
height: 190px;
}

#demo-output-parent {
position: relative;
}

#demo-output {
position: absolute;
top: 88px;
}

@media only screen and (max-width: 1100px) {
@media only screen and (max-width: 1090px) {
.numpy-shell-container {
flex-direction: column;
justify-content: space-around;
Expand Down
29 changes: 4 additions & 25 deletions static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ em {
justify-content: center;
}

.shell-title-container {
text-align: center;
margin: 15px;
}

.hero-content {
display: flex;
flex-direction: column;
Expand All @@ -54,7 +49,7 @@ em {
display: flex;
font-family: 'Lato', sans-serif;
font-weight: 900;
font-size: 100px;
font-size: 6em;
}

.hero-logo {
Expand All @@ -63,7 +58,7 @@ em {
}

.hero-subtitle {
font-size: 18px;
font-size: 1em;
max-width: 550px;
}

Expand Down Expand Up @@ -135,7 +130,7 @@ p {
margin-left: 15px;
}

@media only screen and (max-width: 1100px) {
@media only screen and (max-width: 1090px) {
.hero-content {
flex-direction: column;
padding: 0;
Expand All @@ -154,37 +149,21 @@ p {
}

.hero-title {
font-size: 80px;
font-size: 4em;
}

.hero-logo {
max-height: 60px;
}

.hero-subtitle {
font-size: 16px;
}
}

@media only screen and (max-width: 400px) {
.hero-title {
font-size: 70px;
}

.hero-logo {
max-height: 50px;
}

.hero-subtitle {
font-size: 14px;
}
}

@media only screen and (max-width: 320px) {
.hero-title {
font-size: 60px;
}

.hero-logo {
max-height: 40px;
}
Expand Down