Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion app/assets/stylesheets/parts/tribune.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ body#boards-show {
> div {
display: -ms-flexbox;
display: flex;
margin: 0.5em;
}
#board_message {
border: 1px solid #999;
Expand All @@ -105,6 +104,19 @@ body#boards-show {
border-left: none;
margin: 0;
}
// If browser supports :has selector, we can remove the outline of input on focus
// and add it to the parent div to include the send button on right
@supports #{'\selector(:has(> input:focus)) and (outline-color: AccentColor)'} {
input#board_message:focus {
outline-style: none;
}
div:has(> input#board_message:focus) {
outline-style: auto;
outline-offset: -2px;
outline-width: 3px;
outline-color: AccentColor;
}
}
}
}
#main_board {
Expand Down