Files
5etools-mirror-2.github.io/scss/search.scss
TheGiddyLimit 12f34a38f8 v1.202.0
2024-03-24 23:47:02 +00:00

68 lines
1.0 KiB
SCSS

@use "includes/vars";
.pg-search__ {
$sz-image: 48px;
&ipt {
border-right: 0;
}
&wrp-result {
border: 1px solid vars.$rgb-border-grey;
border-radius: 5px;
min-height: calc(#{vars.$spacer} + #{$sz-image} + 2px);
}
&disp-token {
width: $sz-image;
height: $sz-image;
align-self: center;
}
&disp-srd,
&disp-source-marker {
font-size: 8.5px;
vertical-align: super;
top: 2px;
margin-left: 3px;
}
&wrp-preview {
width: 500px;
border: 1px solid vars.$rgb-border-grey;
}
&btn-toggle-preview {
&--expanded {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
@media screen and (width <= #{vars.$width-screen-sm}) {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
}
}
}
.night-mode {
.pg-search__ {
&wrp-result {
border: 1px solid vars.$rgb-border-grey--night;
background: vars.$rgb-bg--night;
}
&wrp-preview {
border: 1px solid vars.$rgb-border-grey--night;
}
}
}
.style-switch__wide {
.pg-search__ {
&wrp-preview {
width: 50vw;
}
}
}