| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- .gfm-render {
-
- font-size: 12px;
- -webkit-user-select: text;
- color: #333;
- line-height: 1.8em;
- blockquote, ul, table, p, pre, hr {
- margin: 1em 0;
- cursor: text;
- &:first-child:last-child {
- margin: 0;
- }
- }
- img {
- max-width: 100%;
- }
- a {
- color: blue;
- &:hover {
- color: red;
- }
- }
-
- blockquote {
- display: block;
- border-left: 4px solid #E4AD91;
- color: darken(#E4AD91, 10%);
- padding-left: 10px;
- font-style: italic;
- margin-left: 2em;
- }
- ul, ol {
- padding-left: 3em;
- }
- table {
- width: 100%;
- border-collapse: collapse;
- th, td {
- border: 1px solid #666;
- padding: 2px 4px;
- }
- th {
- background: rgba(45, 141, 234, 0.2);
- }
- tr:nth-child(even) td {
- background: rgba(45, 141, 234, 0.03);
- }
- margin: 1em 0;
- }
- em {
- color: red;
- }
- del {
- color: #999;
- }
- pre {
- background: rgba(45, 141, 234, 0.1);
- padding: 5px;
- border-radius: 5px;
- word-break: break-all;
- word-wrap: break-word;
- }
- code {
- background: rgba(45, 141, 234, 0.1);
- /* display: inline-block; */
- padding: 0 5px;
- border-radius: 3px;
- }
- pre code {
- background: none;
- }
- hr {
- border: none;
- border-top: 1px solid #CCC;
- }
- .highlight {
- background: yellow;
- color: red;
- }
- }
- #note-panel {
- width: 300px;
- border-left: 1px solid lighten(@ui-color, 50%);
- background: white;
- .dock(100px, 0, 0, auto);
- .tab {
- height: 30px;
- background: #EEE;
- font-size: 12px;
- line-height: 30px;
- padding: 0 10px;
- position: relative;
- a.edit-tab, a.preview-tab {
- display: inline-block;
- padding: 0 10px;
- height: 24px;
- line-height: 24px;
- vertical-align: bottom;
- margin-right: 5px;
- border-radius: 3px 3px 0 0;
- &:hover {
- background: rgba(255, 255, 255, 0.5);
- }
- &.active-tab {
- background: white;
- }
- }
- a.help {
- position: absolute;
- right: 10px;
- height: 30px;
- line-height: 30px;
- top: 0;
- }
- }
-
- .note-editor {
- .dock(60px, 0, 0);
- padding: 5px;
- -webkit-user-select: text;
- .CodeMirror {
- cursor: text;
- font-size: 14px;
- line-height: 1.3em;
- font-family: consolas;
- }
- }
- .note-preview {
- .dock(60px, 0, 0);
- padding: 10px;
- -webkit-user-select: text;
- overflow-x: hidden;
- overflow-y: auto;
- .gfm-render;
- }
- .close {
- .close-button;
- position: absolute;
- right: 5px;
- top: 6px;
- }
- &[disabled] {
- &:after {
- content: ' ';
- display: block;
- .dock(20px, 0, 0);
- background: rgba(100, 100, 100, .1);
- }
- }
- & > h2 {
- font-size: 12px;
- margin: 0;
- font-weight: normal;
- background: lighten(@ui-color, 30%);
- color: @ui-fore;
- padding: 5px 10px;
- height: 20px;
- line-height: 20px;
- }
- }
- #note-previewer {
- position: absolute;
- background: #FFD;
- padding: 5px 15px;
- border-radius: 5px;
- max-width: 400px;
- max-height: 200px;
- overflow: auto;
- z-index: 10;
- box-shadow: 0 0 15px rgba(0, 0, 0, .5);
- .gfm-render;
- }
- #content-wrapper.note-panel-visible #kityminder {
- right: 300px;
- }
- #tab-container.collapsed + #kityminder + #note-panel {
- top: 40px;
- }
|