| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 2 | @use "../util"; |
| 3 | @use "../base/choose"; | ||||
| 4 | @use "../base/colors"; | ||||
| 5 | @use "../base/icons"; | ||||
| 6 | @use "../base/lengths"; | ||||
| 7 | @use "../base/mixins"; | ||||
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 8 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 9 | /** |
| 10 | * Rules for the datepicker widget | ||||
| 11 | * (used in the Virtual Collection creator) | ||||
| 12 | * in Kalamar. | ||||
| 13 | */ | ||||
| 14 | |||||
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 15 | div.datepicker { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 16 | @include choose.choose-item; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 17 | position: absolute; |
| 18 | display: inline-block; | ||||
| 19 | z-index: 90; | ||||
| 20 | font-size: 80%; | ||||
| 21 | padding: 4pt; | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 22 | box-shadow: choose.$choose-box-shadow; |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 23 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 24 | border: { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 25 | width: lengths.$border-size; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 26 | style: solid; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 27 | radius: lengths.$standard-border-radius; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 28 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 29 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 30 | > div { |
| 31 | font-size: 120%; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 32 | width: 45%; |
| 33 | |||||
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 34 | &.month { |
| 35 | float: right; | ||||
| 36 | } | ||||
| Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 37 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 38 | > span { |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 39 | display: inline-block; |
| 40 | overflow: hidden; | ||||
| 41 | white-space: nowrap; | ||||
| 42 | |||||
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 43 | &:first-child, |
| 44 | &:last-child { | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 45 | width: 15%; |
| 46 | &::before { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 47 | @include mixins.icon-font; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 48 | display: inline-block; |
| 49 | text-align: center; | ||||
| 50 | cursor: pointer; | ||||
| 51 | min-width: 14px; | ||||
| 52 | } | ||||
| Nils Diewald | bdf79c5 | 2015-04-29 23:47:13 +0000 | [diff] [blame] | 53 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 54 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 55 | &:first-child::before { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 56 | content: icons.$fa-previous; |
| Nils Diewald | bdf79c5 | 2015-04-29 23:47:13 +0000 | [diff] [blame] | 57 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 58 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 59 | &:last-child::before { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 60 | content: icons.$fa-next; |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 61 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 62 | |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 63 | &:nth-child(2) { |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 64 | display: inline-block; |
| 65 | cursor: pointer; | ||||
| 66 | width: 70%; | ||||
| 67 | text-align: center; | ||||
| 68 | text-overflow: ellipsis; | ||||
| 69 | |||||
| 70 | border: { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 71 | radius: lengths.$standard-border-radius; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 72 | style: solid; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 73 | width: lengths.$border-size; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 74 | color: transparent; |
| 75 | } | ||||
| 76 | |||||
| 77 | &:hover { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 78 | @include choose.choose-hover; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 79 | } |
| 80 | |||||
| 81 | &.selected { | ||||
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 82 | @include choose.choose-active; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 83 | } |
| Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 84 | } |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 85 | } |
| 86 | } | ||||
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 87 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 88 | table { |
| 89 | border-collapse: separate; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 90 | border-spacing: 1px; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 91 | } |
| Nils Diewald | 652e5f4 | 2015-05-10 18:11:45 +0000 | [diff] [blame] | 92 | |
| Akron | c59f732 | 2016-04-20 13:46:05 +0200 | [diff] [blame] | 93 | input { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 94 | @include choose.choose-item; |
| 95 | @include mixins.standard-text-padding; | ||||
| 96 | background-color: colors.$nearly-white; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 97 | width: 100%; |
| 98 | |||||
| Akron | c59f732 | 2016-04-20 13:46:05 +0200 | [diff] [blame] | 99 | border: { |
| 100 | style: solid; | ||||
| 101 | width: 1px; | ||||
| 102 | } | ||||
| Akron | c59f732 | 2016-04-20 13:46:05 +0200 | [diff] [blame] | 103 | } |
| 104 | |||||
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 105 | td { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 106 | @include mixins.standard-text-padding; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 107 | text-align: center; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 108 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 109 | border: { |
| 110 | style: solid; | ||||
| 111 | width: 1px; | ||||
| 112 | } | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 113 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 114 | &:not(.out) { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 115 | @include choose.choose-item; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 116 | cursor: pointer; |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 117 | background-color: colors.$nearly-white; |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 118 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 119 | &.today { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 120 | background-color: colors.$light-blue; |
| 121 | color: colors.$dark-blue; | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 122 | text-shadow: none; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 123 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 124 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 125 | &.selected { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 126 | @include choose.choose-active; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 127 | } |
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 128 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 129 | &:hover { |
| Akron | 7636edf | 2025-11-04 12:44:53 +0100 | [diff] [blame] | 130 | @include choose.choose-hover; |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 131 | } |
| 132 | } | ||||
| Akron | 7e5afce | 2020-08-25 15:50:19 +0200 | [diff] [blame] | 133 | |
| Nils Diewald | a122862 | 2015-04-25 01:59:10 +0000 | [diff] [blame] | 134 | &.out { |
| 135 | border-color: transparent; | ||||
| 136 | } | ||||
| 137 | } | ||||
| 138 | } | ||||