chore: use css classes
This commit is contained in:
parent
f99d071601
commit
4ddbcc4217
@ -275,6 +275,9 @@ button:not(.btn-link),
|
|||||||
display: grid
|
display: grid
|
||||||
grid: min-content / auto-flow max-content
|
grid: min-content / auto-flow max-content
|
||||||
|
|
||||||
|
.buttongroup--inline
|
||||||
|
display: inline-block
|
||||||
|
|
||||||
input[type="submit"][disabled]:not(.btn-link),
|
input[type="submit"][disabled]:not(.btn-link),
|
||||||
input[type="button"][disabled]:not(.btn-link),
|
input[type="button"][disabled]:not(.btn-link),
|
||||||
button[disabled]:not(.btn-link),
|
button[disabled]:not(.btn-link),
|
||||||
@ -328,6 +331,14 @@ input[type="button"].btn-info:not(.btn-link):hover,
|
|||||||
&:not([disabled]):hover
|
&:not([disabled]):hover
|
||||||
color: var(--color-link-hover)
|
color: var(--color-link-hover)
|
||||||
|
|
||||||
|
.button--favourite-toggle
|
||||||
|
font-size: 0.25em
|
||||||
|
vertical-align: top
|
||||||
|
|
||||||
|
// STACK ICON STYLE
|
||||||
|
.icon--stacked
|
||||||
|
vertical-align: top
|
||||||
|
|
||||||
// GENERAL TABLE STYLES
|
// GENERAL TABLE STYLES
|
||||||
.table
|
.table
|
||||||
margin: 21px 0
|
margin: 21px 0
|
||||||
|
|||||||
@ -332,7 +332,7 @@ getCShowR tid ssh csh = do
|
|||||||
{ formAction = Just . SomeRoute $ CourseR tid ssh csh CFavouriteR
|
{ formAction = Just . SomeRoute $ CourseR tid ssh csh CFavouriteR
|
||||||
, formEncoding = favouriteToggleEncoding
|
, formEncoding = favouriteToggleEncoding
|
||||||
, formSubmit = FormNoSubmit
|
, formSubmit = FormNoSubmit
|
||||||
, formAttrs = [("class", "buttongroup"), ("style", "display: inline-block")]
|
, formAttrs = [("class", "buttongroup buttongroup--inline")]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -342,7 +342,7 @@ getCShowR tid ssh csh = do
|
|||||||
$if not courseVisible && mayEdit
|
$if not courseVisible && mayEdit
|
||||||
\ #{iconInvisible}
|
\ #{iconInvisible}
|
||||||
$if isJust muid
|
$if isJust muid
|
||||||
<span style="font-size: 0.25em; vertical-align: top">
|
<span .button--favourite-toggle>
|
||||||
^{favouriteToggleWgt}
|
^{favouriteToggleWgt}
|
||||||
|]
|
|]
|
||||||
|
|
||||||
|
|||||||
@ -209,7 +209,7 @@ iconStacked :: Icon -> Icon -> Markup
|
|||||||
iconStacked ic0 ic1
|
iconStacked ic0 ic1
|
||||||
= [shamlet|
|
= [shamlet|
|
||||||
$newline never
|
$newline never
|
||||||
<span .fa-stack style="vertical-align: top;">
|
<span .fa-stack .icon--stacked>
|
||||||
<i .fas .fa-stack-2x .fa-#{iconText ic0}>
|
<i .fas .fa-stack-2x .fa-#{iconText ic0}>
|
||||||
<i .fas .fa-stack-2x .fa-#{iconText ic1}>
|
<i .fas .fa-stack-2x .fa-#{iconText ic1}>
|
||||||
|]
|
|]
|
||||||
|
|||||||
Reference in New Issue
Block a user