insomnia/app/ui/css/components/envmodal.less

122 lines
2.4 KiB
Plaintext
Raw Normal View History

@import '../constants/dimensions';
@import '../constants/colors';
.env-modal.modal__body {
display: grid;
2016-09-20 20:53:34 +00:00
grid-template-columns: 17rem minmax(0, 1fr);
2016-09-15 22:45:08 +00:00
grid-template-rows: 100%;
max-width: 100%;
width: 100%;
.env-modal__sidebar {
2016-08-29 17:58:59 +00:00
border-right: 1px solid @hl-md;
padding: @padding-md 0;
box-sizing: border-box;
overflow-y: auto;
height: 100%;
.env-modal__sidebar-heading {
display: flex;
flex-direction: row;
align-items: center;
2016-08-29 17:58:59 +00:00
padding: @padding-sm @padding-sm 0;
& > * {
height: 100%;
padding: 0;
}
& > *:first-child {
width: 100%;
2016-08-29 17:58:59 +00:00
padding: @padding-sm 0 @padding-sm @padding-sm;
}
button {
2017-01-23 22:41:31 +00:00
color: @hl-xl;
height: 100%;
2016-08-29 17:58:59 +00:00
padding: @padding-sm;
&:hover {
2017-01-23 22:41:31 +00:00
color: var(--color-font);
}
}
}
.env-modal__sidebar-root-item,
.env-modal__sidebar-item {
display: grid;
2016-09-20 20:53:34 +00:00
grid-template-columns: minmax(0, 1fr) auto;
2016-08-29 17:58:59 +00:00
grid-template-rows: @line-height-xs;
2017-01-23 22:41:31 +00:00
color: @hl;
& > button {
2016-08-29 17:58:59 +00:00
padding: 0 @padding-md 0 @padding-md;
width: 100%;
&:first-child {
padding-right: 0;
}
.editable {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
2016-08-29 17:58:59 +00:00
padding-right: @padding-xs;
box-sizing: border-box;
width: 100%;
2016-08-29 17:58:59 +00:00
line-height: @line-height-xs;
}
}
2017-01-24 02:52:48 +00:00
&.env-modal__sidebar-item--active > button {
2017-01-23 22:41:31 +00:00
color: var(--color-font);
2016-08-29 17:58:59 +00:00
background-color: @hl-xs;
}
&:hover > button {
2017-01-23 22:41:31 +00:00
background-color: @hl-xs;
}
}
.env-modal__sidebar-item {
& > button {
display: flex;
flex-direction: row;
align-items: center;
padding-left: @padding-md;
}
}
}
.env-modal__main {
display: grid;
2016-09-20 20:53:34 +00:00
grid-template-rows: auto minmax(0, 1fr);
2016-09-15 22:45:08 +00:00
grid-template-columns: 100%;
height: 100%;
width: 100%;
.env-modal__editor {
display: block;
max-height: 100%;
height: 100%;
max-width: 100%;
width: 100%;
}
.env-modal__main__header {
display: flex;
flex-direction: row;
align-items: center;
2016-08-29 17:58:59 +00:00
padding: @padding-sm @padding-md @padding-sm;
height: @line-height-sm;
}
h1, h1 > * {
padding: 0;
2016-08-29 17:58:59 +00:00
font-size: @font-size-xl;
width: 100%;
}
}
}