Skip to content

Commit

Permalink
Fix web component v0.15.0+ for use in MZ (#675)
Browse files Browse the repository at this point in the history
closes #658

---------

Co-authored-by: PetarSimonovic <[email protected]>
Co-authored-by: Pete Simonovic <[email protected]>
  • Loading branch information
3 people authored Oct 2, 2023
1 parent 613fae2 commit 4cf4e1c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.19.1]

### Fixed

- Min-height on Sense HAT model to fix tablet-view (#658)

## [0.19.0] - 2023-09-25

### Added
Expand Down
31 changes: 16 additions & 15 deletions src/components/AstroPiModel/AstroPiModel.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use '../../spacing' as *;
@use '../../font-size' as *;
@import '../../colours.scss';
@use "../../spacing" as *;
@use "../../font-size" as *;
@import "../../colours.scss";

.sense-hat {
width: 100%;
Expand All @@ -12,6 +12,7 @@
display: flex;
flex-flow: column;
max-height: 50%;
min-height: 200px;
flex: 1;
padding-bottom: $space-0-5;

Expand Down Expand Up @@ -44,7 +45,7 @@
}

&__reset-btn {
flex:1;
flex: 1;
display: flex;
margin-left: auto;
svg {
Expand All @@ -60,7 +61,6 @@
}

&-controls {

padding: $space-0-5;
display: flex;
flex-flow: column;
Expand Down Expand Up @@ -98,8 +98,8 @@
display: flex;
align-items: center;
justify-content: center;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;

&-timer {
margin-top: 0;
Expand Down Expand Up @@ -128,7 +128,7 @@
transform: rotate(270deg);
}

input[type='color'] {
input[type="color"] {
border-radius: 5px;
flex: 1;
width: 100%;
Expand Down Expand Up @@ -168,7 +168,8 @@
align-items: center;
width: 32%;

.sense-hat-controls-panel__control-name, input {
.sense-hat-controls-panel__control-name,
input {
cursor: pointer;
}

Expand Down Expand Up @@ -196,10 +197,10 @@

&-reading {
background-color: $rpf-grey-800;
border: 1px solid $rpf-grey-500
border: 1px solid $rpf-grey-500;
}

input[type='color'] {
input[type="color"] {
background-color: $rpf-grey-800;
border: 1px solid $rpf-grey-500;
}
Expand All @@ -210,8 +211,8 @@

.react-toggle {
&-thumb {
border: 1px solid $rpf-white;
background-color: $rpf-white;
border: 1px solid $rpf-white;
background-color: $rpf-white;
}
}
}
Expand Down Expand Up @@ -253,7 +254,7 @@
border: 2px solid $rpf-grey-300;
}

input[type='color'] {
input[type="color"] {
background-color: $rpf-white;
border: 2px solid $rpf-grey-300;
}
Expand All @@ -269,7 +270,7 @@
}
}
}
}
}

&-model {
background-color: $astropi-dark-blue;
Expand Down

0 comments on commit 4cf4e1c

Please sign in to comment.