-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve timepicker design, align to datepicker #7054
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1070,6 +1070,76 @@ code { | |
background: $color-main-background; | ||
} | ||
|
||
|
||
/* ---- jQuery UI timepicker ---- */ | ||
.ui-widget.ui-timepicker { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jancborchardt you don't want to just add classes to exiting datepicker declarations (lines 990-1066)? edit: ok, if @skjnldsv wants to keep those separated, it's fine by me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The structure is ever so slightly different that copying and adjusting seemed to make more sense. If you see a good way to combine it yes, however I think it’s better to separate it. |
||
margin-top: 10px !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because in the header.scss we need to call it via this, to apply the popover styles:
Cause .ui-timepicker on its own is actually used inside the widget again (for the hours block and minutes block). And then we need to use the same identifier again in the styles.scss. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (It’s a bummer, I know, stupid structure they put there. ;) It looks quite funny if we only use .ui-timepicker in the header.scss ;D) |
||
width: auto !important; | ||
border-radius: $border-radius; | ||
|
||
.ui-widget-content { | ||
border: none !important; | ||
} | ||
|
||
.ui-state-default, | ||
.ui-widget-content .ui-state-default, | ||
.ui-widget-header .ui-state-default { | ||
border: 1px solid transparent; | ||
background: inherit; | ||
} | ||
.ui-widget-header { | ||
padding: 7px; | ||
font-size: 13px; | ||
border: none; | ||
background-color: $color-main-background; | ||
color: $color-main-text; | ||
|
||
.ui-timepicker-title { | ||
line-height: 1; | ||
font-weight: 300; | ||
} | ||
} | ||
.ui-timepicker-table { | ||
th { | ||
font-weight: normal; | ||
color: nc-lighten($color-main-text, 33%); | ||
opacity: .8; | ||
} | ||
tr:hover { | ||
background-color: inherit; | ||
} | ||
td { | ||
> * { | ||
border-radius: 50%; | ||
text-align: center; | ||
font-weight: normal; | ||
color: $color-main-text; | ||
padding: 8px 7px; | ||
font-size: .9em; | ||
line-height: 12px; | ||
} | ||
|
||
&.ui-timepicker-hour-cell a.ui-state-active, | ||
&.ui-timepicker-minute-cell a.ui-state-active, | ||
.ui-state-hover, | ||
.ui-state-focus { | ||
background-color: $color-primary; | ||
color: $color-primary-text; | ||
font-weight: bold; | ||
} | ||
|
||
&.ui-timepicker-minutes:not(.ui-state-hover) { | ||
color: nc-lighten($color-main-text, 33%); | ||
opacity: .8; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is deliberate to separate the "more important" hours from the minutes, in addition to the separation line (it was there before). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The opacity? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the .8 opacity on the minutes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels strange to have two blue colors then |
||
} | ||
|
||
&.ui-timepicker-hours { | ||
border-right: 1px solid $color-border; | ||
} | ||
} | ||
} | ||
} | ||
|
||
/* ---- DIALOGS ---- */ | ||
|
||
#oc-dialog-filepicker-content { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an issue with this line iirc. This needs to have its own properties I think! :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found it: #7007
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv I still don't understand what's the issue there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but this is separate from this pull request because it also applies to master. So let’s fix it in a separate PR, ok? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay! :)