diff options
| author | Fuwn <[email protected]> | 2020-12-14 23:21:39 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-12-14 23:21:39 -0800 |
| commit | 823344c19094680e80e2b56449a243e183db8b06 (patch) | |
| tree | 92277700547ea671331828caa258ace7aaaa46d5 /semantic/src/definitions/modules/calendar.less | |
| parent | repo: angular (diff) | |
| download | me-823344c19094680e80e2b56449a243e183db8b06.tar.xz me-823344c19094680e80e2b56449a243e183db8b06.zip | |
:star:
Diffstat (limited to 'semantic/src/definitions/modules/calendar.less')
| -rw-r--r-- | semantic/src/definitions/modules/calendar.less | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/semantic/src/definitions/modules/calendar.less b/semantic/src/definitions/modules/calendar.less new file mode 100644 index 0000000..aaa7f11 --- /dev/null +++ b/semantic/src/definitions/modules/calendar.less @@ -0,0 +1,195 @@ +/*! + * # Fomantic-UI - Calendar + * http://github.com/fomantic/Fomantic-UI/ + * + * + * Released under the MIT license + * http://opensource.org/licenses/MIT + * + */ + +/******************************* + Theme +*******************************/ + +@type : 'module'; +@element : 'calendar'; + +@import (multiple) '../../theme.config'; + +/******************************* + Popup +*******************************/ + +.ui.calendar .ui.popup { + max-width: none; + padding: 0; + border: none; + user-select: none; +} + +/******************************* + Calendar +*******************************/ + +.ui.calendar .calendar:focus { + outline: 0; +} + +/******************************* + Grid +*******************************/ + +.ui.calendar .ui.popup .ui.grid { + display: block; + white-space: nowrap; +} + +.ui.calendar .ui.popup .ui.grid > .column { + width: auto; +} + +/******************************* + Table +*******************************/ + +.ui.calendar .ui.table.year, +.ui.calendar .ui.table.month, +.ui.calendar .ui.table.minute { + min-width: 15em; +} + +.ui.calendar .ui.table.day { + min-width: 18em; +} + +.ui.calendar .ui.table.day.andweek { + min-width: 22em; +} + +.ui.calendar .ui.table.hour { + min-width: 20em; +} + +.ui.calendar .ui.table tr th, +.ui.calendar .ui.table tr td { + padding: 0.5em; + white-space: nowrap; +} + +.ui.calendar .ui.table tr th { + border-left: none; +} + +.ui.calendar .ui.table tr th i.icon { + margin: 0; +} + +.ui.calendar .ui.table tr:first-child th { + position: relative; + padding-left: 0; + padding-right: 0; +} + +.ui.calendar .ui.table.day tr:first-child th { + border: none; +} + +.ui.calendar .ui.table.day tr:nth-child(2) th { + padding-top: 0.2em; + padding-bottom: 0.3em; +} + +.ui.calendar .ui.table tr td { + padding-left: 0.1em; + padding-right: 0.1em; +} + +.ui.calendar .ui.table tr .link { + cursor: pointer; +} + +.ui.calendar .ui.table tr .prev.link { + width: 14.28571429%; + position: absolute; + left: 0; +} + +.ui.calendar .ui.table tr .next.link { + width: 14.28571429%; + position: absolute; + right: 0; +} + +.ui.ui.calendar .ui.table tr .disabled { + pointer-events: auto; + cursor: default; + color: @disabledTextColor; +} + +.ui.calendar .ui.table tr .adjacent:not(.disabled) { + color: @adjacentTextColor; + background: @adjacentBackground; +} + +/*-------------- + States +---------------*/ + +.ui.calendar .ui.table tr td.today { + font-weight: @todayFontWeight; +} + +.ui.calendar .ui.table tr td.range { + background: @rangeBackground; + color: @rangeTextColor; + box-shadow: @rangeBoxShadow; +} + +.ui.calendar:not(.disabled) .calendar:focus .ui.table tbody tr td.focus, +.ui.calendar:not(.disabled) .calendar.active .ui.table tbody tr td.focus { + box-shadow: @focusBoxShadow; +} + +& when (@variationCalendarInverted) { + .ui.inverted.calendar .ui.table.inverted tr td.range { + background: @rangeInvertedBackground; + color: @rangeInvertedTextColor; + box-shadow: @rangeInvertedBoxShadow; + } + + .ui.inverted.calendar:not(.disabled) .calendar:focus .ui.table.inverted tbody tr td.focus, + .ui.inverted.calendar:not(.disabled) .calendar.active .ui.table.inverted tbody tr td.focus { + box-shadow: @focusInvertedBoxShadow; + } + .ui.inverted.calendar .ui.inverted.table tr .disabled { + color: @invertedDisabledTextColor; + } + + .ui.inverted.calendar .ui.inverted.table tr .adjacent:not(.disabled) { + color: @adjacentInvertedTextColor; + background: @adjacentInvertedBackground; + } +} + +/******************************* + States +*******************************/ + +& when (@variationCalendarDisabled) { + /*-------------------- + Disabled + ---------------------*/ + + .ui.disabled.calendar { + opacity: @disabledOpacity; + } + + .ui.disabled.calendar > .input, + .ui.disabled.calendar .ui.table tr .link { + pointer-events: none; + } +} + + +.loadUIOverrides(); |