Reworked cammie grid
This commit is contained in:
parent
aa20bbf8d6
commit
38f735e7af
2 changed files with 50 additions and 54 deletions
|
@ -20,49 +20,50 @@
|
|||
position: relative;
|
||||
height: 100%;
|
||||
#cammie-body {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
transition: opacity 1s ease-in-out;
|
||||
opacity: 0;
|
||||
|
||||
&.display {
|
||||
transition: opacity .5s ease-in-out;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ctrl {
|
||||
|
||||
background-color: $cammie-controls-color;
|
||||
color: white;
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
|
||||
// Chevron centering
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
&:hover {
|
||||
background-color: $zeus_orange;
|
||||
z-index: 200;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.left {
|
||||
height: 100%;
|
||||
width: 50px;
|
||||
left: 0;
|
||||
.row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
// Space rows
|
||||
&.top-row, &.middle-row, &.bottom-row {
|
||||
flex-basis: 0;
|
||||
}
|
||||
&.top-row, &.bottom-row {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.right {
|
||||
height: 100%;
|
||||
width: 100px;
|
||||
right: 0;
|
||||
&.middle-row {
|
||||
flex-grow: 8;
|
||||
}
|
||||
|
||||
.up {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
// Enlarge middle column
|
||||
.center {
|
||||
flex-grow: 8;
|
||||
}
|
||||
}
|
||||
|
||||
.down {
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,29 +30,24 @@ title: Cammie
|
|||
-->
|
||||
|
||||
<div id="cammie-body">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="ctrl left">
|
||||
<div class="cammie-ctrls top-row row">
|
||||
<div class="column ctrl left">
|
||||
diag up left
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="ctrl up">
|
||||
<div class="column ctrl center">
|
||||
up
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="ctrl right">
|
||||
<div class="column ctrl right">
|
||||
diag up right
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns cammie-ctrls">
|
||||
|
||||
<div class="row middle-row cammie-ctrls">
|
||||
<div class="column ctrl left">left</div>
|
||||
<div class="column ctrl center">home?</div>
|
||||
<div class="column center"> </div>
|
||||
<div class="column ctrl right">right</div>
|
||||
</div>
|
||||
<div class="columns cammie-ctrls">
|
||||
<div class="row bottom-row cammie-ctrls">
|
||||
<div class="column ctrl left">diag down left</div>
|
||||
<div class="column ctrl center">down</div>
|
||||
<div class="column ctrl right">diag down right</div>
|
||||
|
|
Loading…
Reference in a new issue