rentgen/components/sidebar/sidebar.scss

116 lines
2.7 KiB
SCSS
Raw Normal View History

@import '../../styles/colors.scss';
2022-01-20 19:03:03 +01:00
.sidebar {
.header {
display: grid;
2022-04-15 13:58:29 +02:00
grid-template-columns: 1.75rem 1fr 1.25rem;
2022-01-24 12:50:54 +01:00
align-items: center;
2022-01-24 12:21:28 +01:00
max-height: 3.5rem;
2022-01-24 12:50:54 +01:00
min-height: 3.5rem;
2022-01-20 19:03:03 +01:00
border-bottom: 1px solid $light-grey;
position: sticky;
top: 0;
background: #ffffff;
2022-01-20 19:03:03 +01:00
z-index: 1;
2022-01-24 12:50:54 +01:00
&--without-logo {
grid-template-columns: 1fr 1.25rem;
}
2022-01-20 19:03:03 +01:00
.webpage-metadata {
word-break: break-all;
display: flex;
flex-flow: column;
flex-wrap: nowrap;
font-size: 0.875rem;
font-weight: 600;
justify-content: center;
padding-left: 1rem;
color: #000;
2022-01-24 12:50:54 +01:00
&--without-logo {
padding-left: 0;
}
2022-01-20 19:03:03 +01:00
&--hyperlink {
font-weight: 400;
2022-02-02 10:33:09 +01:00
color: $ultra-black-color;
2022-01-20 19:03:03 +01:00
max-height: 2rem;
overflow: hidden;
}
}
2022-01-20 19:03:03 +01:00
button {
border: none;
background: transparent;
cursor: pointer;
padding: 0;
}
2022-01-19 13:12:28 +01:00
}
2022-01-20 19:03:03 +01:00
nav {
padding: 0.25rem 0;
border-bottom: 1px solid $light-grey;
2022-01-19 13:12:28 +01:00
2022-01-20 19:03:03 +01:00
button {
border: none;
cursor: pointer;
2022-02-02 10:33:09 +01:00
color: $ultra-black-color;
2022-01-20 19:03:03 +01:00
padding: 0.25rem 0rem;
display: flex;
flex-wrap: nowrap;
2022-01-21 00:00:29 +01:00
line-height: 1.25rem;
2022-01-20 19:03:03 +01:00
background: #fff;
width: 100%;
2022-01-19 13:12:28 +01:00
2022-01-20 19:03:03 +01:00
&:hover {
color: #000;
text-decoration: underline;
svg path {
fill: #000;
}
2022-01-19 13:12:28 +01:00
}
2022-01-20 19:03:03 +01:00
&:disabled {
cursor: not-allowed;
color: $disabled-grey;
svg path {
fill: $disabled-grey;
}
2022-01-19 14:12:52 +01:00
}
2022-01-20 19:03:03 +01:00
span {
padding-left: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
}
2022-01-19 13:12:28 +01:00
}
}
2022-01-23 21:42:49 +01:00
.warning-container {
background-color: $pale-yellow;
border-left: 4px solid $contrast-yellow;
margin-top: 0.5rem;
font-size: 0.875rem;
display: grid;
grid-template-columns: calc(100% - 2rem) 2rem;
align-items: flex-start;
span {
padding: 1rem;
}
button {
justify-content: flex-end;
border: none;
cursor: pointer;
2022-02-02 10:33:09 +01:00
color: $ultra-black-color;
2022-01-23 21:42:49 +01:00
line-height: 1.25rem;
background: transparent;
padding: 0.5rem 0.5rem;
display: flex;
align-self: flex-start;
}
}
}