Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Bigger chrome when space is avalible 🐻
Browse files Browse the repository at this point in the history
  • Loading branch information
Sertion committed Sep 16, 2017
1 parent 54f4641 commit f2336a7
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 11 deletions.
5 changes: 5 additions & 0 deletions frsrc/view/button/back/button-back.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.buttonBack {
-webkit-appearance: none;
display: block;
flex-grow: 1;
text-decoration: none;
text-transform: uppercase;
cursor: pointer;
Expand All @@ -27,4 +28,8 @@
.buttonBack__iconPath {
stroke: transparent;
fill: #fff;
}
@media (min-height: 720px) and (min-width: 700px) {
height: 20px;
width: 20px;
}
16 changes: 15 additions & 1 deletion frsrc/view/button/base/button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
clear: both;
margin: 10px 20px;
}

.button--head {
font-size: 12px;
margin: 7px;
Expand All @@ -54,4 +53,19 @@
box-shadow: 0 0 0 3px rgba(255, 255, 255, .75);
background-color: rgb(12, 64, 120);
}
}

@media (min-height: 720px) and (min-width: 700px) {
.button--quick {
font-size: 20px;
padding: 10px 20px;
margin: 5px;
line-height: 20px;
}
.button--head {
font-size: 16px;
padding: 10px 20px;
margin: 7px;
line-height: 1;
}
}
9 changes: 9 additions & 0 deletions frsrc/view/chrome/button/chrome-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@

.buttonChrome:hover .buttonChrome__iconPath {
stroke: rgba(255, 255, 255, .75);
}

@media (min-height: 720px) and (min-width: 700px) {
.buttonChrome {
padding: 22px 10px 17px;
}
.buttonChrome:last-of-type {
padding-right: 20px;
}
}
30 changes: 28 additions & 2 deletions frsrc/view/chrome/chrome/chrome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
background: #3f407f url('../../../../static/img/chrome-head-bg.jpg') 0 0 no-repeat;
background-size: cover;
display: flex;
height: 40px;
color: #ffffff;
justify-content: space-between;
align-items: stretch;
Expand Down Expand Up @@ -56,4 +55,31 @@
.chrome__windowAction {
white-space: nowrap;
}
.chrome__body {}
.chrome__body {}

@media (min-height: 720px) and (min-width: 700px) {
.chrome {
display: grid;
grid-template-rows: 60px auto;
}
.chrome__title {
font-size: 50px;
}
.chrome__title:before {
height: 50px;
width: 50px;
}
.chrome__grow {
flex-grow: 10;
}
.chrome__rating {
line-height: 60px;
}
.chrome__ratingIcon {
height: 60px;
width: auto;
}
.chrome__ratingLabel {
font-size: 40px;
}
}
2 changes: 1 addition & 1 deletion frsrc/view/fragments/map-list/map-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
-1px 1px 0 rgb(10, 20, 30),
1px -1px 0 rgb(10, 20, 30),
-1px -1px 0 rgb(10, 20, 30);
padding: 3px 5px;
padding: 5px;
}
}

Expand Down
17 changes: 17 additions & 0 deletions frsrc/view/fragments/season-select/season-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
width: 120px;
margin: 7px 7px 7px 15px;
line-height: 1;
font-family: Futura;
color: #fff;
background-color: rgba(63, 65, 130, 0.8);
background-image: url('../../../../static/img/select.svg');
Expand All @@ -28,4 +29,20 @@
}
.seasonSelect__item:hover {
background: rgba(63, 65, 130, 0.8);
}

@media (min-height: 720px) and (min-width: 700px) {
.seasonSelect {
font-size: 16px;
width: 190px;
padding: 1px 30px 0 10px;
background-size: 12px;
background-position: calc(100% - 10px) 50%;
}
.seasonSelect:hover {
background-position: calc(100% - 10px) calc(50% - 2px);
}
.seasonSelect:active {
background-position: calc(100% - 10px) calc(50% + 2px);
}
}
9 changes: 8 additions & 1 deletion frsrc/view/fragments/subpage/subpage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
height: calc(100vh - 41px);
}
.subpage__back {
display: flow-root;
display: flex;
grid-area: back;
}
.subpage__head {
Expand All @@ -21,4 +21,11 @@
grid-area: main;
max-height: 100%;
padding: 5px;
}
@media (min-height: 720px) and (min-width: 700px) {
.subpage {
height: calc(100vh - 60px);
grid-template-rows: 50px auto;
grid-template-columns: 90px auto;
}
}
10 changes: 5 additions & 5 deletions frsrc/view/page-front/page-main/page-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ export default class PageFront extends Vue {

this.seasonId = currentSeason.id.toString();

if (currentSeasonPlacementsLeft) {
this.competitiveLink = 'placement';
if (currentSeason.placementRating) {
this.competitiveLink = 'competitive';
}
else if (!currentSeason.placementRating) {
this.competitiveLink = 'placement-sr';
else if (currentSeasonPlacementsLeft) {
this.competitiveLink = 'placement';
}
else {
this.competitiveLink = 'competitive';
this.competitiveLink = 'placement-sr';
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "compwerstats",
"version": "0.0.1",
"version": "0.0.3",
"description": "Do you want to compwer your stats?",
"license": "MIT",
"author": "compwerstats",
Expand Down

0 comments on commit f2336a7

Please sign in to comment.