Contained, auto-resize group labels
This commit is contained in:
@@ -127,52 +127,39 @@ body {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.gridNode, .gridGroup, .gridGroupLabel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
font-size: 20px;
|
||||
border-radius: 10px;
|
||||
overflow-wrap: anywhere;
|
||||
overflow: hidden;
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.gridNode {
|
||||
width: calc(100% - 24px);
|
||||
height: calc(100% - 24px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--background);
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
overflow-wrap: anywhere;
|
||||
|
||||
border-radius: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid white;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background: var(--background);
|
||||
z-index: 2;
|
||||
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.gridGroup {
|
||||
width: calc(100% - 10px);
|
||||
height: calc(100% - 30px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: var(--background);
|
||||
justify-content: flex-start;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
overflow-wrap: anywhere;
|
||||
|
||||
border-radius: 10px;
|
||||
margin-top: 20px;
|
||||
padding: 5px;
|
||||
border: 1px dashed white;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background: var(--background);
|
||||
z-index: 1;
|
||||
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.gridGroup:empty {
|
||||
@@ -180,6 +167,17 @@ body {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.gridGroupLabel {
|
||||
width: calc(100% - 10px);
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
padding-top: 3px;
|
||||
overflow: hidden;
|
||||
overflow-wrap: anywhere;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.gridLines {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
Reference in New Issue
Block a user