oncall-engine/grafana-plugin/src/components/SourceCode/SourceCode.module.scss

30 lines
387 B
SCSS
Raw Normal View History

.root {
position: relative;
2022-08-26 17:19:39 +03:00
width: 100%;
2022-09-07 13:48:55 +03:00
2022-09-14 15:35:39 +03:00
&:hover .copyButton,
&:hover .copyIcon {
2022-09-07 13:48:55 +03:00
opacity: 1;
}
}
.scroller {
overflow-y: auto;
2022-09-14 15:35:39 +03:00
border-radius: 2px;
padding: 12px 60px 12px 20px;
2022-09-07 13:48:55 +03:00
&--maxHeight {
max-height: 400px;
}
}
2022-09-14 15:35:39 +03:00
.copyIcon,
.copyButton {
position: absolute;
top: 15px;
right: 15px;
transition: opacity 0.2s ease;
2022-09-14 15:42:14 +03:00
}
.copyButton {
opacity: 0;
2022-09-14 15:35:39 +03:00
}