1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-18 07:44:51 +00:00
TiddlyWiki5/core/styles/base.tid

253 lines
4.4 KiB
Plaintext
Raw Normal View History

title: $:/core/styles/base
tags: $:/core/styles
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
\define border-radius(radius)
```
-webkit-border-radius: $radius$;
-moz-border-radius: $radius$;
border-radius: $radius$;
```
\end
\define box-shadow(shadow)
```
-webkit-box-shadow: $shadow$;
-moz-box-shadow: $shadow$;
box-shadow: $shadow$;
```
\end
{{$:/core/styles/reset}}
2013-02-04 20:47:21 +00:00
html {
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
body {
font-size: {{$:/core/styles/metrics##fontsize}};
line-height: {{$:/core/styles/metrics##lineheight}};
background-color: {{$:/core/styles/colourmappings##pagebackground}}
}
2013-02-04 15:29:38 +00:00
code, pre {
padding: 0 3px 2px;
<<border-radius 3px>>
}
code {
2013-02-05 19:12:23 +00:00
padding: 1px 2px;
2013-02-04 15:29:38 +00:00
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
pre {
display: block;
2013-02-05 19:12:23 +00:00
padding: 1em;
margin: 0 0 1em;
2013-02-04 15:29:38 +00:00
word-break: break-all;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: #f5f5f5;
border: 1px solid #ccc;
}
a.tw-tiddlylink {
text-decoration: none;
font-style: normal;
font-weight: normal;
color: {{$:/core/styles/colourmappings##linkforeground}};
}
a.tw-tiddlylink:hover {
text-decoration: underline;
}
a.tw-tiddlylink-resolves {
font-style: normal;
font-weight: bold;
}
a.tw-tiddlylink-missing {
font-style: italic;
}
.btn-invisible {
padding: 0;
margin: 0;
background: none;
border: none;
}
2013-02-08 11:12:33 +00:00
.tw-tags-wrapper {
margin: 0.25em 0 1em 0;
}
2013-02-08 09:23:54 +00:00
.tw-tag-label {
display: inline-block;
padding: 2px 4px;
font-size: 11.844px;
font-weight: bold;
line-height: 14px;
color: #ffffff;
2013-02-08 09:23:54 +00:00
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.44);
white-space: nowrap;
vertical-align: baseline;
background-color: #999999;
2013-02-08 11:12:33 +00:00
border: 1px solid rgba(0,0,0,0.0);
<<border-radius 3px>>
2013-02-08 09:23:54 +00:00
<<box-shadow "inset 1px 1px 0 rgba(255,255,255,0.22)">>
}
2013-02-08 11:12:33 +00:00
.tw-tag-label:hover {
<<box-shadow "inset 0px 2em 0 rgba(0,0,0,0.22)">>
}
.edit-header {
}
.sidebar-header {
position: fixed;
top: 0;
left: 0;
bottom: 0;
2013-02-04 11:56:23 +00:00
width: {{$:/core/styles/metrics##sidebarwidth}};
overflow-y: auto;
overflow-x: auto;
2013-02-05 22:10:35 +00:00
-webkit-overflow-scrolling: touch;
2013-02-04 20:47:21 +00:00
padding: 4em 0em 2em 2em;
margin: 0;
}
2013-02-04 11:56:23 +00:00
.tw-menu-list-item {
white-space: nowrap;
}
.story-river {
2013-02-04 11:56:23 +00:00
margin-left: {{$:/core/styles/metrics##sidebarwidth}};
padding: 2em;
}
.tw-tiddler-frame {
2013-02-04 15:29:38 +00:00
padding: 3em;
margin-bottom: 2em;
background-color: {{$:/core/styles/colourmappings##tiddlerbackground}};
2013-03-01 09:13:23 +00:00
max-width: 50em;
2013-02-04 11:56:23 +00:00
<<box-shadow "5px 5px 5px rgba(0, 0, 0, 0.1)">>
}
2013-02-04 20:47:21 +00:00
.title {
font-weight: bold;
font-size: 33px;
line-height: 40px;
color: #182955;
}
.tw-tiddler-missing .title {
font-style: italic;
font-weight: normal;
}
.tw-tiddler-frame .tw-tiddler-controls {
float: right;
}
2013-02-04 20:47:21 +00:00
.tw-tiddler-controls .tw-button {
margin: 0 0 0 0.5em;
}
.tw-drop-down {
display: block;
position: absolute;
min-width: 20em;
border: 1px solid {{$:/core/styles/colourmappings##dropdownborder}};
background-color: {{$:/core/styles/colourmappings##dropdownbackground}};
<<border-radius 4px>>
2013-02-04 20:47:21 +00:00
<<box-shadow "2px 2px 10px rgba(0, 0, 0, 0.5)">>
padding: 0.5em 0em 0.5em 0em;
2013-02-04 20:47:21 +00:00
margin: 0.25em 0 0 0;
white-space: nowrap;
}
.tw-drop-down a {
display: block;
padding: 0em 1em 0em 1em;
}
2013-02-08 11:12:33 +00:00
.tw-drop-down a:hover {
color: {{$:/core/styles/colourmappings##linkbackground}};
background-color: {{$:/core/styles/colourmappings##linkforeground}};
text-decoration: none;
}
2013-02-10 18:44:23 +00:00
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background-color: #000;
}
.modal {
position: fixed;
top: 50%;
left: 50%;
z-index: 1100;
width: 560px;
margin: -250px 0 0 -280px;
background-color: #fff;
border: 1px solid #999;
border: 1px solid rgba(0,0,0,.3);
<<border-radius 6px>>
<<box-shadow "0 3px 7px rgba(0,0,0,0.3)">>
}
.modal-header {
padding: 9px 15px;
border-bottom: 1px solid #eee;
}
.modal-header h3 {
margin: 0;
line-height: 30px;
}
.modal-body {
overflow-y: auto;
max-height: 400px;
padding: 15px;
}
.modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right;
background-color: #f5f5f5;
border-top: 1px solid #ddd;
<<border-radius "0 0 6px 6px">>
<<box-shadow "inset 0 1px 0 #fff">>;
}
.tw-edit-texteditor input, .tw-edit-texteditor textarea {
2013-02-04 20:47:21 +00:00
width: 100%;
}
2013-02-04 20:47:21 +00:00
canvas.tw-edit-bitmapeditor {
cursor: crosshair;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
img, canvas, embed {
max-width: 100%;
}
embed {
width: 100%;
height: 20em;
}