Is it possible to set the font size relative to another element's font size using only SCSS and not JS?
For example, I want to get paragraph text 2 pixels smaller then input.
I've attempted something like this but it does not seem to work:
HTML
<input type="text" value="This is input text">
<p>Text smaller then input</p>
SCSS
$isize: 16px;
$psize: $isizev - 2;
input {
font-size: $isize;
}
p {
font-size: $psize;
}