apostrophe/data/media/css/gtk/base.css

218 lines
4.5 KiB
CSS
Raw Normal View History

2014-07-06 20:35:24 +00:00
/*
TODO:
Look into compiling resources with glib-compile-resource etc. for
inclusion in templates
*/
@binding-set editor-bindings {
bind "<ctl>i" { "insert-italic" () };
bind "<ctl>b" { "insert-bold" () };
bind "<ctl>r" { "insert-hrule" () };
bind "<ctl>u" { "insert-listitem" () };
bind "<ctl>h" { "insert-header" () };
bind "<ctl>z" { "undo" () };
bind "<ctl>y" { "redo" () };
bind "<ctl><shift>d" { "insert-strikethrough" () };
/*bind "<ctl>t" { "insert-at-cursor" ('[ ] ') };*/
bind "<ctl><shift>z" { "redo" () };
}
@define-color code_bg_color mix(@theme_base_color, @theme_fg_color, 0.05);
2017-12-20 10:03:07 +00:00
/* Main window and text colors */
.apostrophe-window {
background: @theme_base_color;
color: @theme_fg_color;
caret-color: @theme_fg_color;
2014-07-06 20:35:24 +00:00
}
.apostrophe-window.focus:not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen) {
2019-11-23 01:08:47 +00:00
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.apostrophe-window.focus:not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):dir(ltr) scrollbar {
2019-11-23 01:08:47 +00:00
border-top-right-radius: 8px;
}
.apostrophe-window.focus:not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized):not(.fullscreen):dir(rtl) scrollbar {
2019-11-23 01:08:47 +00:00
border-top-left-radius: 8px;
}
#titlebar-revealer {
padding: 0;
}
.scrollbars-junction,
.scrollbar.trough {
2015-05-19 22:51:02 +00:00
background: transparent;
}
#titlebar-container {
background: @theme_base_color;
2017-12-11 15:45:54 +00:00
}
.apostrophe-editor {
2019-04-26 02:12:54 +00:00
-gtk-key-bindings: editor-bindings;
2014-07-06 20:35:24 +00:00
border: none;
2015-05-19 22:51:02 +00:00
background-color: transparent;
text-decoration-color: @error_color;
2019-04-26 02:12:54 +00:00
font-family: 'Fira Mono', monospace;
font-size: 16px;
}
.apostrophe-editor.size14 {
2019-04-26 02:12:54 +00:00
font-size: 14px;
}
.apostrophe-editor.size15 {
2019-04-26 02:12:54 +00:00
font-size: 15px;
}
.apostrophe-editor.size16 {
2019-04-26 02:12:54 +00:00
font-size: 16px;
}
.apostrophe-editor.size17 {
2019-04-26 02:12:54 +00:00
font-size: 17px;
}
.apostrophe-editor.size18 {
2019-04-26 02:12:54 +00:00
font-size: 18px;
2014-07-06 20:35:24 +00:00
}
.apostrophe-editor text {
background-color: @theme_base_color;
color: @theme_fg_color;
caret-color: @theme_fg_color;
2017-12-08 20:57:41 +00:00
}
.apostrophe-editor text selection {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
.apostrophe-editor button {
2014-07-06 20:35:24 +00:00
margin: 0;
padding: 0;
/*background: #CCC;*/
2014-07-06 20:35:24 +00:00
}
.apostrophe-editor toolbar {
/*background: transparent;*/
2014-07-06 20:35:24 +00:00
border: none;
padding: 0;
}
2019-04-26 02:12:54 +00:00
.inline-button {
color: alpha(@theme_fg_color, 0.6);
2019-12-09 01:15:09 +00:00
background-color: alpha(@theme_base_color, 0.9);
2014-07-06 20:35:24 +00:00
text-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;
padding: 0px 16px;
2017-12-20 10:03:07 +00:00
transition: 100ms ease-in;
2014-07-06 20:35:24 +00:00
}
2019-04-26 02:12:54 +00:00
.inline-button:hover,
.inline-button:checked {
color: @theme_fg_color;
background-color: mix(@theme_base_color, @theme_bg_color, 0.5);
2014-07-06 20:35:24 +00:00
}
.apostrophe-window treeview {
padding: 4px 4px 4px 4px;
}
.lexikon {
2017-12-07 06:56:39 +00:00
font-family: serif;
font-size: 12px;
background: @theme_bg_color;
border: 4px solid @theme_bg_color;
}
.lexikon .header {
2017-12-07 06:56:39 +00:00
font-family: serif;
font-size: 14px;
padding-top: 16px;
padding-bottom: 4px;
font-weight: bold;
}
.lexikon .header.first {
padding-top: 0px;
}
.lexikon .number {
padding-left: 16px;
padding-right: 4px;
}
.quick-preview-popup {
background-color: @theme_bg_color;
padding: 8px 12px 8px 12px;
}
.quick-preview-popup grid {
background-color: @theme_bg_color;
color: @theme_fg_color;
border-color: @theme_bg_color;
2015-05-19 20:32:55 +00:00
}
2018-04-18 17:29:13 +00:00
.quick-preview-popup label {
2020-02-25 12:32:10 +00:00
color: @theme_fg_color;
}
.plain-listview {
background-color: @fg-color;
2020-02-25 12:32:10 +00:00
}
/* theme selector */
.color-button {
padding: 12px;
border-radius: 999px;
-gtk-outline-radius: 999px;
outline-offset: 1px;
border: none;
-gtk-icon-shadow: none;
min-width: 0px;
min-height: 0px;
color: transparent;
transition: all 200ms ease-out;
}
.color-light {
background: #ffffff;
box-shadow: inset 0 0 0 1px #2e3436;
}
.color-light:checked {
color: #2e3436;
box-shadow: inset 0 0 0 2px @theme_selected_bg_color;
}
.color-dark {
background: #2d2d2d;
box-shadow: inset 0 0 0 1px alpha(black, .35);
}
.color-dark:checked {
color: #eeeeec;
box-shadow: inset 0 0 0 2px @theme_selected_bg_color;
}
.color-button:disabled {
background: #929292;
box-shadow: inset 0 0 0 1px #2e3436;
}