This is a significant rewrite of the calendar popover. Instead of adding actions to the window, it uses a internal map to find the corresponding source.
230 lines
4.2 KiB
CSS
230 lines
4.2 KiB
CSS
@define-color event_shadow_color alpha(black, 0.2);
|
|
|
|
.views {
|
|
/* background color of every view */
|
|
background-color: @theme_base_color;
|
|
background-image: none;
|
|
}
|
|
|
|
.nav-button {
|
|
background-color: transparent;
|
|
background-image: none;
|
|
}
|
|
|
|
/* nav-bar labels */
|
|
.start-header {
|
|
font: bold 18;
|
|
color: @theme_selected_bg_color;
|
|
padding: 12px;
|
|
}
|
|
|
|
.end-header {
|
|
font: bold 18;
|
|
padding: 12px;
|
|
}
|
|
|
|
.calendar-view {
|
|
padding: 6px;
|
|
font: 10;
|
|
}
|
|
|
|
.calendar-view.header {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.calendar-view.current {
|
|
background-color: black;
|
|
border-radius: 2px;
|
|
color: white;
|
|
font: bold;
|
|
}
|
|
|
|
.calendar-view:selected {
|
|
color: @theme_selected_bg_color;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.calendar-view.overflow:hover {
|
|
font-weight: bold;
|
|
color: @theme_selected_bg_color;
|
|
background-image: linear-gradient(to bottom, shade(@theme_bg_color, 0.9), alpha(@theme_bg_color, 0.2) 10%,
|
|
alpha(@theme_bg_color, 0.2) 95%, shade(@theme_bg_color, 0.95) 100%);
|
|
}
|
|
|
|
.calendar-view.overflow {
|
|
font: 8;
|
|
}
|
|
|
|
.calendar-view.lines {
|
|
color: alpha(@theme_fg_color, 0.4);
|
|
}
|
|
|
|
.calendar-view.first-view-header {
|
|
font: bold 16;
|
|
color: @theme_selected_bg_color;
|
|
padding: 12px;
|
|
}
|
|
|
|
.calendar-view.second-view-header {
|
|
font: bold 16;
|
|
padding: 12px;
|
|
color: alpha(@theme_fg_color, 0.55);
|
|
}
|
|
|
|
/* Header the padding if for sizing, on drawing the spacing between cells,
|
|
* and the padding will be automatically calculated
|
|
* Because of year-view widget internals, the color property should be the same
|
|
* of .calendar-view.first-view-header selector */
|
|
.year-navigator {
|
|
padding: 6px 12px;
|
|
color: @theme_selected_bg_color;
|
|
}
|
|
|
|
.year-navigator.header {
|
|
color: @theme_selected_bg_color;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.year-navigator.lines {
|
|
color: alpha(@theme_fg_color, 0.4);
|
|
}
|
|
|
|
.year-navigator.days {
|
|
color: @theme_fg_color;
|
|
font: 9;
|
|
}
|
|
|
|
.year-navigator.sunday {
|
|
color: alpha(@theme_fg_color, 0.5);
|
|
}
|
|
|
|
.year-navigator.week-numbers {
|
|
color: alpha(@theme_fg_color, 0.2);
|
|
font: 6;
|
|
}
|
|
|
|
/* these two are supposed be changed in sync with .calendar-view */
|
|
.year-navigator.current {
|
|
background-color: @theme_fg_color;
|
|
border-radius: 2px;
|
|
color: white;
|
|
font: bold;
|
|
}
|
|
.year-navigator:selected {
|
|
color: @theme_selected_bg_color;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.sidebar-header {
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.italic-label {
|
|
font-style: italic;
|
|
}
|
|
|
|
GtkListBox.sidebar {
|
|
background-color: @theme_bg_color;
|
|
}
|
|
|
|
GtkBox.sidebar {
|
|
background-color: @theme_bg_color;
|
|
border-color: @borders;
|
|
border-style: solid;
|
|
}
|
|
|
|
GcalYearView GtkBox.sidebar:dir(ltr) {
|
|
border-left-width: 1px;
|
|
}
|
|
|
|
GcalYearView GtkBox.sidebar:dir(rtl) {
|
|
border-right-width: 1px;
|
|
}
|
|
|
|
GcalYearView GtkScrolledWindow {
|
|
border-top-width: 0;
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
GcalYearView GtkButton {
|
|
border-radius: 0;
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
GtkPopover.events {
|
|
background-color: @theme_bg_color;
|
|
padding: 0;
|
|
}
|
|
|
|
GtkPopover.events GtkBox {
|
|
border-top-left-radius: 6px;
|
|
border-top-right-radius: 6px;
|
|
}
|
|
|
|
GtkPopover.events GtkListBox {
|
|
background-color: @theme_bg_color;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
GtkPopover.events GtkScrolledWindow {
|
|
border-width: 0;
|
|
}
|
|
|
|
GtkPopover.events GtkButton {
|
|
border-radius: 6px;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
border-style: solid none none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
GcalEventWidget {
|
|
border-radius: 2px;
|
|
margin: 2px;
|
|
padding: 4px;
|
|
font: 10;
|
|
}
|
|
|
|
GcalEventWidget.color-dark {
|
|
color: white;
|
|
outline-color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
GcalEventWidget.color-dark:backdrop {
|
|
color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
GcalEventWidget.color-light {
|
|
color: black;
|
|
outline-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
GcalEventWidget.color-light:backdrop {
|
|
color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.middle-entry {
|
|
border-bottom-left-radius: 0px;
|
|
border-top-left-radius: 0px;
|
|
border-bottom-right-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
}
|
|
|
|
.middle-entry:dir(ltr) {
|
|
border-left: 0px;
|
|
}
|
|
|
|
.middle-entry:dir(rtl) {
|
|
border-right: 0px;
|
|
}
|
|
|
|
.search-viewport {
|
|
background-color: @theme_base_color;
|
|
}
|
|
|
|
/* calendar popover */
|
|
.calendar-list {
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|