forked from Mirrors/apostrophe
269 lines
5.3 KiB
CSS
269 lines
5.3 KiB
CSS
/*
|
|
TODO:
|
|
Look into compiling resources with glib-compile-resource etc. for
|
|
inclusion in templates
|
|
*/
|
|
|
|
@define-color dark_bg #333;
|
|
@define-color light_bg #EDEDED;
|
|
|
|
@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>b" { "toggle-bibtex" () };
|
|
bind "<ctl><shift>r" { "toggle-search-replace" () };
|
|
bind "<ctl><shift>f" { "toggle-search-replace" () };
|
|
bind "F11" { "toggle-fullscreen" () };
|
|
bind "F7" { "toggle-spellcheck" () };
|
|
}
|
|
|
|
@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>d" { "insert-strikeout" () };
|
|
/*bind "<ctl>t" { "insert-at-cursor" ('[ ] ') };*/
|
|
bind "<ctl><shift>z" { "redo" () };
|
|
}
|
|
|
|
/* Main window and text colors */
|
|
|
|
.uberwriter_window {
|
|
-gtk-key-bindings: window-bindings;
|
|
/*border-radius: 7px 7px 3px 3px;*/
|
|
background: @light_bg;
|
|
caret-color: @dark_bg;
|
|
}
|
|
|
|
.uberwriter_window.dark_mode {
|
|
background: @dark_bg;
|
|
caret-color: @light_bg;
|
|
}
|
|
|
|
.uberwriter_window.dark_mode .uberwriter-editor text{
|
|
background: @dark_bg;
|
|
caret-color: @light_bg;
|
|
color: @light_bg;
|
|
}
|
|
|
|
.uberwriter_window.small .uberwriter-editor {
|
|
font-family: 'Fira Mono', monospace;
|
|
font-size: 12px;
|
|
}
|
|
.uberwriter_window grid {
|
|
background-color: @light_bg;
|
|
}
|
|
|
|
.uberwriter_window.dark_mode grid,
|
|
.uberwriter_window.dark_mode scrolledwindow {
|
|
background-color: @dark_bg;
|
|
}
|
|
|
|
#UberwriterWindow.medium .uberwriter-editor {
|
|
font-family: 'Fira Mono', monospace;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#UberwriterWindow.large .uberwriter-editor {
|
|
font-family: 'Fira Mono', monospace;
|
|
font-size: 18px;
|
|
}
|
|
|
|
#titlebar_revealer {
|
|
padding: 0;
|
|
}
|
|
|
|
.scrollbars-junction,
|
|
.scrollbar.trough {
|
|
background: transparent;
|
|
}
|
|
|
|
#titlebar_container {
|
|
background: @light_bg;
|
|
}
|
|
|
|
#titlebar_container.dark_mode {
|
|
background: @dark_bg;
|
|
}
|
|
|
|
.uberwriter-editor {
|
|
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;
|
|
}
|
|
|
|
.uberwriter-editor text {
|
|
background-color: @light_bg;
|
|
color: #222;
|
|
}
|
|
|
|
.uberwriter-editor:selected {
|
|
background-color: #4D9FCE;
|
|
color: #FFF;
|
|
}
|
|
|
|
.uberwriter-editor button {
|
|
margin: 0;
|
|
padding: 0;
|
|
/*background: #CCC;*/
|
|
}
|
|
|
|
.uberwriter-editor toolbar {
|
|
/*background: transparent;*/
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
|
|
.status_bar_box label {
|
|
color: #666;
|
|
}
|
|
|
|
.status_bar_box button {
|
|
/* finding reset */
|
|
background-color: @light_bg;
|
|
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;
|
|
-button-images: true;
|
|
border-radius: 2px;
|
|
color: #666;
|
|
padding: 3px 5px;
|
|
transition: 100ms ease-in;
|
|
}
|
|
|
|
.status_bar_box button:hover,
|
|
.status_bar_box button:checked {
|
|
transition: 0s ease-in;
|
|
color: @light_bg;
|
|
background-color: #666;
|
|
}
|
|
|
|
.status_bar_box button:hover label,
|
|
.status_bar_box button:checked label {
|
|
color: @light_bg;
|
|
}
|
|
|
|
.status_bar_box button: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 button {
|
|
background-color: @dark_bg;
|
|
}
|
|
.dark_mode .status_bar_box label {
|
|
color: @light_bg;
|
|
}
|
|
.dark_mode .status_bar_box button:hover,
|
|
.dark_mode .status_bar_box button:checked {
|
|
background-color: @light_bg;
|
|
color: #666;
|
|
}
|
|
|
|
.dark_mode .status_bar_box button:hover label,
|
|
.dark_mode .status_bar_box button:checked label{
|
|
color: #666;
|
|
}
|
|
.status_bar_box separator {
|
|
border-color: #999;
|
|
border-right: none;
|
|
}
|
|
|
|
#PreviewMenuItem image {
|
|
border-radius: 2px;
|
|
color: #666;
|
|
padding: 3px 5px;
|
|
border: none;
|
|
background: #FFF;
|
|
}
|
|
|
|
#UberwriterWindow treeview {
|
|
color: #333;
|
|
font-size: 10px;
|
|
}
|
|
|
|
#LexikonBubble {
|
|
/*font: serif 10;*/
|
|
font-family: serif;
|
|
font-size: 10px;
|
|
background: @light_bg;
|
|
border-radius: 4px;
|
|
border-color: @light_bg;
|
|
margin: 5px;
|
|
padding: 5px;
|
|
}
|
|
|
|
#QuickPreviewPopup {
|
|
padding: 5px;
|
|
margin: 5px;
|
|
border: 1px solid #333;
|
|
background: @ligth_bg;
|
|
border-radius: 3px;
|
|
border-color: @light_bg;
|
|
}
|
|
|
|
#LexikonBubble label {
|
|
/*padding: 5px;*/
|
|
}
|
|
|
|
#LexikonBubble {
|
|
background-color: @light_bg;
|
|
border: 5px solid @light_bg;
|
|
border-color: @light_bg
|
|
}
|
|
|
|
#LexikonBubble .lexikon_heading {
|
|
/*font: serif 12;*/
|
|
font-family: serif;
|
|
font-size: 12px;
|
|
padding-bottom: 5px;
|
|
padding-top: 5px;
|
|
font-weight: bold;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
#LexikonBubble .lexikon_num {
|
|
padding-right: 5px;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
popover {
|
|
background-color: @light_bg;
|
|
}
|
|
|
|
popover grid {
|
|
background-color: @light_bg;
|
|
color: @dark_bg;
|
|
border-color: @light_bg;
|
|
}
|
|
|
|
popover label {
|
|
color: @dark_bg;
|
|
} |