1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 20:10:03 +00:00
TiddlyWiki5/themes/tiddlywiki/vanilla/base.tid

1600 lines
29 KiB
Plaintext
Raw Normal View History

title: $:/themes/tiddlywiki/vanilla/base
tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
/*
** Start with the normalize CSS reset, and then belay some of its effects
*/
{{$:/themes/tiddlywiki/vanilla/reset}}
*, input[type="search"] {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
html button {
line-height: 1.2;
}
/*
** Basic element styles
*/
html {
font-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}};
text-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */
}
2014-04-14 20:30:42 +00:00
html:-webkit-full-screen {
background-color: <<colour page-background>>;
}
body.tc-body {
font-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}};
line-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}};
color: <<colour foreground>>;
background-color: <<colour page-background>>;
word-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.2;
font-weight: 300;
}
pre {
display: block;
padding: 14px;
2014-03-11 08:29:11 +00:00
margin-top: 1em;
margin-bottom: 1em;
word-break: normal;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: <<colour pre-background>>;
border: 1px solid <<colour pre-border>>;
padding: 0 3px 2px;
border-radius: 3px;
}
code {
color: <<colour code-foreground>>;
background-color: <<colour code-background>>;
border: 1px solid <<colour code-border>>;
white-space: pre-wrap;
padding: 0 3px 2px;
border-radius: 3px;
}
2013-12-05 16:20:37 +00:00
blockquote {
border-left: 5px solid <<colour blockquote-bar>>;
2013-12-05 16:20:37 +00:00
margin-left: 25px;
padding-left: 10px;
}
2013-12-11 13:12:56 +00:00
dl dt {
font-weight: bold;
margin-top: 6px;
}
.tc-muted {
2014-07-31 08:28:46 +00:00
color: <<colour muted-foreground>>;
}
/*
Markdown likes putting code elements inside pre elements
*/
pre > code {
padding: 0;
border: none;
background-color: inherit;
color: inherit;
}
table {
border: 1px solid <<colour table-border>>;
width: auto;
max-width: 100%;
caption-side: bottom;
2014-03-11 08:29:11 +00:00
margin-top: 1em;
margin-bottom: 1em;
}
table th, table td {
padding: 0 7px 0 7px;
border-top: 1px solid <<colour table-border>>;
border-left: 1px solid <<colour table-border>>;
}
table thead tr td, table th {
background-color: <<colour table-header-background>>;
font-weight: bold;
}
table tfoot tr td {
background-color: <<colour table-footer-background>>;
}
.tc-csv-table {
2014-03-31 11:41:02 +00:00
white-space: nowrap;
}
.tc-tiddler-frame img,
.tc-tiddler-frame svg,
.tc-tiddler-frame canvas,
.tc-tiddler-frame embed,
.tc-tiddler-frame iframe {
max-width: 100%;
}
.tc-tiddler-body > embed,
.tc-tiddler-body > iframe {
width: 100%;
height: 600px;
}
/*
** Links
*/
a.tc-tiddlylink {
text-decoration: none;
font-weight: normal;
color: <<colour tiddler-link-foreground>>;
-webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists a.tc-tiddlylink {
color: <<colour sidebar-tiddler-link-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists a.tc-tiddlylink:hover {
color: <<colour sidebar-tiddler-link-foreground-hover>>;
}
a.tc-tiddlylink:hover {
text-decoration: underline;
}
a.tc-tiddlylink-resolves {
}
a.tc-tiddlylink-shadow {
font-weight: bold;
}
a.tc-tiddlylink-shadow.tc-tiddlylink-resolves {
font-weight: normal;
}
a.tc-tiddlylink-missing {
font-style: italic;
}
a.tc-tiddlylink-external {
text-decoration: underline;
color: <<colour external-link-foreground>>;
background-color: <<colour external-link-background>>;
}
a.tc-tiddlylink-external:visited {
color: <<colour external-link-foreground-visited>>;
background-color: <<colour external-link-background-visited>>;
}
a.tc-tiddlylink-external:hover {
color: <<colour external-link-foreground-hover>>;
background-color: <<colour external-link-background-hover>>;
}
/*
** Drag and drop styles
*/
.tc-tiddler-dragger {
position: relative;
z-index: -10000;
}
.tc-tiddler-dragger-inner {
position: absolute;
display: inline-block;
padding: 8px 20px;
font-size: 16.9px;
font-weight: bold;
line-height: 20px;
color: <<colour dragger-foreground>>;
text-shadow: 0 1px 0 rgba(0, 0, 0, 1);
white-space: nowrap;
vertical-align: baseline;
background-color: <<colour dragger-background>>;
border-radius: 20px;
}
.tc-tiddler-dragger-cover {
position: absolute;
background-color: <<colour page-background>>;
}
.tc-dropzone {
position: relative;
}
.tc-dropzone.tc-dragover:before {
z-index: 10000;
display: block;
position: absolute;
position: -webkit-sticky;
position: -moz-sticky;
position: -o-sticky;
position: -ms-sticky;
position: sticky;
top: 0;
left: 0;
right: 0;
background: <<colour dropzone-background>>;
text-align: center;
content: "<<lingo DropMessage>>";
}
/*
** Buttons
*/
button svg, button img {
vertical-align: middle;
}
.tc-btn-invisible {
padding: 0;
margin: 0;
background: none;
border: none;
}
.tc-btn-icon svg {
height: 1em;
width: 1em;
fill: <<colour muted-foreground>>;
}
.tc-btn-text {
padding: 0;
margin: 0;
}
.tc-btn-big-green {
padding: 8px;
2013-12-05 16:20:37 +00:00
margin: 4px 8px 4px 8px;
background: <<colour download-background>>;
color: <<colour download-foreground>>;
fill: <<colour download-foreground>>;
border: none;
font-size: 1.2em;
line-height: 1.4em;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists input {
2014-03-25 21:53:18 +00:00
color: <<colour foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists button {
color: <<colour sidebar-button-foreground>>;
2014-08-02 11:16:14 +00:00
fill: <<colour sidebar-button-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists button.tc-btn-mini {
color: <<colour sidebar-muted-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists button.tc-btn-mini:hover {
color: <<colour sidebar-muted-foreground-hover>>;
}
button svg.tc-image-button, button .tc-image-button img {
height: 1em;
2014-07-28 10:29:06 +00:00
width: 1em;
}
/*
** Tags and missing tiddlers
*/
2014-08-28 18:41:29 +00:00
.tc-tag-list-item {
position: relative;
display: inline-block;
margin-right: 7px;
}
2014-08-28 18:41:29 +00:00
.tc-tags-wrapper {
margin: 4px 0 14px 0;
}
2014-08-28 18:41:29 +00:00
.tc-missing-tiddler-label {
font-style: italic;
font-weight: normal;
display: inline-block;
font-size: 11.844px;
line-height: 14px;
white-space: nowrap;
vertical-align: baseline;
}
2014-08-28 18:41:29 +00:00
button.tc-tag-label, span.tc-tag-label {
display: inline-block;
2014-11-02 21:22:45 +00:00
padding: 0.16em 0.7em;
font-size: 0.9em;
font-weight: 300;
line-height: 1.2em;
color: <<colour tag-foreground>>;
white-space: nowrap;
vertical-align: baseline;
background-color: <<colour tag-background>>;
border-radius: 1em;
}
.tc-untagged-separator {
width: 10em;
left: 0;
margin-left: 0;
border: 0;
height: 1px;
background: <<colour tab-divider>>;
}
button.tc-untagged-label {
background-color: <<colour untagged-background>>;
}
2014-08-28 18:41:29 +00:00
.tc-tag-label svg, .tc-tag-label img {
height: 1em;
width: 1em;
fill: <<colour tag-foreground>>;
}
.tc-tag-manager-table .tc-tag-label {
white-space: normal;
}
.tc-tag-manager-tag {
width: 100%;
}
/*
** Page layout
*/
2014-08-28 18:41:29 +00:00
.tc-topbar {
2014-03-25 21:54:06 +00:00
position: fixed;
z-index: 1200;
}
2014-08-28 18:41:29 +00:00
.tc-topbar-left {
left: 29px;
top: 5px;
2014-03-25 21:54:06 +00:00
}
2014-08-28 18:41:29 +00:00
.tc-topbar-right {
top: 5px;
right: 29px;
2014-03-25 21:54:06 +00:00
}
2014-08-28 18:41:29 +00:00
.tc-topbar button {
2014-03-25 21:54:06 +00:00
padding: 8px;
}
2014-08-28 18:41:29 +00:00
.tc-topbar svg {
2014-03-25 21:54:06 +00:00
fill: <<colour muted-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-topbar button:hover svg {
2014-03-25 21:54:06 +00:00
fill: <<colour foreground>>;
}
.tc-sidebar-header {
color: <<colour sidebar-foreground>>;
2014-06-21 10:49:42 +00:00
fill: <<colour sidebar-foreground>>;
}
.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {
font-weight: 300;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-header .tc-sidebar-lists p {
margin-top: 3px;
margin-bottom: 3px;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-header .tc-missing-tiddler-label {
color: <<colour sidebar-foreground>>;
}
.tc-advanced-search input {
width: 60%;
}
.tc-search a svg {
2014-10-07 21:11:43 +00:00
width: 1.2em;
height: 1.2em;
vertical-align: middle;
}
.tc-search-results {
padding-top: 14px;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls {
margin-top: 14px;
2014-07-28 10:29:06 +00:00
font-size: 1.5em;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls button {
2014-07-28 10:29:06 +00:00
margin-right: 0.5em;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls a.tc-tiddlylink:hover {
text-decoration: none;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls img {
width: 1em;
}
2014-11-13 17:09:21 +00:00
.tc-page-controls svg,
.tc-search svg {
fill: <<colour sidebar-controls-foreground>>;
}
2014-11-13 17:09:21 +00:00
.tc-page-controls button:hover svg, .tc-page-controls a:hover svg,
.tc-search button:hover svg, .tc-search a:hover svg {
2014-02-23 23:09:58 +00:00
fill: <<colour sidebar-controls-foreground-hover>>;
}
2014-08-28 18:41:29 +00:00
.tc-menu-list-item {
white-space: nowrap;
}
2014-08-28 18:41:29 +00:00
.tc-menu-list-count {
font-weight: bold;
}
2014-08-28 18:41:29 +00:00
.tc-menu-list-subitem {
padding-left: 7px;
}
.tc-story-river {
position: relative;
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-sidebar-header {
padding: 14px;
min-height: 32px;
margin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
}
.tc-story-river {
position: relative;
padding: 0;
}
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-message-box {
margin: 21px -21px 21px -21px;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-scrollable {
position: fixed;
top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
left: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};
bottom: 0;
right: 0;
overflow-y: auto;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 0 0 -42px;
padding: 71px 0 28px 42px;
}
.tc-story-river {
position: relative;
left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};
top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
width: {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}};
padding: 42px 42px 42px 42px;
}
<<if-no-sidebar "
.tc-story-river {
width: auto;
}
">>
}
@media print {
2014-07-09 14:22:53 +00:00
body.tc-body {
2014-07-09 14:22:53 +00:00
background-color: transparent;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-header, .tc-topbar {
display: none;
}
.tc-story-river {
margin: 0;
padding: 0;
}
.tc-story-river .tc-tiddler-frame {
margin: 0;
border: none;
padding: 28px;
}
}
/*
** Tiddler styles
*/
.tc-tiddler-frame {
margin-bottom: 28px;
background-color: <<colour tiddler-background>>;
border: 1px solid <<colour tiddler-border>>;
}
.tc-tiddler-info {
padding: 14px 42px 14px 42px;
background-color: <<colour tiddler-info-background>>;
border-top: 1px solid <<colour tiddler-info-border>>;
border-bottom: 1px solid <<colour tiddler-info-border>>;
}
.tc-tiddler-info p {
2014-08-02 11:16:14 +00:00
margin-top: 3px;
margin-bottom: 3px;
}
2014-08-28 18:41:29 +00:00
.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected {
background-color: <<colour tiddler-info-tab-background>>;
border-bottom: 1px solid <<colour tiddler-info-tab-background>>;
}
2014-08-28 18:41:29 +00:00
.tc-view-field-table {
width: 100%;
}
2014-08-28 18:41:29 +00:00
.tc-view-field-name {
width: 1%; /* Makes this column be as narrow as possible */
text-align: right;
font-style: italic;
2014-06-21 10:17:04 +00:00
font-weight: 200;
}
2014-08-28 18:41:29 +00:00
.tc-view-field-value {
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-tiddler-frame {
padding: 14px 14px 14px 14px;
}
.tc-tiddler-info {
margin: 0 -14px 0 -14px;
}
}
@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tc-tiddler-frame {
padding: 28px 42px 42px 42px;
width: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}};
border-radius: 2px;
}
<<if-no-sidebar "
.tc-tiddler-frame {
width: 100%;
}
">>
.tc-tiddler-info {
margin: 0 -42px 0 -42px;
}
}
2014-08-28 18:41:29 +00:00
.tc-site-title,
.tc-titlebar {
font-weight: 300;
font-size: 2.35em;
line-height: 1.2em;
color: <<colour tiddler-title-foreground>>;
2014-06-15 07:37:58 +00:00
margin: 0;
}
2014-11-22 09:43:01 +00:00
.tc-tiddler-title-icon {
vertical-align: middle;
}
2014-08-28 18:41:29 +00:00
.tc-system-title-prefix {
color: <<colour muted-foreground>>;
}
.tc-titlebar h2 {
font-size: 1em;
display: inline;
}
.tc-titlebar img {
height: 1em;
}
2014-08-28 18:41:29 +00:00
.tc-subtitle {
font-size: 0.9em;
color: <<colour tiddler-subtitle-foreground>>;
font-weight: 300;
}
.tc-tiddler-missing .tc-title {
font-style: italic;
font-weight: normal;
}
.tc-tiddler-frame .tc-tiddler-controls {
float: right;
}
.tc-tiddler-controls .tc-drop-down {
2014-07-28 10:29:06 +00:00
font-size: 0.6em;
}
.tc-tiddler-controls .tc-drop-down .tc-drop-down {
font-size: 1em;
}
.tc-tiddler-controls > span > button {
vertical-align: baseline;
margin-left:5px;
}
.tc-tiddler-controls button svg, .tc-tiddler-controls button img {
height: 0.75em;
fill: <<colour tiddler-controls-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-tiddler-controls button.tc-selected svg {
fill: <<colour tiddler-controls-foreground-selected>>;
}
.tc-tiddler-controls button.tc-btn-invisible:hover svg {
fill: <<colour tiddler-controls-foreground-hover>>;
}
@media print {
.tc-tiddler-controls {
display: none;
}
}
.tc-tiddler-help { /* Help prompts within tiddler template */
color: <<colour muted-foreground>>;
margin-top: 14px;
}
.tc-tiddler-help a.tc-tiddlylink {
color: <<colour very-muted-foreground>>;
}
.tc-tiddler-frame input.tc-edit-texteditor, .tc-tiddler-frame textarea.tc-edit-texteditor {
width: 100%;
padding: 3px 3px 3px 3px;
border: 1px solid <<colour tiddler-editor-border>>;
line-height: 1.3em;
-webkit-appearance: none;
margin: 4px 0 4px 0;
}
.tc-tiddler-frame .tc-binary-warning {
width: 100%;
height: 5em;
text-align: center;
padding: 3em 3em 6em 3em;
background: <<colour alert-background>>;
border: 1px solid <<colour alert-border>>;
}
.tc-tiddler-frame input.tc-edit-texteditor {
background-color: <<colour tiddler-editor-background>>;
}
2014-08-28 17:47:21 +00:00
canvas.tc-edit-bitmapeditor {
border: 6px solid <<colour tiddler-editor-border-image>>;
cursor: crosshair;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
margin-top: 6px;
margin-bottom: 6px;
}
2014-08-28 17:47:21 +00:00
.tc-edit-bitmapeditor-width {
display: block;
}
2014-08-28 17:47:21 +00:00
.tc-edit-bitmapeditor-height {
display: block;
}
.tc-tiddler-frame .tc-tiddler-body {
font-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};
line-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};
}
.tc-titlebar, .tc-tiddler-edit-title {
overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */
}
/*
** Toolbar buttons
*/
2014-08-28 18:41:29 +00:00
.tc-page-controls svg.tc-image-new-button {
fill: <<colour toolbar-new-button>>;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls svg.tc-image-options-button {
fill: <<colour toolbar-options-button>>;
}
2014-08-28 18:41:29 +00:00
.tc-page-controls svg.tc-image-save-button {
fill: <<colour toolbar-save-button>>;
}
.tc-tiddler-controls button svg.tc-image-info-button {
fill: <<colour toolbar-info-button>>;
}
.tc-tiddler-controls button svg.tc-image-edit-button {
fill: <<colour toolbar-edit-button>>;
}
.tc-tiddler-controls button svg.tc-image-close-button {
fill: <<colour toolbar-close-button>>;
}
.tc-tiddler-controls button svg.tc-image-delete-button {
fill: <<colour toolbar-delete-button>>;
}
.tc-tiddler-controls button svg.tc-image-cancel-button {
fill: <<colour toolbar-cancel-button>>;
}
.tc-tiddler-controls button svg.tc-image-done-button {
fill: <<colour toolbar-done-button>>;
}
/*
** Tiddler edit mode
*/
.tc-tiddler-edit-frame em.tc-edit {
color: <<colour muted-foreground>>;
font-style: normal;
}
2014-08-28 17:47:21 +00:00
.tc-edit-type-dropdown a.tc-tiddlylink-missing {
font-style: normal;
}
2014-08-28 17:47:21 +00:00
.tc-edit-tags {
border: 1px solid <<colour tiddler-editor-border>>;
padding: 4px 8px 4px 8px;
}
2014-08-28 17:47:21 +00:00
.tc-edit-add-tag {
display: inline-block;
}
2014-08-28 18:41:29 +00:00
.tc-edit-add-tag .tc-add-tag-name input {
width: 50%;
}
2014-08-28 18:41:29 +00:00
.tc-edit-tags .tc-tag-label {
display: inline-block;
}
2014-08-28 17:47:21 +00:00
.tc-edit-tags-list {
margin: 14px 0 14px 0;
}
.tc-remove-tag-button {
padding-left: 4px;
}
.tc-tiddler-preview {
overflow: auto;
}
.tc-tiddler-preview-preview {
float: right;
width: 48%;
border: 1px solid <<colour tiddler-editor-border>>;
margin: 4px 3px 3px 3px;
padding: 3px 3px 3px 3px;
}
.tc-tiddler-preview-edit {
width: 48%;
}
2014-08-28 17:47:21 +00:00
.tc-edit-fields {
width: 100%;
}
2014-08-28 17:47:21 +00:00
.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {
border: none;
padding: 4px;
}
2014-08-28 17:47:21 +00:00
.tc-edit-fields > tbody > .tc-edit-field:nth-child(odd) {
background-color: <<colour tiddler-editor-fields-odd>>;
}
2014-08-28 17:47:21 +00:00
.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {
background-color: <<colour tiddler-editor-fields-even>>;
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-name {
text-align: right;
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-value input {
width: 100%;
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-remove {
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-remove svg {
height: 1em;
width: 1em;
fill: <<colour muted-foreground>>;
vertical-align: middle;
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-add-name {
display: inline-block;
width: 15%;
}
.tc-edit-field-add-value {
display: inline-block;
width: 40%;
}
2014-08-28 17:47:21 +00:00
.tc-edit-field-add-button {
display: inline-block;
width: 10%;
}
/*
** Storyview Classes
*/
.tc-storyview-zoomin-tiddler {
position: absolute;
display: block;
width: 100%;
width: calc(100% - 84px);
}
/*
** Dropdowns
*/
2014-08-28 21:22:40 +00:00
.tc-btn-dropdown {
text-align: left;
}
2014-08-28 21:22:40 +00:00
.tc-btn-dropdown svg, .tc-btn-dropdown img {
height: 1em;
width: 1em;
fill: <<colour muted-foreground>>;
}
.tc-drop-down-wrapper {
2014-08-09 12:12:23 +00:00
position: relative;
}
.tc-drop-down {
min-width: 380px;
border: 1px solid <<colour dropdown-border>>;
background-color: <<colour dropdown-background>>;
padding: 7px 0 7px 0;
margin: 4px 0 0 0;
white-space: nowrap;
text-shadow: none;
line-height: 1.4;
}
.tc-drop-down .tc-drop-down {
margin-left: 14px;
}
.tc-drop-down button svg, .tc-drop-down a svg {
2014-07-28 10:29:06 +00:00
fill: <<colour foreground>>;
}
.tc-drop-down button.tc-btn-invisible:hover svg {
2014-07-28 10:29:06 +00:00
fill: <<colour foreground>>;
}
.tc-drop-down p {
padding: 0 14px 0 14px;
}
.tc-drop-down svg {
width: 1em;
height: 1em;
}
.tc-drop-down img {
width: 1em;
}
.tc-drop-down-language-chooser img {
width: 2em;
vertical-align: baseline;
}
.tc-drop-down a, .tc-drop-down button {
display: block;
padding: 0 14px 0 14px;
2014-07-28 10:29:06 +00:00
width: 100%;
text-align: left;
2014-07-30 21:25:52 +00:00
color: <<colour foreground>>;
line-height: 1.4;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down .tc-file-input-wrapper {
2014-08-02 20:37:46 +00:00
width: 100%;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down .tc-file-input-wrapper button {
2014-08-02 20:37:46 +00:00
color: <<colour foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {
color: <<colour tiddler-link-background>>;
background-color: <<colour tiddler-link-foreground>>;
text-decoration: none;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down .tc-tab-buttons button {
background-color: <<colour dropdown-tab-background>>;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down .tc-tab-buttons button.tc-tab-selected {
background-color: <<colour dropdown-tab-background-selected>>;
border-bottom: 1px solid <<colour dropdown-tab-background-selected>>;
}
.tc-drop-down-bullet {
display: inline-block;
width: 0.5em;
}
2014-08-28 18:41:29 +00:00
.tc-drop-down .tc-tab-contents a {
padding: 0 0.5em 0 0.5em;
}
.tc-block-dropdown-wrapper {
position: relative;
}
.tc-block-dropdown {
position: absolute;
min-width: 220px;
border: 1px solid <<colour dropdown-border>>;
background-color: <<colour dropdown-background>>;
padding: 7px 0;
margin: 4px 0 0 0;
white-space: nowrap;
z-index: 1000;
}
.tc-block-dropdown a {
display: block;
padding: 4px 14px 4px 14px;
}
.tc-drop-down .tc-dropdown-item,
.tc-block-dropdown .tc-dropdown-item {
padding: 4px 14px 4px 7px;
color: <<colour muted-foreground>>;
}
.tc-block-dropdown a:hover {
color: <<colour tiddler-link-background>>;
background-color: <<colour tiddler-link-foreground>>;
text-decoration: none;
}
/*
** Modals
*/
.tc-modal-wrapper {
position: fixed;
overflow: auto;
overflow-y: scroll;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.tc-modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background-color: <<colour modal-backdrop>>;
}
.tc-modal {
z-index: 1100;
background-color: <<colour modal-background>>;
border: 1px solid <<colour modal-border>>;
}
@media (max-width: 55em) {
.tc-modal {
position: fixed;
top: 1em;
left: 1em;
right: 1em;
}
.tc-modal-body {
overflow-y: auto;
max-height: 400px;
}
}
@media (min-width: 55em) {
.tc-modal {
position: relative;
width: 50%;
margin: 30px auto;
}
}
.tc-modal-header {
padding: 9px 15px;
border-bottom: 1px solid <<colour modal-header-border>>;
}
.tc-modal-header h3 {
margin: 0;
line-height: 30px;
}
.tc-modal-body {
padding: 15px;
}
.tc-modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right;
background-color: <<colour modal-footer-background>>;
border-top: 1px solid <<colour modal-footer-border>>;
}
/*
** Notifications
*/
.tc-notification {
position: fixed;
top: 14px;
right: 42px;
2014-11-23 17:10:44 +00:00
z-index: 1300;
max-width: 280px;
padding: 0 14px 0 14px;
background-color: <<colour notification-background>>;
border: 1px solid <<colour notification-border>>;
}
/*
** Tabs
*/
2014-08-28 18:41:29 +00:00
.tc-tab-set.tc-vertical {
display: -webkit-flex;
display: flex;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons {
font-size: 0.85em;
padding-top: 1em;
margin-bottom: -2px;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons.tc-vertical {
2014-05-14 18:37:37 +00:00
z-index: 100;
display: block;
padding-top: 14px;
vertical-align: top;
text-align: right;
margin-bottom: inherit;
margin-right: -1px;
max-width: 33%;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons button.tc-tab-selected {
color: <<colour tab-foreground-selected>>;
background-color: <<colour tab-background-selected>>;
border-left: 1px solid <<colour tab-border-selected>>;
border-top: 1px solid <<colour tab-border-selected>>;
border-right: 1px solid <<colour tab-border-selected>>;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons button {
color: <<colour tab-foreground>>;
2014-05-14 18:37:37 +00:00
padding: 3px 5px 3px 5px;
font-weight: 300;
border: none;
background: inherit;
background-color: <<colour tab-background>>;
border-left: 1px solid <<colour tab-border>>;
border-top: 1px solid <<colour tab-border>>;
border-right: 1px solid <<colour tab-border>>;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons.tc-vertical button {
display: block;
width: 100%;
margin-top: 3px;
text-align: right;
background-color: <<colour tab-background>>;
border-left: 1px solid <<colour tab-border>>;
border-bottom: 1px solid <<colour tab-border>>;
border-right: none;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
2014-08-28 18:41:29 +00:00
.tc-tab-buttons.tc-vertical button.tc-tab-selected {
background-color: <<colour tab-background-selected>>;
border-right: 1px solid <<colour tab-background-selected>>;
}
2014-08-28 18:41:29 +00:00
.tc-tab-divider {
border-top: 1px solid <<colour tab-divider>>;
}
2014-08-28 18:41:29 +00:00
.tc-tab-divider.tc-vertical {
display: none;
}
2014-08-28 18:41:29 +00:00
.tc-tab-content {
2014-06-21 10:17:04 +00:00
margin-top: 14px;
}
2014-08-28 18:41:29 +00:00
.tc-tab-content.tc-vertical {
display: inline-block;
vertical-align: top;
padding-top: 0;
padding-left: 14px;
border-left: 1px solid <<colour tab-border>>;
2014-08-13 16:06:18 +00:00
-webkit-flex: 1 0 70%;
flex: 1 0 70%;
}
.tc-sidebar-lists .tc-tab-buttons {
margin-bottom: -1px;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {
background-color: <<colour sidebar-tab-background-selected>>;
color: <<colour sidebar-tab-foreground-selected>>;
border-left: 1px solid <<colour sidebar-tab-border-selected>>;
border-top: 1px solid <<colour sidebar-tab-border-selected>>;
border-right: 1px solid <<colour sidebar-tab-border-selected>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists .tc-tab-buttons button {
background-color: <<colour sidebar-tab-background>>;
color: <<colour sidebar-tab-foreground>>;
border-left: 1px solid <<colour sidebar-tab-border>>;
border-top: 1px solid <<colour sidebar-tab-border>>;
border-right: 1px solid <<colour sidebar-tab-border>>;
}
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists .tc-tab-divider {
border-top: 1px solid <<colour sidebar-tab-divider>>;
}
2014-08-28 18:41:29 +00:00
.tc-more-sidebar .tc-tab-buttons button {
background-color: <<colour sidebar-tab-background>>;
border-top: none;
border-left: none;
border-bottom: none;
border-right: 1px solid #ccc;
margin-bottom: inherit;
}
2014-08-28 18:41:29 +00:00
.tc-more-sidebar .tc-tab-buttons button.tc-tab-selected {
background-color: <<colour sidebar-tab-background-selected>>;
border: none;
}
/*
** Alerts
*/
.tc-alerts {
position: fixed;
top: 0;
left: 0;
2014-02-15 17:36:49 +00:00
max-width: 500px;
z-index: 20000;
}
.tc-alert {
position: relative;
margin: 28px;
padding: 14px 14px 14px 14px;
border: 2px solid <<colour alert-border>>;
background-color: <<colour alert-background>>;
}
.tc-alert-toolbar {
position: absolute;
top: 14px;
right: 14px;
}
.tc-alert-toolbar svg {
fill: <<colour alert-muted-foreground>>;
2014-02-15 17:36:49 +00:00
}
.tc-alert-subtitle {
color: <<colour alert-muted-foreground>>;
font-weight: bold;
}
.tc-alert-highlight {
color: <<colour alert-highlight>>;
}
.tc-static-alert {
position: relative;
}
.tc-static-alert-inner {
padding: 0 2px 2px 42px;
color: <<colour static-alert-foreground>>;
position: absolute;
}
/*
** Control panel
*/
.tc-control-panel td {
padding: 4px;
}
.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {
width: 100%;
}
2013-11-27 21:30:11 +00:00
.tc-plugin-info {
display: block;
border: 1px solid <<colour muted-foreground>>;
background-colour: <<colour background>>;
margin: 1em 0 1em 0;
padding: 8px;
}
.tc-plugin-info-disabled {
2014-08-15 20:10:40 +00:00
background: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
background: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
}
.tc-plugin-info-disabled:hover {
2014-08-15 20:10:40 +00:00
background: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
}
a.tc-tiddlylink.tc-plugin-info:hover {
text-decoration: none;
background-color: <<colour primary>>;
color: <<colour background>>;
fill: <<colour foreground>>;
}
a.tc-tiddlylink.tc-plugin-info:hover svg {
fill: <<colour foreground>>;
}
.tc-plugin-info-chunk {
display: inline-block;
vertical-align: middle;
}
a.tc-plugin-info img, a.tc-plugin-info svg {
width: 2em;
height: 2em;
fill: <<colour muted-foreground>>;
}
.tc-plugin-info-dropdown {
border: 1px solid <<colour muted-foreground>>;
2014-08-16 13:44:46 +00:00
padding: 1em 1em 1em 1em;
margin-top: -1em;
}
2013-11-27 21:30:11 +00:00
/*
** Message boxes
*/
.tc-message-box {
border: 1px solid <<colour message-border>>;
background: <<colour message-background>>;
2013-11-27 21:30:11 +00:00
padding: 0px 21px 0px 21px;
2013-11-28 07:41:28 +00:00
font-size: 12px;
line-height: 18px;
color: <<colour message-foreground>>;
2013-11-27 21:30:11 +00:00
}
/*
** Pictures
*/
.tc-bordered-image {
border: 1px solid <<colour muted-foreground>>;
padding: 5px;
margin: 5px;
}
/*
** Floats
*/
.tc-float-right {
2013-11-27 21:30:11 +00:00
float: right;
}
2014-02-20 10:00:38 +00:00
/*
** Chooser
*/
2014-08-28 18:41:29 +00:00
.tc-chooser {
2014-02-20 10:00:38 +00:00
border: 1px solid <<colour table-border>>;
}
2014-08-28 18:41:29 +00:00
.tc-chooser-item {
2014-02-20 10:00:38 +00:00
border: 8px;
}
2014-08-28 18:41:29 +00:00
.tc-chooser-item a.tc-tiddlylink {
2014-02-20 10:00:38 +00:00
display: block;
2014-03-05 04:15:53 +00:00
text-decoration: none;
2014-02-20 10:00:38 +00:00
color: <<colour tiddler-link-foreground>>;
background-color: <<colour tiddler-link-background>>;
margin: 4px;
}
2014-08-28 18:41:29 +00:00
.tc-chooser-item a.tc-tiddlylink:hover {
2014-02-20 10:00:38 +00:00
text-decoration: none;
color: <<colour tiddler-link-background>>;
background-color: <<colour tiddler-link-foreground>>;
}
/*
** Palette swatches
*/
2014-08-28 18:41:29 +00:00
.tc-swatches-horiz {
}
2014-08-28 18:41:29 +00:00
.tc-swatches-horiz .tc-swatch {
display: inline-block;
}
2014-08-28 18:41:29 +00:00
.tc-swatch {
width: 2em;
height: 2em;
margin: 4px;
border: 1px solid #000;
}
2014-06-21 10:17:04 +00:00
/*
** Table of contents
*/
2014-08-28 18:41:29 +00:00
.tc-sidebar-lists .tc-table-of-contents {
2014-06-21 10:17:04 +00:00
white-space: nowrap;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents button {
2014-08-02 21:49:30 +00:00
color: <<colour sidebar-foreground>>;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents svg {
2014-06-21 10:49:42 +00:00
width: 0.7em;
height: 0.7em;
vertical-align: middle;
2014-08-02 21:49:30 +00:00
fill: <<colour sidebar-foreground>>;
2014-06-21 10:49:42 +00:00
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents ol {
2014-06-21 10:17:04 +00:00
list-style-type: none;
padding-left: 0;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents ol ol {
2014-06-21 10:17:04 +00:00
padding-left: 1em;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li {
2014-06-21 10:17:04 +00:00
font-size: 1.0em;
font-weight: bold;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li a {
2014-06-21 10:17:04 +00:00
font-weight: bold;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li li {
2014-06-21 10:17:04 +00:00
font-size: 0.95em;
font-weight: normal;
line-height: 1.4;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li li a {
2014-06-21 10:17:04 +00:00
font-weight: normal;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li li li {
2014-06-21 10:17:04 +00:00
font-size: 0.95em;
font-weight: 200;
line-height: 1.5;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li li li a {
2014-06-21 10:17:04 +00:00
font-weight: bold;
}
2014-08-28 18:41:29 +00:00
.tc-table-of-contents li li li li {
2014-06-21 10:17:04 +00:00
font-size: 0.95em;
font-weight: 200;
}
2014-11-13 21:39:28 +00:00
.tc-tabbed-table-of-contents {
display: -webkit-flex;
display: flex;
}
.tc-tabbed-table-of-contents .tc-table-of-contents {
z-index: 100;
display: inline-block;
padding-left: 1em;
max-width: 50%;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
background: <<colour tab-background>>;
border-left: 1px solid <<colour tab-border>>;
border-top: 1px solid <<colour tab-border>>;
border-bottom: 1px solid <<colour tab-border>>;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {
display: block;
padding: 0.12em 1em 0.12em 0.25em;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a {
border-top: 1px solid <<colour tab-background>>;
border-left: 1px solid <<colour tab-background>>;
border-bottom: 1px solid <<colour tab-background>>;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {
text-decoration: none;
border-top: 1px solid <<colour tab-border>>;
border-left: 1px solid <<colour tab-border>>;
border-bottom: 1px solid <<colour tab-border>>;
background: <<colour tab-border>>;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {
border-top: 1px solid <<colour tab-border>>;
border-left: 1px solid <<colour tab-border>>;
border-bottom: 1px solid <<colour tab-border>>;
background: <<colour background>>;
margin-right: -1px;
}
.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a:hover {
text-decoration: none;
}
.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content {
display: inline-block;
vertical-align: top;
padding-left: 1.5em;
2014-11-13 21:49:19 +00:00
padding-right: 1.5em;
2014-11-13 21:39:28 +00:00
border: 1px solid <<colour tab-border>>;
-webkit-flex: 1 0 50%;
flex: 1 0 50%;
}
/*
** Dirty indicator
*/
body.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg {
fill: <<colour dirty-indicator>>;
color: <<colour dirty-indicator>>;
}
2014-08-02 10:59:07 +00:00
/*
** File inputs
*/
2014-08-28 18:41:29 +00:00
.tc-file-input-wrapper {
2014-08-02 10:59:07 +00:00
position: relative;
2014-08-02 11:05:01 +00:00
overflow: hidden;
2014-08-02 11:16:14 +00:00
display: inline-block;
vertical-align: middle;
2014-08-02 10:59:07 +00:00
}
2014-08-28 18:41:29 +00:00
.tc-file-input-wrapper input[type=file] {
2014-08-02 10:59:07 +00:00
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
font-size: 999px;
max-width: 100%;
max-height: 100%;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: pointer;
display: inline-block;
}
/*
** Errors
*/
.tc-error {
background: #f00;
color: #fff;
}