mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 06:57:12 -04:00
[#181] fix output loading gears for mobile, add a _structure css file in /themes that is shared across themes
This commit is contained in:
parent
4c2c934cd4
commit
5916251893
5 changed files with 21 additions and 14 deletions
|
@ -8,8 +8,8 @@
|
|||
- test drag and drop etc. Regular mobile events / UX
|
||||
- view-heights not correct due to variable taskbar on mobile devices
|
||||
|
||||
- loading gears on mobile ( some ingredient labels 'shine through' and the cancel button isnt visible )
|
||||
- need long press checks on mobile to add favourites and switch ingredient order
|
||||
- fix "hitbox" ( event bubbling ) for maximiser icon / button
|
||||
|
||||
### Desktop UI:
|
||||
### General UI:
|
||||
|
|
|
@ -73,7 +73,8 @@ label[for="output-text"] {
|
|||
|
||||
#output-loader {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
bottom: var(--controls-height);
|
||||
z-index: 100;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
@ -87,6 +88,12 @@ label[for="output-text"] {
|
|||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px){
|
||||
#output-loader {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#output-loader-animation {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
/* Themes */
|
||||
@import "./themes/_structure.css";
|
||||
@import "./themes/_classic.css";
|
||||
@import "./themes/_dark.css";
|
||||
@import "./themes/_geocities.css";
|
||||
|
|
|
@ -6,15 +6,6 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
:root {
|
||||
--banner-height: 40px;
|
||||
--controls-height: 70px;
|
||||
--workspace-height: calc( 100vh - var(--banner-height) - var(--controls-height));
|
||||
--recipe-height: 38vh;
|
||||
--operations-height: 89px;
|
||||
--io-height: calc(100vh - var(--banner-height) - var(--controls-height) - var(--recipe-height) - var(--operations-height));
|
||||
}
|
||||
|
||||
#banner,
|
||||
#content-wrapper {
|
||||
position: absolute;
|
||||
|
@ -42,9 +33,9 @@
|
|||
bottom: 0;
|
||||
}
|
||||
|
||||
#IO {
|
||||
padding-bottom: var(--controls-height);
|
||||
}
|
||||
/*#IO {*/
|
||||
/* padding-bottom: var(--controls-height);*/
|
||||
/*}*/
|
||||
|
||||
#recipe.maximised-pane,
|
||||
#input.maximised-pane,
|
||||
|
|
8
src/web/stylesheets/themes/_structure.css
Normal file
8
src/web/stylesheets/themes/_structure.css
Normal file
|
@ -0,0 +1,8 @@
|
|||
:root {
|
||||
--banner-height: 40px;
|
||||
--controls-height: 70px;
|
||||
--workspace-height: calc( 100vh - var(--banner-height) - var(--controls-height));
|
||||
--recipe-height: 38vh;
|
||||
--operations-height: 89px;
|
||||
--io-height: calc(100vh - var(--banner-height) - var(--controls-height) - var(--recipe-height) - var(--operations-height));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue