apostrophe/data/media/style.css

171 lines
3.5 KiB
CSS

/*
TODO:
Look into compiling resources with glib-compile-resource etc. for
inclusion in templates
*/
@define-color dark_bg #333;
@binding-set window-bindings {
bind "<ctl>n" { "new-file" () };
bind "<ctl>o" { "open-file" () };
bind "<ctl>s" { "save-file" () };
bind "<ctl><shift>s" { "save-file-as" () };
bind "<ctl>d" { "toggle-focusmode" () };
bind "<ctl>p" { "toggle-preview" () };
bind "<ctl>w" { "close-window" () };
bind "<ctl>f" { "toggle-search" () };
bind "<ctl><shift>r" { "toggle-search-replace" () };
bind "<ctl><shift>f" { "toggle-search-replace" () };
bind "F11" { "toggle-fullscreen" () };
}
@binding-set editor-bindings {
bind "<ctl>i" { "insert-italic" () };
bind "<ctl>b" { "insert-bold" () };
bind "<ctl>r" { "insert-hrule" () };
bind "<ctl>u" { "insert-ulistitem" () };
bind "<ctl>h" { "insert-heading" () };
bind "<ctl>z" { "undo" () };
bind "<ctl>y" { "redo" () };
bind "<ctl><shift>z" { "redo" () };
}
#UberwriterWindow {
gtk-key-bindings: window-bindings;
border-radius: 7px 7px 3px 3px;
}
#UberwriterWindow.small #UberwriterEditor {
font: Inconsolata 12;
}
#UberwriterWindow.medium #UberwriterEditor {
font: Inconsolata 15;
}
#UberwriterWindow.large #UberwriterEditor {
font: Inconsolata 17;
}
#UberwriterWindow.dark_mode {
background: #333;
}
#UberwriterWindow.dark_mode #UberwriterEditor {
color: #CCC;
-GtkWidget-cursor-color: shade(#4D9FCE, 0.9);
}
.scrollbars-junction,
.scrollbar.trough {
background-color: transparent;
}
#UberwriterEditor {
border: none;
background-color: transparent;
color: #222;
-GtkWidget-cursor-color: shade(#4D9FCE, 0.9);
-GtkWidget-cursor-aspect-ratio: 0.1;
gtk-key-bindings: editor-bindings;
}
#UberwriterEditor:selected {
background-color: #4D9FCE;
color: #FFF;
}
#UberwriterEditor GtkButton {
margin: 0;
padding: 0;
/*background: #CCC;*/
}
#UberwriterWindow GtkToolbar {
/*background: transparent;*/
border: none;
padding: 0;
}
#status_bar_box GtkLabel {
color: #666;
}
#status_bar_box GtkButton {
/* finding reset */
background-color: initial;
text-shadow: inherit;
icon-shadow: inherit;
box-shadow: initial;
background-clip: initial;
background-origin: initial;
background-size: initial;
background-position: initial;
background-repeat: initial;
background-image: initial;
border-image-source: initial;
border-image-repeat: initial;
border-image-slice: initial;
border-image-width: initial;
border-style: none;
-GtkButton-images: true;
border-radius: 2px;
color: #666;
padding: 3px 5px;
-GtkButton-child-displacement-y: 0px;
-GtkButton-child-displacement-x: 0px;
-GtkButton-default-border: 0;
-GtkButton-image-spacing: 5px;
-GtkButton-interior-focus: false;
-GtkButton-inner-border: 0;
transition: 500ms ease-in;
}
#status_bar_box GtkButton:hover,
#status_bar_box GtkButton:active:hover {
transition: 0s ease-in;
color: #333;
background: #EEE;
}
#status_bar_box GtkButton:active {
color: #EEE;
background-color: #EEE;
background-image: none;
box-shadow: 0 0 2px rgba(0,0,0,0.4)
}
.dark_mode #status_bar_box GtkButton {
}
.dark_mode #status_bar_box GtkButton:hover,
.dark_mode #status_bar_box GtkButton:active {
background-color: shade(@dark_bg, 0.8);
}
#status_bar_box GtkSeparator {
border-color: #999;
border-right: none;
}
#PreviewMenuItem GtkImage {
border-radius: 2px;
color: #666;
padding: 3px 5px;
border: none;
background: #FFF;
}
#UberwriterWindow GtkTreeView {
color: #333;
font-size: 10px;
}
#LexikonBubble {
font: serif 10;
}