Skip to content

Commit

Permalink
Small text styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simjanos-dev committed Dec 24, 2024
1 parent cc02532 commit e609071
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
9 changes: 9 additions & 0 deletions resources/sass/Text/InteractiveTextStyling.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
box-sizing: border-box;
height: auto;
line-height: 100%;
cursor: pointer;

.rubyword {
pointer-events: none;
Expand Down Expand Up @@ -73,6 +74,10 @@
border-bottom-width: var(--interactive-text-phraseLevel#{$phraseLevel}-border-bottom-width);
border-color: var(--interactive-text-phraseLevel#{$phraseLevel}-border-color);
border-style: var(--interactive-text-phraseLevel#{$phraseLevel}-border-style);
border-bottom-left-radius: 0px;
border-top-left-radius: 0px;
border-bottom-right-radius: 0px;
border-top-right-radius: 0px;

// padding for size consistency with 1px max border
padding-top: var(--interactive-text-phraseLevel#{$phraseLevel}-padding-top);
Expand Down Expand Up @@ -121,6 +126,10 @@
border-color: var(--v-readerWordSelection-base);
color: var(--v-highlightedWordText-base);
border-radius: 0px;

&.phrase {
border-radius: 0px;
}
}

// highlighted rounding
Expand Down
13 changes: 0 additions & 13 deletions resources/sass/TextReader/TextReader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,4 @@
color: white;
}
}

#reader .word[stage="2"]:not(.highlighted):not(:hover) {
border-bottom: 2px solid var(--v-text-base);
background-color: #ffffff;
color: var(--v-text-base);

border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}

#reader .word.phrase {
border-color: var(--v-text-base) !important;
}
}

0 comments on commit e609071

Please sign in to comment.