commit 2021-12-06]20:03:09

This commit is contained in:
Godopu 2021-12-06 20:03:15 +09:00
commit 4a99764277
78 changed files with 8065 additions and 0 deletions

6
.gitattributes vendored Normal file
View File

@ -0,0 +1,6 @@
installer/arm64.exe filter=lfs diff=lfs merge=lfs -text
installer/arm64.tar.gz filter=lfs diff=lfs merge=lfs -text
installer/drawin.dmg filter=lfs diff=lfs merge=lfs -text
installer/amd64.exe filter=lfs diff=lfs merge=lfs -text
installer/amd64.tar.gz filter=lfs diff=lfs merge=lfs -text
themes.zip filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,23 @@
package common_test
import (
"testing"
"typorainstaller/common"
"typorainstaller/constants"
"github.com/stretchr/testify/assert"
)
func TestUnGzip(t *testing.T) {
assert := assert.New(t)
err := common.Untar("./test.tar.gz", "./")
assert.NoError(err)
}
func TestUnzip(t *testing.T) {
assert := assert.New(t)
err := common.Unzip("./themes.zip", constants.ConfigPath)
assert.NoError(err)
}

201
common/decomression.go Normal file
View File

@ -0,0 +1,201 @@
package common
import (
"archive/tar"
"archive/zip"
"compress/gzip"
"fmt"
"io"
"log"
"os"
"path"
"path/filepath"
"strings"
"time"
)
func Untar(src, dir string) error {
f, err := os.Open(src)
if err != nil {
return err
}
return untar(f, dir)
}
func untar(r io.Reader, dir string) (err error) {
t0 := time.Now()
nFiles := 0
madeDir := map[string]bool{}
defer func() {
td := time.Since(t0)
if err == nil {
log.Printf("extracted tarball into %s: %d files, %d dirs (%v)", dir, nFiles, len(madeDir), td)
} else {
log.Printf("error extracting tarball into %s after %d files, %d dirs, %v: %v", dir, nFiles, len(madeDir), td, err)
}
}()
zr, err := gzip.NewReader(r)
if err != nil {
return fmt.Errorf("requires gzip-compressed body: %v", err)
}
tr := tar.NewReader(zr)
loggedChtimesError := false
for {
f, err := tr.Next()
if err == io.EOF {
break
}
if err != nil {
log.Printf("tar reading error: %v", err)
return fmt.Errorf("tar error: %v", err)
}
if !validRelPath(f.Name) {
return fmt.Errorf("tar contained invalid name error %q", f.Name)
}
rel := filepath.FromSlash(f.Name)
abs := filepath.Join(dir, rel)
fi := f.FileInfo()
mode := fi.Mode()
switch {
case mode.IsRegular():
// Make the directory. This is redundant because it should
// already be made by a directory entry in the tar
// beforehand. Thus, don't check for errors; the next
// write will fail with the same error.
dir := filepath.Dir(abs)
if !madeDir[dir] {
if err := os.MkdirAll(filepath.Dir(abs), 0755); err != nil {
return err
}
madeDir[dir] = true
}
wf, err := os.OpenFile(abs, os.O_RDWR|os.O_CREATE|os.O_TRUNC, mode.Perm())
if err != nil {
return err
}
n, err := io.Copy(wf, tr)
if closeErr := wf.Close(); closeErr != nil && err == nil {
err = closeErr
}
if err != nil {
return fmt.Errorf("error writing to %s: %v", abs, err)
}
if n != f.Size {
return fmt.Errorf("only wrote %d bytes to %s; expected %d", n, abs, f.Size)
}
modTime := f.ModTime
if modTime.After(t0) {
// Clamp modtimes at system time. See
// golang.org/issue/19062 when clock on
// buildlet was behind the gitmirror server
// doing the git-archive.
modTime = t0
}
if !modTime.IsZero() {
if err := os.Chtimes(abs, modTime, modTime); err != nil && !loggedChtimesError {
// benign error. Gerrit doesn't even set the
// modtime in these, and we don't end up relying
// on it anywhere (the gomote push command relies
// on digests only), so this is a little pointless
// for now.
log.Printf("error changing modtime: %v (further Chtimes errors suppressed)", err)
loggedChtimesError = true // once is enough
}
}
nFiles++
case mode.IsDir():
if err := os.MkdirAll(abs, 0755); err != nil {
return err
}
madeDir[abs] = true
default:
return fmt.Errorf("tar file entry %s contained unsupported file type %v", f.Name, mode)
}
}
return nil
}
func validRelativeDir(dir string) bool {
if strings.Contains(dir, `\`) || path.IsAbs(dir) {
return false
}
dir = path.Clean(dir)
if strings.HasPrefix(dir, "../") || strings.HasSuffix(dir, "/..") || dir == ".." {
return false
}
return true
}
func validRelPath(p string) bool {
if p == "" || strings.Contains(p, `\`) || strings.HasPrefix(p, "/") || strings.Contains(p, "../") {
return false
}
return true
}
// Unzip will decompress a zip archive, moving all files and folders
// within the zip file (parameter 1) to an output directory (parameter 2).
func Unzip(src, dest string) error {
r, err := zip.OpenReader(src)
if err != nil {
return err
}
defer func() {
if err := r.Close(); err != nil {
panic(err)
}
}()
os.MkdirAll(dest, 0755)
// Closure to address file descriptors issue with all the deferred .Close() methods
extractAndWriteFile := func(f *zip.File) error {
rc, err := f.Open()
if err != nil {
return err
}
defer func() {
if err := rc.Close(); err != nil {
panic(err)
}
}()
path := filepath.Join(dest, f.Name)
// Check for ZipSlip (Directory traversal)
if !strings.HasPrefix(path, filepath.Clean(dest)+string(os.PathSeparator)) {
return fmt.Errorf("illegal file path: %s", path)
}
if f.FileInfo().IsDir() {
os.MkdirAll(path, f.Mode())
} else {
os.MkdirAll(filepath.Dir(path), f.Mode())
f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode())
if err != nil {
return err
}
defer func() {
if err := f.Close(); err != nil {
panic(err)
}
}()
_, err = io.Copy(f, rc)
if err != nil {
return err
}
}
return nil
}
for _, f := range r.File {
err := extractAndWriteFile(f)
if err != nil {
return err
}
}
return nil
}

34
constants/constants.go Normal file
View File

@ -0,0 +1,34 @@
package constants
import (
"os"
"path/filepath"
"runtime"
)
var WorkPath string
var ConfigPath string
var Installer string
func init() {
cache, err := os.UserCacheDir()
if err != nil {
panic(err)
}
WorkPath = filepath.Join(cache, "typora-installer")
conf, err := os.UserConfigDir()
if err != nil {
panic(err)
}
ConfigPath = filepath.Join(conf, "Typora")
switch runtime.GOOS {
case "linux":
Installer = runtime.GOARCH + "." + "tar.gz"
case "windows":
Installer = runtime.GOARCH + "." + "exe"
case "drawin":
Installer = runtime.GOARCH + "." + "dmg"
}
}

11
go.mod Normal file
View File

@ -0,0 +1,11 @@
module typorainstaller
go 1.17
require github.com/stretchr/testify v1.7.0
require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

11
go.sum Normal file
View File

@ -0,0 +1,11 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

BIN
installer/amd64.exe (Stored with Git LFS) Normal file

Binary file not shown.

BIN
installer/amd64.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
installer/arm64.exe (Stored with Git LFS) Normal file

Binary file not shown.

BIN
installer/arm64.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
installer/drawin.dmg (Stored with Git LFS) Normal file

Binary file not shown.

152
main.go Normal file
View File

@ -0,0 +1,152 @@
package main
import (
"flag"
"fmt"
"io"
"net/http"
"os"
"path"
"typorainstaller/constants"
)
func pull(pull_type int) error {
var urlToDownload string
var fname string
switch pull_type {
case PULL_INSTALLER:
urlToDownload = path.Join("https://git.godopu.net/Godopu/typora-installer/src/branch/main/installer", constants.Installer)
fname = constants.Installer
case PULL_CONFIG:
urlToDownload = "https://git.godopu.net/Godopu/typora-installer/src/branch/main/themes.zip"
fname = "themes.zip"
}
resp, err := http.Get(urlToDownload)
if err != nil {
return err
}
file, err := os.Create(fname)
if err != nil {
return err
}
defer file.Close()
_, err = io.Copy(file, resp.Body)
if err != nil {
return err
}
return nil
}
// func install() {
// cmd := exec.Command("powershell", "-nologo", "-noprofile")
// stdin, err := cmd.StdinPipe()
// if err != nil {
// log.Fatal(err)
// }
// if err != nil {
// panic(err)
// }
// defer stdin.Close()
// go func() {
// fmt.Fprintln(stdin, "$T = Get-Date")
// fmt.Fprintln(stdin, "Set-Date -Date ($T).AddYears(30)")
// bout, err := exec.Command("./typora-installer/install.exe").Output()
// if err != nil {
// log.Println(err)
// }
// fmt.Println(bout)
// fmt.Fprintln(stdin, "Set-Date -Date ($T)")
// }()
// _, err = cmd.CombinedOutput()
// if err != nil {
// log.Fatal(err)
// }
// }
// func config() {
// os.RemoveAll(filepath.Join(configPath, "themes"))
// copy.Copy(filepath.Join("typora-installer", "themes"), filepath.Join(configPath, "themes"))
// }
const (
PULL_INSTALLER = iota
PULL_CONFIG
)
func IsExistConfig() bool {
if _, err := os.Stat("./themes.zip"); err == nil {
return true
}
return false
}
func IsExistInstaller() bool {
return false
}
func main() {
err := os.MkdirAll(constants.WorkPath, os.ModePerm)
if err != nil {
panic(err)
}
err = os.Chdir(constants.WorkPath)
if err != nil {
panic(err)
}
conf := flag.Bool("config", false, "Config")
inst := flag.Bool("install", false, "Install")
flag.Parse()
if *conf {
if !IsExistConfig() {
fmt.Println("Downloading config file...")
pull(PULL_CONFIG)
fmt.Println("Download Success")
}
} else if *inst {
if !IsExistInstaller() {
fmt.Println("Downloading install program...")
err := pull(PULL_INSTALLER)
if err != nil {
panic(err)
}
fmt.Println("Download Success")
}
}
// if *inst {
// if _, err := os.Stat(filepath.Join(workPath, "typora-installer")); err != nil {
// fmt.Println("Start download")
// download()
// fmt.Println("download success")
// fmt.Println("Start unzip")
// unzip("main.zip")
// fmt.Println("Unzip success")
// }
// fmt.Println("Installing...")
// install()
// fmt.Println("Install success")
// } else if *conf {
// if _, err := os.Stat(filepath.Join(workPath, "typora-installer")); err != nil {
// fmt.Println("Start download")
// download()
// fmt.Println("download success")
// fmt.Println("Start unzip")
// unzip("main.zip")
// fmt.Println("Unzip success")
// }
// fmt.Println("Set config")
// config()
// fmt.Println("Config success")
// }
}

BIN
themes.zip (Stored with Git LFS) Normal file

Binary file not shown.

2
themes/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.DS_Store

27
themes/Readme.md Normal file
View File

@ -0,0 +1,27 @@
---
title : make custom theme
---
The built-in CSS will be replaced after update / reinstall, DO NOT MODIFY THEM.
Reffer https://support.typora.io/Add-Custom-CSS/ when you want to modify those CSS.
Reffer https://support.typora.io/About-Themes/ if you want to create / install new themes.
# file-tree-node 높이 수정하기
## `File-tree-node` height 수정하기
```css
#typora-sidebar .file-tree-node .file-node-content {
padding: 0rem;
line-height: 2.2rem;
height: 2.2rem;
background: none;
opacity : 0.6
}
```

454
themes/dk-theme.css Normal file
View File

@ -0,0 +1,454 @@
@include-when-export url(https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic);
@include-when-export url(https://fonts.googleapis.com/css?family=Raleway:600,400&subset=latin,latin-ext);
@charset "UTF-8";
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: normal;
src: url(./dk-theme/texgyreadventor-regular.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: bold;
src: url(./dk-theme/texgyreadventor-bold.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: normal;
src: url(./dk-theme/texgyreadventor-italic.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: bold;
src: url(./dk-theme/texgyreadventor-bolditalic.otf);
}
:root {
--window-border: none;
--typora-center-window-title: true;
--active-file-bg-color: #f3f3f3;
--bg-color: #fcfcfc;
--control-text-color: #777;
}
.mac-seamless-mode #typora-sidebar {
top: var(--mac-title-bar-height);
padding-top: 0;
height: auto;
}
html, body, #write {
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Raleway', "STHeiti", sans-serif;
font-weight: 300;
}
body{
padding-top : 1cm;
}
h1, h2, h3, h4, h5, h6 {
color: #111;
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Ubuntu', "STHeiti", sans-serif;
}
html {
font-size: 16px;
}
#write {
max-width: 65rem;
text-align: justify;
}
#write>h1, h2, h3, h4:first-child {
margin-top: 0rem;
}
h1 {
font-weight: bold;
line-height: 4rem;
margin: 0 0 1rem;
text-align: center;
margin-top: 2rem;
}
h2 {
font-weight: bold;
border-bottom: 1px solid #ccc;
line-height: 3rem;
margin: 0 0 1rem;
margin-top: 1rem;
}
h3 {
font-weight: bold;
margin-left: 1rem;
}
h3:before {
content : "> ";
color : darkgray;
}
h4 {
font-weight: bold;
margin-left: 2rem;
}
h4:before {
content : ">> ";
color : darkgray;
}
h5 {
font-size: 1.125rem;
font-weight: bold;
margin-left: 3rem;
}
h5:before {
content : ">>> ";
color : darkgray;
}
h6 {
font-size: 1rem;
font-weight: bold;
margin-left: 4rem;
}
h6:before {
content : ">>>> ";
color : darkgray;
}
p {
color: #111;
font-size: 1rem;
line-height: 1.75rem;
margin: 0 0 1rem;
}
u{
font-style: normal;
text-decoration : none;
border-width : 0px;
background : rgba(255,192,200,1);
}
#write>h3.md-focus:before {
left: -1.875rem;
top: 0.5rem;
padding: 2px;
}
#write>h4.md-focus:before {
left: -1.875rem;
top: 0.3125rem;
padding: 2px;
}
#write>h5.md-focus:before {
left: -1.875rem;
top: 0.25rem;
padding: 2px;
}
#write>h6.md-focus:before {
left: -1.875rem;
top: .125rem;
padding: 2px;
}
@media screen and (max-width: 48em) {
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0.5em;
}
.h1, h1 {
font-size: 2.827rem;
}
.h2, h2 {
font-size: 1.999rem;
}
.h3, h3 {
font-size: 1.413rem;
}
.h4, h4 {
font-size: 1.250rem;
}
.h5, h5 {
font-size: 1.150rem;
}
.h6, h6 {
font-size: 1rem;
}
}
a, .md-def-url {
color: #990000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
table {
margin-bottom: 20px
}
table th, table td {
padding: 8px;
line-height: 1.25rem;
vertical-align: top;
border-top: 1px solid #ddd
}
table th {
font-weight: bold
}
table thead th {
vertical-align: bottom
}
table caption+thead tr:first-child th, table caption+thead tr:first-child td, table colgroup+thead tr:first-child th, table colgroup+thead tr:first-child td, table thead:first-child tr:first-child th, table thead:first-child tr:first-child td {
border-top: 0
}
table tbody+tbody {
border-top: 2px solid #ddd
}
.md-fences {
padding: .5em;
/*background: #f0f0f0;*/
border: 1px solid #ccc;
padding: .1em;
font-size: 0.9em;
margin-left: 0.2em;
margin-right: 0.2em;
}
.md-fences {
margin: 0 0 20px;
font-size: 1em;
padding: 0.3em 1em;
padding-top: 0.4em;
}
.task-list {
padding-left: 0;
}
.task-list-item {
padding-left: 2.125rem;
}
.task-list-item input {
top: 3px;
}
.task-list-item input:before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
vertical-align: middle;
text-align: center;
border: 1px solid gray;
background-color: #fdfdfd;
margin-left: 0;
margin-top: -0.8rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
content: '\25FC';
/*◘*/
font-size: 0.8125rem;
line-height: 0.9375rem;
margin-top: -1rem;
}
/* Chrome 29+ */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
.task-list-item input:before {
margin-top: -0.2rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
margin-top: -0.2rem;
}
}
blockquote {
margin: 0 0 1.11111rem;
padding: 0.5rem 1.11111rem 0 1.05556rem;
border-left: 1px solid gray;
}
blockquote, blockquote p {
line-height: 1.6;
color: #6f6f6f;
}
#write pre.md-meta-block {
min-height: 30px;
background: #f8f8f8;
padding: 1.5em;
font-weight: 300;
font-size: 1em;
padding-bottom: 1.5em;
padding-top: 3em;
margin-top: -1.5em;
color: #999;
width: 100vw;
max-width: calc(100% + 60px);
margin-left: -30px;
border-left: 30px #f8f8f8 solid;
border-right: 30px #f8f8f8 solid;
}
.MathJax_Display {
font-size: 0.9em;
margin-top: 0.5em;
margin-bottom: 0;
}
p.mathjax-block, .mathjax-block {
padding-bottom: 0;
}
.mathjax-block>.code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image>.md-meta {
padding-left: 0.5em;
padding-right: 0.5em;
}
.md-image>img {
margin-top: 2px;
}
.md-image>.md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: #555;
}
/** ui for windows **/
#md-searchpanel {
border-bottom: 1px solid #ccc;
}
#md-searchpanel .btn {
border: 1px solid #ccc;
}
#md-notification:before {
top: 14px;
}
#md-notification {
background: #eee;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
#typora-sidebar {
box-shadow: none;
}
.file-list-item, .show-folder-name .file-list-item {
padding-top: 20px;
padding-bottom: 20px;
line-height: 20px;
}
.file-list-item-summary {
height: 40px;
line-height: 20px;
}
mark {
font-style: normal;
border-width : 0px;
background : rgba(135,206,235,0.5);
}
code {
font-style: normal;
border-width : 0px;
background : rgba(255,250,100);
}
hr{
background-color : lightgray;
border: solid lightgray;
border-radius: 0.5rem;
height:.06cm;
margin : 2rem 10rem;
page-break-after: always;
}
/* box-shadow: 0 0 6px 1px RGB(40,42,54); */
hr:after { /* Not really supposed to work, but does */
content: "\00a0"; /* Prevent margin collapse */
}
strong strong {
background: #f27a70;
color: white;
padding: 3px 5px;
margin: -3px 3px 0px 3px;
line-height: 1.7;
border-radius: 10px;
border-width : 0px;
}
/* code {
background: lightskyblue;
color: white;
padding: 3px 5px;
margin: -3px 0px 0px 0px;
border-width : 0px;
line-height: 1.7;
border-radius: 10px;
font-weight: bold;
} */
blockquote {
border-left: solid 4px skyblue;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
-webkit-transition: box-shadow .2s ease-out;
}
img:hover {
box-shadow: 3px 3px 11px rgba(33,33,33,.2);
-webkit-transition: box-shadow .2s ease-in;
}
html, body{margin: auto; padding: 0;place-items:center;}
.page{box-sizing: border-box; height: 100%; width: 100%; border: 1px solid transparent; page-break-after: always;}
.page-middle{height: 100%; width: 100%; display: table;}
.page-middle-inner{height: 100%; width: 100%; display: table-cell; vertical-align: middle;}

View File

@ -0,0 +1,29 @@
This is a preliminary version (2006-09-30), barring acceptance from
the LaTeX Project Team and other feedback, of the GUST Font License.
(GUST is the Polish TeX Users Group, http://www.gust.org.pl)
For the most recent version of this license see
http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
or
http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
This work may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.
Please also observe the following clause:
1) it is requested, but not legally required, that derived works be
distributed only after changing the names of the fonts comprising this
work and given in an accompanying "manifest", and that the
files comprising the Work, as listed in the manifest, also be given
new names. Any exceptions to this request are also given in the
manifest.
We recommend the manifest be given in a separate file named
MANIFEST-<fontid>.txt, where <fontid> is some unique identification
of the font family. If a separate "readme" file accompanies the Work,
we recommend a name of the form README-<fontid>.txt.
The latest version of the LaTeX Project Public License is in
http://www.latex-project.org/lppl.txt and version 1.3c or later
is part of all distributions of LaTeX version 2006/05/20 or later.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,14 @@
---
Change blockquote background-color
---
```css
blockquote {
width: 100%;
background-color: var(--borders);
border-left: 4px solid rgb(212, 212, 212);
border-radius: 0.3em;
padding: 1rem;
}
```

View File

@ -0,0 +1,70 @@
---
Font-size 변경하기
---
# Change code editor font size
```css
.md-fences,
tt {
border-radius: 0.3rem;
color: #ffffff;
padding: 1.5rem;
font-size: 0.8rem; # 해당 부분 변경하기
}
```
# Change header font size
## 폰트 사이즈 변경
```css
h1 {
font-size: 1.6rem; # 해당부분 수정
font-weight: 500;
line-height: 1.5;
margin-top: 1rem;
margin-bottom: 1rem;
padding-bottom: 0.4rem;
border-bottom: solid 2px var(--borders);
}
h2 {
font-size: 1.4rem; # 해당부분 수정
font-weight: 700;
line-height: 1.5;
margin-top: 0.8rem;
margin-bottom: 0.5rem;
}
h3 {
font-size: 1.2rem; # 해당부분 수정
font-weight: 700;
line-height: 1.5;
margin-top: 0.6rem;
margin-bottom: 0.5rem;
}
```
## Tooltip 위치 변경
```css
#write>h1.md-focus:before {
content: "h1";
top: 0.8rem; # 해당부분 수정
left: -1.75rem;
}
#write>h2.md-focus:before {
content: "h2";
top: 0.6rem; # 해당부분 수정
left: -1.75rem;
}
#write>h3.md-focus:before {
content: "h3";
top: 0.45rem; # 해당부분 수정
left: -1.75rem;
}
```

View File

@ -0,0 +1,16 @@
---
title : Change MD Fences properties
---
```css
.md-fences {
margin-bottom: 1.5rem;
margin-top: 1.5rem;
padding-top: 8px;
padding-bottom: 6px;
background-color: var(--borders);
}
```

View File

@ -0,0 +1,22 @@
---
title : change md-meta-block properties
---
```css
#write pre.md-meta-block {
padding: 0.6rem;
line-height: 1.5;
background-color: var(--boxes);
margin: -0.3rem 0 -0.3rem 0;
font-family: "Times New Roman", Times, serif;
font-size: 20px;
border: 0;
border-radius: 0.2rem;
font-weight: bold;
color: var(--text-color);
border-left: solid 4px var(--primary-color);
}
```

12
themes/docs/README.md Normal file
View File

@ -0,0 +1,12 @@
---
title : Making Custom Theme
---
# index
- [x] [Font-size 변경하기](./Change_font_size/README.md)
- [x] [Custom file-tree-node of Typora-sidebar](./Typora-sidebar/README.md)
- [x] [Change blockquote background-color](./Blockquote_color/README.md)
- [x] [Change md-meta-block properties](Md_meta_block/README.md)

View File

@ -0,0 +1,62 @@
---
title : Custom file-tree-node of Typora-sidebar
---
# `File-tree-node` 높이 변경
## File-tree-node height 속성 수정
```css
#typora-sidebar .file-tree-node .file-node-content {
padding: 0rem;
line-height: 1.6rem; # 해당부분 수정
height: 1.6rem; # 해당 부분 수정
background: none;
opacity : 0.6
}
#typora-sidebar .file-tree-node .file-node-background {
padding: 0rem;
height: 1.6rem; # 해당부분 수정
}
#typora-sidebar .file-tree-node .file-tree-rename-input {
height: 1.6rem; # 해당부분 수정
background: none;
border: none;
font-size: 0.9rem;
font-weight: 500;
margin: 0rem;
padding-left: 0rem;
}
```
## Folder height 수정하기
```css
#typora-sidebar .file-tree-node .file-node-icon.fa-folder {
margin-top: 0.12rem; # 해당부분 수정
margin-left : 0.2rem;
}
```
## caret 높이 수정하기
```css
#typora-sidebar .file-tree-node .fa-caret-down, #typora-sidebar .file-tree-node .fa-caret-right {
position: relative;
top: 2px; # 해당부분 수정
}
```
# Typora-sidebar 선택된 노드 색상 변경
```css
#typora-sidebar .ty-search-item.active {
/*background-color: var(--bg-color);*/
background-color : transparent; /*해당부분 수정*/
outline: 1px solid var(--borders);
border: none;
color: var(--primary-color) !important;
}
```

376
themes/github.css Normal file
View File

@ -0,0 +1,376 @@
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.loli.net/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: normal;
src: local('Open Sans Regular'),url('./github/400.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: normal;
src: local('Open Sans Italic'),url('./github/400i.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: bold;
src: local('Open Sans Bold'),url('./github/700.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: bold;
src: local('Open Sans Bold Italic'),url('./github/700i.woff') format('woff');
}
html {
font-size: 16px;
}
body {
font-family: "Open Sans","Clear Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
color: rgb(51, 51, 51);
line-height: 1.6;
}
#write {
max-width: 860px;
margin: 0 auto;
padding: 30px;
padding-bottom: 100px;
}
#write > ul:first-child,
#write > ol:first-child{
margin-top: 30px;
}
a {
color: #4183C4;
}
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 1rem;
font-weight: bold;
line-height: 1.4;
cursor: text;
}
h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
text-decoration: none;
}
h1 tt,
h1 code {
font-size: inherit;
}
h2 tt,
h2 code {
font-size: inherit;
}
h3 tt,
h3 code {
font-size: inherit;
}
h4 tt,
h4 code {
font-size: inherit;
}
h5 tt,
h5 code {
font-size: inherit;
}
h6 tt,
h6 code {
font-size: inherit;
}
h1 {
padding-bottom: .3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
h2 {
padding-bottom: .3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
h3 {
font-size: 1.5em;
line-height: 1.43;
}
h4 {
font-size: 1.25em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 1em;
color: #777;
}
p,
blockquote,
ul,
ol,
dl,
table{
margin: 0.8em 0;
}
li>ol,
li>ul {
margin: 0 0;
}
hr {
height: 2px;
padding: 0;
margin: 16px 0;
background-color: #e7e7e7;
border: 0 none;
overflow: hidden;
box-sizing: content-box;
}
li p.first {
display: inline-block;
}
ul,
ol {
padding-left: 30px;
}
ul:first-child,
ol:first-child {
margin-top: 0;
}
ul:last-child,
ol:last-child {
margin-bottom: 0;
}
blockquote {
border-left: 4px solid #dfe2e5;
padding: 0 15px;
color: #777777;
}
blockquote blockquote {
padding-right: 0;
}
table {
padding: 0;
word-break: initial;
}
table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}
table tr:nth-child(2n),
thead {
background-color: #f8f8f8;
}
table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
.CodeMirror-lines {
padding-left: 4px;
}
.code-tooltip {
box-shadow: 0 1px 1px 0 rgba(0,28,36,.3);
border-top: 1px solid #eef2f2;
}
.md-fences,
code,
tt {
border: 1px solid #e7eaed;
background-color: #f8f8f8;
border-radius: 3px;
padding: 0;
padding: 2px 4px 0px 4px;
font-size: 0.9em;
}
code {
background-color: #f3f4f4;
padding: 0 2px 0 2px;
}
.md-fences {
margin-bottom: 15px;
margin-top: 15px;
padding-top: 8px;
padding-bottom: 6px;
}
.md-task-list-item > input {
margin-left: -1.3em;
}
@media print {
html {
font-size: 13px;
}
table,
pre {
page-break-inside: avoid;
}
pre {
word-wrap: break-word;
}
}
.md-fences {
background-color: #f8f8f8;
}
#write pre.md-meta-block {
padding: 1rem;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border: 0;
border-radius: 3px;
color: #777777;
margin-top: 0 !important;
}
.mathjax-block>.code-tooltip {
bottom: .375rem;
}
.md-mathjax-midline {
background: #fafafa;
}
#write>h3.md-focus:before{
left: -1.5625rem;
top: .375rem;
}
#write>h4.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
#write>h5.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
#write>h6.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
.md-image>.md-meta {
/*border: 1px solid #ddd;*/
border-radius: 3px;
padding: 2px 0px 0px 4px;
font-size: 0.9em;
color: inherit;
}
.md-tag {
color: #a7a7a7;
opacity: 1;
}
.md-toc {
margin-top:20px;
padding-bottom:20px;
}
.sidebar-tabs {
border-bottom: none;
}
#typora-quick-open {
border: 1px solid #ddd;
background-color: #f8f8f8;
}
#typora-quick-open-item {
background-color: #FAFAFA;
border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
border-style: solid;
border-width: 1px;
}
/** focus mode */
.on-focus-mode blockquote {
border-left-color: rgba(85, 85, 85, 0.12);
}
header, .context-menu, .megamenu-content, footer{
font-family: "Segoe UI", "Arial", sans-serif;
}
.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state{
visibility: visible;
}
.mac-seamless-mode #typora-sidebar {
background-color: #fafafa;
background-color: var(--side-bar-bg-color);
}
.md-lang {
color: #b4654d;
}
.html-for-mac .context-menu {
--item-hover-bg-color: #E6F0FE;
}
#md-notification .btn {
border: 0;
}
.dropdown-menu .divider {
border-color: #e5e5e5;
}
.ty-preferences .window-content {
background-color: #fafafa;
}
.ty-preferences .nav-group-item.active {
color: white;
background: #999;
}

BIN
themes/github/400.woff Normal file

Binary file not shown.

BIN
themes/github/400i.woff Normal file

Binary file not shown.

BIN
themes/github/600i.woff Normal file

Binary file not shown.

BIN
themes/github/700.woff Normal file

Binary file not shown.

BIN
themes/github/700i.woff Normal file

Binary file not shown.

2163
themes/godopu-dark.css Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,88 @@
/* roboto-300 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'),
url('Roboto-Light.ttf') format('truetype');
}
/* roboto-300italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 300;
src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
url('Roboto-LightItalic.ttf') format('truetype');
}
/* roboto-regular - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'),
url('Roboto-Regular.ttf') format('truetype');
}
/* roboto-italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: local('Roboto Italic'), local('Roboto-Italic'),
url('Roboto-Italic.ttf') format('truetype');
}
/* roboto-500 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'),
url('Roboto-Medium.ttf') format('truetype');
}
/* roboto-500italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 500;
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
url('Roboto-MediumItalic.ttf') format('truetype');
}
/* roboto-700 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'),
url('Roboto-Bold.ttf') format('truetype');
}
/* roboto-700italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
url('Roboto-BoldItalic.ttf') format('truetype');
}
/* roboto-900 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 900;
src: local('Roboto Black'), local('Roboto-Black'),
url('Roboto-Black.ttf') format('truetype');
}
/* roboto-900italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 900;
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
url('Roboto-BlackItalic.ttf') format('truetype');
}
/* sorucecodepro-400 - latin */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: local('Source Code Pro'), local('SourceCodePro-Regular'),
url('SourceCodePro-Regular.ttf') format('truetype');
}

600
themes/godopu.css Normal file
View File

@ -0,0 +1,600 @@
/* @include-when-export url(https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic);
@include-when-export url(https://fonts.googleapis.com/css?family=Raleway:600,400&subset=latin,latin-ext); */
@import "godopu/codeblock.dark.css";
/* @charset "UTF-8"; */
@font-face {
font-family: "TeXGyreAdventor";
font-style: normal;
font-weight: normal;
src: url(./godopu/texgyreadventor-regular.otf);
}
@font-face {
font-family: "TeXGyreAdventor";
font-style: normal;
font-weight: bold;
src: url(./godopu/texgyreadventor-bold.otf);
}
@font-face {
font-family: "TeXGyreAdventor";
font-style: italic;
font-weight: normal;
src: url(./godopu/texgyreadventor-italic.otf);
}
@font-face {
font-family: "TeXGyreAdventor";
font-style: italic;
font-weight: bold;
src: url(./godopu/texgyreadventor-bolditalic.otf);
}
:root {
--dracula-background: #282a36;
--dracula-current-line: #44475a;
--dracula-section: #2c2c2c;
--dracula-foreground: #f8f8f2;
--dracula-comment: #6272a4;
--dracula-cyan: #8be9fd;
--dracula-green: #50fa7b;
--dracula-orange: #ffb86c;
--dracula-pink: #ff79c6;
--dracula-purple: #bd93f9;
--dracula-red: #ff5555;
--dracula-yellow: #f1fa8c;
--window-border: none;
--typora-center-window-title: true;
--active-file-bg-color: #282a36;
--bg-color: #fcfcfc;
--control-text-color: white;
--control-text-hover-color: var(--dracula-cyan);
--side-bar-bg-color: var(--dracula-section);
--active-file-text-color: white;
}
#info-panel-tab-file,
#info-panel-tab-outline {
color: #eee;
}
#info-panel-tab-file:hover,
#info-panel-tab-outline:hover {
color: var(--dracula-comment);
}
/* .mac-seamless-mode #typora-sidebar {
top: var(--mac-title-bar-height);
padding-top: 0;
height: auto;
background-color: var(--side-bar-bg-color);
border-radius : 0 10px 10px 0;
} */
html,
body,
#write {
font-family: "TeXGyreAdventor", "Century Gothic", "Yu Gothic", "Raleway",
"STHeiti", sans-serif;
font-weight: 300;
}
body {
padding-top: 1cm;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #282a36;
font-family: "TeXGyreAdventor", "Century Gothic", "Yu Gothic", "Ubuntu",
"STHeiti", sans-serif;
}
html,
body {
font-size: 16px;
}
#write {
max-width: 75rem;
text-align: justify;
font-size: 1rem;
}
#write > h1,
h2,
h3,
h4:first-child {
margin-top: 0rem;
}
h1 {
font-size: 2rem;
font-weight: bold;
line-height: 4rem;
margin: 0 0 1rem;
text-align: center;
margin-top: 2rem;
}
h2 {
font-size: 1.8rem;
font-weight: bold;
border-bottom: 1px solid #ccc;
line-height: 3rem;
margin: 0 0 1rem;
margin-top: 1rem;
}
h3 {
font-size: 1.6rem;
font-weight: bold;
margin-left: 1rem;
}
/* h3:before {
content : "> ";
color : darkgray;
} */
h4 {
font-size: 1.4rem;
font-weight: bold;
margin-left: 2rem;
}
h4:before {
font-size: 1.2rem;
content: "□ ";
color: #282a36;
}
h5 {
font-size: 1.1rem;
font-weight: bold;
margin-left: 3rem;
}
h5:before {
content: "○ ";
color: #282a36;
}
h6 {
font-size: 1rem;
font-weight: bold;
margin-left: 4rem;
}
h6:before {
content: "─ ";
color: #282a36;
}
p {
color: #111;
line-height: 1.75rem;
margin: 0 0 1rem;
}
/* u{
font-style: normal;
text-decoration : none;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,192,200,0.25),
rgba(255,192,200,1) 100%,
rgba(255,192,200,0.45)
);
} */
#write > h3.md-focus:before {
left: -1.875rem;
top: 0.5rem;
padding: 2px;
}
#write > h4.md-focus:before {
left: -1.875rem;
top: 0.3125rem;
padding: 2px;
}
#write > h5.md-focus:before {
left: -1.875rem;
top: 0.25rem;
padding: 2px;
}
#write > h6.md-focus:before {
left: -1.875rem;
top: 0.125rem;
padding: 2px;
}
@media print {
html,
body {
margin: 0rem;
padding: 0rem;
}
#write {
padding-top: 0rem;
}
}
@page {
size: auto; /* auto is the initial value */
/* this affects the margin in the printer settings */
margin: 5mm 0mm 5mm 0mm;
}
a,
.md-def-url {
color: #990000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* table {
margin-bottom: 20px
}
table th, table td {
padding: 8px;
line-height: 1.25rem;
vertical-align: top;
border-top: 1px solid #ddd
}
table th {
font-weight: bold
}
table thead th {
vertical-align: bottom
}
table caption+thead tr:first-child th, table caption+thead tr:first-child td, table colgroup+thead tr:first-child th, table colgroup+thead tr:first-child td, table thead:first-child tr:first-child th, table thead:first-child tr:first-child td {
border-top: 0
}
table tbody+tbody {
border-top: 2px solid #ddd
} */
table {
margin: 0.8em 0;
}
table {
padding: 0;
word-break: initial;
}
table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}
table tr:nth-child(2n),
thead {
background-color: #f8f8f8;
}
table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
text-align: center;
}
table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
.md-fences {
background: var(--dracula-background);
color: #dedede;
/* border : 1px solid; */
/* border-color : var(--dracula-background); */
padding: 0.5em;
/*background: #f0f0f0;*/
/* border: 1px solid #; */
border-radius: 15px;
padding: 0.1em;
font-size: 16px;
margin: 5px;
padding: 20px;
}
.task-list {
padding-left: 0;
}
.task-list-item {
padding-left: 2.125rem;
}
.task-list-item input {
top: 3px;
}
.task-list-item input:before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
vertical-align: middle;
text-align: center;
border: 1px solid gray;
background-color: #fdfdfd;
margin-left: 0;
margin-top: -0.8rem;
}
.task-list-item input:checked:before,
.task-list-item input[checked]:before {
content: "\25FC";
/*◘*/
font-size: 0.8125rem;
line-height: 0.9375rem;
margin-top: -1rem;
}
/* Chrome 29+ */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
.task-list-item input:before {
margin-top: -0.2rem;
}
.task-list-item input:checked:before,
.task-list-item input[checked]:before {
margin-top: -0.2rem;
}
}
blockquote {
margin: 0 0 1.11111rem;
padding: 0.5rem 1.11111rem 0 1.05556rem;
border-left: 1px solid gray;
}
blockquote,
blockquote p {
line-height: 1.6;
color: #6f6f6f;
}
#write pre.md-meta-block {
background: transparent;
border-bottom: solid;
border-color: #393451;
width: auto;
font-family: "Times New Roman", Times, serif;
font-size: 20px;
font-weight: bold;
margin: 0em;
margin-top: -0.5em;
color: #393451;
max-width: 100%;
/* text-align : center; */
}
.MathJax_Display {
font-size: 0.9em;
margin-top: 0.5em;
margin-bottom: 0;
}
p.mathjax-block,
.mathjax-block {
padding-bottom: 0;
}
.mathjax-block > .code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image > .md-meta {
padding-left: 0.5em;
padding-right: 0.5em;
}
.md-image > img {
margin-top: 2px;
}
p > .md-image:only-child:not(.md-img-error) img,
p > img:only-child {
display: inline-block;
}
.md-image > .md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: #555;
}
/** ui for windows **/
#md-searchpanel {
border-bottom: 1px solid #ccc;
}
#md-searchpanel .btn {
border: 1px solid #ccc;
}
#md-notification:before {
top: 14px;
}
#md-notification {
background: #eee;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
/* #typora-sidebar {
box-shadow: none;
border-radius : 0 15px 15px 0px;
margin : 10px 0 10px 0;
height : calc(100% - 20px);
color : white;
} */
#typora-sidebar {
box-shadow: none;
color: white;
}
.file-list-item,
.show-folder-name .file-list-item {
padding-top: 20px;
padding-bottom: 20px;
line-height: 20px;
}
.file-list-item-summary {
height: 40px;
line-height: 20px;
}
mark {
font-style: normal;
border-width: 0px;
background: white;
background-image: linear-gradient(
-100deg,
rgba(135, 206, 235, 0.25),
rgba(135, 206, 235, 1) 100%,
rgba(135, 206, 235, 0.45)
);
}
code {
background-color: #e1e1e1;
border-width: px;
}
#typora-sidebar code {
color: black;
}
/* code {
font-style: normal;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,250,100,0.25),
rgba(255,250,100,1) 100%,
rgba(255,250,100,0.45)
);
} */
hr {
background-color: lightgray;
border: solid lightgray;
border-radius: 0.5rem;
height: 0.06cm;
margin: 2rem 10rem;
page-break-after: always;
}
/* box-shadow: 0 0 6px 1px RGB(40,42,54); */
hr:after {
/* Not really supposed to work, but does */
content: "\00a0"; /* Prevent margin collapse */
}
strong strong {
background: #f27a70;
color: white;
padding: 3px 5px;
margin: -3px 3px 0px 3px;
line-height: 1.7;
border-radius: 10px;
border-width: 0px;
}
blockquote {
border-left: solid 4px skyblue;
}
html,
body {
margin: auto;
padding: 0;
place-items: center;
}
.page {
box-sizing: border-box;
height: 100%;
width: 100%;
border: 1px solid transparent;
page-break-after: always;
}
.page-middle {
height: 100%;
width: 100%;
display: table;
}
.page-middle-inner {
height: 100%;
width: 100%;
display: table-cell;
vertical-align: middle;
}
#sidebar-files-menu {
border: solid 1px;
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
background-color: var(--bg-color);
color: black;
}
#ty-sort-by-natural-btn,
#ty-sort-by-name-btn,
#ty-sort-by-date-btn {
background-color: white;
}
#typora-quick-open {
color: white;
}
#file-library-search-input {
color: white;
background-color: transparent;
}
#typora-sidebar > * {
background-color: transparent;
}

548
themes/godopu.rfc.css Normal file
View File

@ -0,0 +1,548 @@
/* @include-when-export url(https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic);
@include-when-export url(https://fonts.googleapis.com/css?family=Raleway:600,400&subset=latin,latin-ext); */
@import "godopu/codeblock.dark.css";
/* @charset "UTF-8"; */
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: normal;
src: url(./godopu/texgyreadventor-regular.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: bold;
src: url(./godopu/texgyreadventor-bold.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: normal;
src: url(./godopu/texgyreadventor-italic.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: bold;
src: url(./godopu/texgyreadventor-bolditalic.otf);
}
:root {
--dracula-background:#282a36;
--dracula-current-line:#44475a;
--dracula-section:#363849;
--dracula-foreground:#f8f8f2;
--dracula-comment:#6272a4;
--dracula-cyan:#8be9fd;
--dracula-green:#50fa7b;
--dracula-orange:#ffb86c;
--dracula-pink:#ff79c6;
--dracula-purple:#bd93f9;
--dracula-red:#ff5555;
--dracula-yellow:#f1fa8c;
--window-border: none;
--typora-center-window-title: true;
--active-file-bg-color: #282a36;
--bg-color: #fcfcfc;
--control-text-color: white;
--control-text-hover-color: var(--dracula-cyan);
--side-bar-bg-color: var(--dracula-section);
--active-file-text-color : white;
}
#info-panel-tab-file,
#info-panel-tab-outline
{
color : #eee;
}
#info-panel-tab-file:hover,
#info-panel-tab-outline:hover
{
color : var(--dracula-comment);
}
/* .mac-seamless-mode #typora-sidebar {
top: var(--mac-title-bar-height);
padding-top: 0;
height: auto;
background-color: var(--side-bar-bg-color);
border-radius : 0 10px 10px 0;
} */
html, body, #write {
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Raleway', "STHeiti", sans-serif;
font-weight: 300;
}
body{
padding-top : 1cm;
}
h1, h2, h3, h4, h5, h6 {
color : #6272a4;
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Ubuntu', "STHeiti", sans-serif;
}
html, body{
font-size: 16px;
}
#write {
max-width: 750px;
text-align: justify;
}
#write>h1, h2, h3, h4:first-child {
margin-top: 0rem;
}
h1 {
font-weight: bold;
line-height: 4rem;
margin: 0 0 1rem;
text-align: center;
margin-top: 2rem;
}
h2 {
font-weight: bold;
border-bottom: 1px solid #ccc;
line-height: 3rem;
margin: 0 0 1rem;
margin-top: 1rem;
}
h3 {
font-weight: bold;
margin-left: 1rem;
}
/* h3:before {
content : "> ";
color : darkgray;
} */
h4 {
font-weight: bold;
margin-left: 2rem;
}
h4:before {
content : "□ ";
color : #6272a4;
}
h5 {
font-size: 1.125rem;
font-weight: bold;
margin-left: 3rem;
}
h5:before {
content : "○ ";
color : #6272a4;
}
h6 {
font-size: 1rem;
font-weight: bold;
margin-left: 4rem;
}
h6:before {
content : "─ ";
color : #6272a4;
}
p {
color: #111;
font-size: 1rem;
line-height: 1.75rem;
margin: 0 0 1rem;
}
u{
font-style: normal;
text-decoration : none;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,192,200,0.25),
rgba(255,192,200,1) 100%,
rgba(255,192,200,0.45)
);
}
#write>h3.md-focus:before {
left: -1.875rem;
top: 0.5rem;
padding: 2px;
}
#write>h4.md-focus:before {
left: -1.875rem;
top: 0.3125rem;
padding: 2px;
}
#write>h5.md-focus:before {
left: -1.875rem;
top: 0.25rem;
padding: 2px;
}
#write>h6.md-focus:before {
left: -1.875rem;
top: .125rem;
padding: 2px;
}
@media print {
html, body{margin : 0rem; padding : 0rem}
#write{padding-top : 0rem;}
h1 {page-break-before: always; margin-top : 0rem;}
}
@page
{
size: auto; /* auto is the initial value */
/* this affects the margin in the printer settings */
margin: 13mm 3mm 13mm 3mm;
}
@media screen and (max-width: 70rem) {
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0em;
}
}
a, .md-def-url {
color: #990000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* table {
margin-bottom: 20px
}
table th, table td {
padding: 8px;
line-height: 1.25rem;
vertical-align: top;
border-top: 1px solid #ddd
}
table th {
font-weight: bold
}
table thead th {
vertical-align: bottom
}
table caption+thead tr:first-child th, table caption+thead tr:first-child td, table colgroup+thead tr:first-child th, table colgroup+thead tr:first-child td, table thead:first-child tr:first-child th, table thead:first-child tr:first-child td {
border-top: 0
}
table tbody+tbody {
border-top: 2px solid #ddd
} */
table{
margin: 0.8em 0;
}
table {
padding: 0;
word-break: initial;
}
table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}
table tr:nth-child(2n),
thead {
background-color: #f8f8f8;
}
table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
text-align : center;
}
table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
.md-fences {
background : var(--dracula-background);
color : #dedede;
/* border : 1px solid; */
/* border-color : var(--dracula-background); */
padding: .5em;
/*background: #f0f0f0;*/
/* border: 1px solid #; */
border-radius : 15px;
padding: .1em;
font-size: 16px;
margin : 5px;
padding :20px;
}
.task-list {
padding-left: 0;
}
.task-list-item {
padding-left: 2.125rem;
}
.task-list-item input {
top: 3px;
}
.task-list-item input:before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
vertical-align: middle;
text-align: center;
border: 1px solid gray;
background-color: #fdfdfd;
margin-left: 0;
margin-top: -0.8rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
content: '\25FC';
/*◘*/
font-size: 0.8125rem;
line-height: 0.9375rem;
margin-top: -1rem;
}
/* Chrome 29+ */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
.task-list-item input:before {
margin-top: -0.2rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
margin-top: -0.2rem;
}
}
blockquote {
margin: 0 0 1.11111rem;
padding: 0.5rem 1.11111rem 0 1.05556rem;
border-left: 1px solid gray;
}
blockquote, blockquote p {
line-height: 1.6;
color: #6f6f6f;
}
#write pre.md-meta-block {
min-height: 30px;
background: #f8f8f8;
padding: 1.5em;
font-weight: 300;
font-size: 1em;
padding-bottom: 1.5em;
padding-top: 3em;
margin-top: -1.5em;
color: #999;
width: 100vw;
max-width: calc(100% + 60px);
margin-left: -30px;
border-left: 30px #f8f8f8 solid;
border-right: 30px #f8f8f8 solid;
}
.MathJax_Display {
font-size: 0.9em;
margin-top: 0.5em;
margin-bottom: 0;
}
p.mathjax-block, .mathjax-block {
padding-bottom: 0;
}
.mathjax-block>.code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image>.md-meta {
padding-left: 0.5em;
padding-right: 0.5em;
}
.md-image>img {
margin-top: 2px;
max-width : 800px;
}
p>.md-image:only-child:not(.md-img-error) img, p>img:only-child{
display : inline-block;
}
.md-image>.md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: #555;
}
/** ui for windows **/
#md-searchpanel {
border-bottom: 1px solid #ccc;
}
#md-searchpanel .btn {
border: 1px solid #ccc;
}
#md-notification:before {
top: 14px;
}
#md-notification {
background: #eee;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
#typora-sidebar {
box-shadow: none;
border-radius : 0 15px 15px 0px;
margin : 10px 0 10px 0;
height : calc(100% - 20px);
color : white;
}
.file-list-item, .show-folder-name .file-list-item {
padding-top: 20px;
padding-bottom: 20px;
line-height: 20px;
}
.file-list-item-summary {
height: 40px;
line-height: 20px;
}
mark {
font-style: normal;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(135,206,235,0.25),
rgba(135,206,235,1) 100%,
rgba(135,206,235,0.45)
);
}
code {
font-style: normal;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,250,100,0.25),
rgba(255,250,100,1) 100%,
rgba(255,250,100,0.45)
);
}
hr{
background-color : lightgray;
border: solid lightgray;
border-radius: 0.5rem;
height:.06cm;
margin : 2rem 10rem;
page-break-after: always;
}
/* box-shadow: 0 0 6px 1px RGB(40,42,54); */
hr:after { /* Not really supposed to work, but does */
content: "\00a0"; /* Prevent margin collapse */
}
strong strong {
background: #f27a70;
color: white;
padding: 3px 5px;
margin: -3px 3px 0px 3px;
line-height: 1.7;
border-radius: 10px;
border-width : 0px;
}
blockquote {
border-left: solid 4px skyblue;
}
html, body{margin: auto; padding: 0;place-items:center;}
.page{box-sizing: border-box; height: 100%; width: 100%; border: 1px solid transparent; page-break-after: always;}
.page-middle{height: 100%; width: 100%; display: table;}
.page-middle-inner{height: 100%; width: 100%; display: table-cell; vertical-align: middle;}
#sidebar-files-menu {
border:solid 1px;
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
background-color: var(--bg-color);
color : black;
}
#ty-sort-by-natural-btn, #ty-sort-by-name-btn, #ty-sort-by-date-btn{
background-color: white;
}
#typora-quick-open{
color : white;
}
#file-library-search-input {
color : white;
background-color : transparent;
}
#typora-sidebar > * {
background-color : transparent;
}

View File

@ -0,0 +1,29 @@
This is a preliminary version (2006-09-30), barring acceptance from
the LaTeX Project Team and other feedback, of the GUST Font License.
(GUST is the Polish TeX Users Group, http://www.gust.org.pl)
For the most recent version of this license see
http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
or
http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
This work may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.
Please also observe the following clause:
1) it is requested, but not legally required, that derived works be
distributed only after changing the names of the fonts comprising this
work and given in an accompanying "manifest", and that the
files comprising the Work, as listed in the manifest, also be given
new names. Any exceptions to this request are also given in the
manifest.
We recommend the manifest be given in a separate file named
MANIFEST-<fontid>.txt, where <fontid> is some unique identification
of the font family. If a separate "readme" file accompanies the Work,
we recommend a name of the form README-<fontid>.txt.
The latest version of the LaTeX Project Public License is in
http://www.latex-project.org/lppl.txt and version 1.3c or later
is part of all distributions of LaTeX version 2006/05/20 or later.

View File

@ -0,0 +1,109 @@
@charset "UTF-8";
/* CSS Document */
/** code highlight */
.cm-s-inner .cm-variable,
.cm-s-inner .cm-operator,
.cm-s-inner .cm-property {
color: #b8bfc6;
}
.cm-s-inner .cm-keyword {
color: #C88FD0;
}
.cm-s-inner .cm-tag {
color: #7DF46A;
}
.cm-s-inner .cm-attribute {
color: #7575E4;
}
.CodeMirror div.CodeMirror-cursor {
border-left: 1px solid #b8bfc6;
z-index: 3;
}
.cm-s-inner .cm-string {
color: #D26B6B;
}
.cm-s-inner .cm-comment,
.cm-s-inner.cm-comment {
color: #DA924A;
}
.cm-s-inner .cm-header,
.cm-s-inner .cm-def,
.cm-s-inner.cm-header,
.cm-s-inner.cm-def {
color: #8d8df0;
}
.cm-s-inner .cm-quote,
.cm-s-inner.cm-quote {
color: #57ac57;
}
.cm-s-inner .cm-hr {
color: #d8d5d5;
}
.cm-s-inner .cm-link {
color: #d3d3ef;
}
.cm-s-inner .cm-negative {
color: #d95050;
}
.cm-s-inner .cm-positive {
color: #50e650;
}
.cm-s-inner .cm-string-2 {
color: #f50;
}
.cm-s-inner .cm-meta,
.cm-s-inner .cm-qualifier {
color: #57ac57;
}
.cm-s-inner .cm-builtin {
color: #f3b3f8;
}
.cm-s-inner .cm-bracket {
color: #997;
}
.cm-s-inner .cm-atom,
.cm-s-inner.cm-atom {
color: #84B6CB;
}
.cm-s-inner .cm-number {
color: #64AB8F;
}
.cm-s-inner .cm-variable {
color: #b8bfc6;
}
.cm-s-inner .cm-variable-2 {
color: #9FBAD5;
}
.cm-s-inner .cm-variable-3 {
color: #1cc685;
}
.CodeMirror-selectedtext,
.CodeMirror-selected::selection{
background: transparent;
color: rgb(253, 116, 139) !important;
text-shadow: none;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

2214
themes/nya-dark.css Executable file

File diff suppressed because it is too large Load Diff

BIN
themes/nya-dark/Roboto-Black.ttf Executable file

Binary file not shown.

Binary file not shown.

BIN
themes/nya-dark/Roboto-Bold.ttf Executable file

Binary file not shown.

Binary file not shown.

BIN
themes/nya-dark/Roboto-Italic.ttf Executable file

Binary file not shown.

BIN
themes/nya-dark/Roboto-Light.ttf Executable file

Binary file not shown.

Binary file not shown.

BIN
themes/nya-dark/Roboto-Medium.ttf Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
themes/nya-dark/Roboto-Thin.ttf Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

88
themes/nya-dark/fonts.css Executable file
View File

@ -0,0 +1,88 @@
/* roboto-300 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'),
url('Roboto-Light.ttf') format('truetype');
}
/* roboto-300italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 300;
src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
url('Roboto-LightItalic.ttf') format('truetype');
}
/* roboto-regular - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'),
url('Roboto-Regular.ttf') format('truetype');
}
/* roboto-italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: local('Roboto Italic'), local('Roboto-Italic'),
url('Roboto-Italic.ttf') format('truetype');
}
/* roboto-500 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'),
url('Roboto-Medium.ttf') format('truetype');
}
/* roboto-500italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 500;
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
url('Roboto-MediumItalic.ttf') format('truetype');
}
/* roboto-700 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'),
url('Roboto-Bold.ttf') format('truetype');
}
/* roboto-700italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
url('Roboto-BoldItalic.ttf') format('truetype');
}
/* roboto-900 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 900;
src: local('Roboto Black'), local('Roboto-Black'),
url('Roboto-Black.ttf') format('truetype');
}
/* roboto-900italic - latin */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 900;
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
url('Roboto-BlackItalic.ttf') format('truetype');
}
/* sorucecodepro-400 - latin */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: local('Source Code Pro'), local('SourceCodePro-Regular'),
url('SourceCodePro-Regular.ttf') format('truetype');
}

548
themes/rfc.css Normal file
View File

@ -0,0 +1,548 @@
/* @include-when-export url(https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic);
@include-when-export url(https://fonts.googleapis.com/css?family=Raleway:600,400&subset=latin,latin-ext); */
@import "rfc/codeblock.dark.css";
/* @charset "UTF-8"; */
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: normal;
src: url(./rfc/texgyreadventor-regular.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: normal;
font-weight: bold;
src: url(./rfc/texgyreadventor-bold.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: normal;
src: url(./rfc/texgyreadventor-italic.otf);
}
@font-face {
font-family: 'TeXGyreAdventor';
font-style: italic;
font-weight: bold;
src: url(./rfc/texgyreadventor-bolditalic.otf);
}
:root {
--dracula-background:#282a36;
--dracula-current-line:#44475a;
--dracula-section:#363849;
--dracula-foreground:#f8f8f2;
--dracula-comment:#6272a4;
--dracula-cyan:#8be9fd;
--dracula-green:#50fa7b;
--dracula-orange:#ffb86c;
--dracula-pink:#ff79c6;
--dracula-purple:#bd93f9;
--dracula-red:#ff5555;
--dracula-yellow:#f1fa8c;
--window-border: none;
--typora-center-window-title: true;
--active-file-bg-color: #282a36;
--bg-color: #fcfcfc;
--control-text-color: white;
--control-text-hover-color: var(--dracula-cyan);
--side-bar-bg-color: var(--dracula-section);
--active-file-text-color : white;
}
#info-panel-tab-file,
#info-panel-tab-outline
{
color : #eee;
}
#info-panel-tab-file:hover,
#info-panel-tab-outline:hover
{
color : var(--dracula-comment);
}
/* .mac-seamless-mode #typora-sidebar {
top: var(--mac-title-bar-height);
padding-top: 0;
height: auto;
background-color: var(--side-bar-bg-color);
border-radius : 0 10px 10px 0;
} */
html, body, #write {
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Raleway', "STHeiti", sans-serif;
font-weight: 300;
}
body{
padding-top : 1cm;
}
h1, h2, h3, h4, h5, h6 {
color : #6272a4;
font-family: 'TeXGyreAdventor', "Century Gothic", 'Yu Gothic', 'Ubuntu', "STHeiti", sans-serif;
}
html, body{
font-size: 16px;
}
#write {
max-width: 750px;
text-align: justify;
}
#write>h1, h2, h3, h4:first-child {
margin-top: 0rem;
}
h1 {
font-weight: bold;
line-height: 4rem;
margin: 0 0 1rem;
text-align: center;
margin-top: 2rem;
}
h2 {
font-weight: bold;
border-bottom: 1px solid #ccc;
line-height: 3rem;
margin: 0 0 1rem;
margin-top: 1rem;
}
h3 {
font-weight: bold;
margin-left: 1rem;
}
/* h3:before {
content : "> ";
color : darkgray;
} */
h4 {
font-weight: bold;
margin-left: 2rem;
}
h4:before {
content : "□ ";
color : #6272a4;
}
h5 {
font-size: 1.125rem;
font-weight: bold;
margin-left: 3rem;
}
h5:before {
content : "○ ";
color : #6272a4;
}
h6 {
font-size: 1rem;
font-weight: bold;
margin-left: 4rem;
}
h6:before {
content : "─ ";
color : #6272a4;
}
p {
color: #111;
font-size: 1rem;
line-height: 1.75rem;
margin: 0 0 1rem;
}
u{
font-style: normal;
text-decoration : none;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,192,200,0.25),
rgba(255,192,200,1) 100%,
rgba(255,192,200,0.45)
);
}
#write>h3.md-focus:before {
left: -1.875rem;
top: 0.5rem;
padding: 2px;
}
#write>h4.md-focus:before {
left: -1.875rem;
top: 0.3125rem;
padding: 2px;
}
#write>h5.md-focus:before {
left: -1.875rem;
top: 0.25rem;
padding: 2px;
}
#write>h6.md-focus:before {
left: -1.875rem;
top: .125rem;
padding: 2px;
}
@media print {
html, body{margin : 0rem; padding : 0rem}
#write{padding-top : 0rem;}
h1 {page-break-before: always; margin-top : 0rem;}
}
@page
{
size: auto; /* auto is the initial value */
/* this affects the margin in the printer settings */
margin: 13mm 3mm 13mm 3mm;
}
@media screen and (max-width: 70rem) {
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0em;
}
}
a, .md-def-url {
color: #990000;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* table {
margin-bottom: 20px
}
table th, table td {
padding: 8px;
line-height: 1.25rem;
vertical-align: top;
border-top: 1px solid #ddd
}
table th {
font-weight: bold
}
table thead th {
vertical-align: bottom
}
table caption+thead tr:first-child th, table caption+thead tr:first-child td, table colgroup+thead tr:first-child th, table colgroup+thead tr:first-child td, table thead:first-child tr:first-child th, table thead:first-child tr:first-child td {
border-top: 0
}
table tbody+tbody {
border-top: 2px solid #ddd
} */
table{
margin: 0.8em 0;
}
table {
padding: 0;
word-break: initial;
}
table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}
table tr:nth-child(2n),
thead {
background-color: #f8f8f8;
}
table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
text-align : center;
}
table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}
table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}
.md-fences {
background : var(--dracula-background);
color : #dedede;
/* border : 1px solid; */
/* border-color : var(--dracula-background); */
padding: .5em;
/*background: #f0f0f0;*/
/* border: 1px solid #; */
border-radius : 15px;
padding: .1em;
font-size: 16px;
margin : 5px;
padding :20px;
}
.task-list {
padding-left: 0;
}
.task-list-item {
padding-left: 2.125rem;
}
.task-list-item input {
top: 3px;
}
.task-list-item input:before {
content: "";
display: inline-block;
width: 1rem;
height: 1rem;
vertical-align: middle;
text-align: center;
border: 1px solid gray;
background-color: #fdfdfd;
margin-left: 0;
margin-top: -0.8rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
content: '\25FC';
/*◘*/
font-size: 0.8125rem;
line-height: 0.9375rem;
margin-top: -1rem;
}
/* Chrome 29+ */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
.task-list-item input:before {
margin-top: -0.2rem;
}
.task-list-item input:checked:before, .task-list-item input[checked]:before {
margin-top: -0.2rem;
}
}
blockquote {
margin: 0 0 1.11111rem;
padding: 0.5rem 1.11111rem 0 1.05556rem;
border-left: 1px solid gray;
}
blockquote, blockquote p {
line-height: 1.6;
color: #6f6f6f;
}
#write pre.md-meta-block {
min-height: 30px;
background: #f8f8f8;
padding: 1.5em;
font-weight: 300;
font-size: 1em;
padding-bottom: 1.5em;
padding-top: 3em;
margin-top: -1.5em;
color: #999;
width: 100vw;
max-width: calc(100% + 60px);
margin-left: -30px;
border-left: 30px #f8f8f8 solid;
border-right: 30px #f8f8f8 solid;
}
.MathJax_Display {
font-size: 0.9em;
margin-top: 0.5em;
margin-bottom: 0;
}
p.mathjax-block, .mathjax-block {
padding-bottom: 0;
}
.mathjax-block>.code-tooltip {
bottom: 5px;
box-shadow: none;
}
.md-image>.md-meta {
padding-left: 0.5em;
padding-right: 0.5em;
}
.md-image>img {
margin-top: 2px;
max-width : 800px;
}
p>.md-image:only-child:not(.md-img-error) img, p>img:only-child{
display : inline-block;
}
.md-image>.md-meta:first-of-type:before {
padding-left: 4px;
}
#typora-source {
color: #555;
}
/** ui for windows **/
#md-searchpanel {
border-bottom: 1px solid #ccc;
}
#md-searchpanel .btn {
border: 1px solid #ccc;
}
#md-notification:before {
top: 14px;
}
#md-notification {
background: #eee;
}
.megamenu-menu-panel .btn {
border: 1px solid #ccc;
}
#typora-sidebar {
box-shadow: none;
border-radius : 0 15px 15px 0px;
margin : 10px 0 10px 0;
height : calc(100% - 20px);
color : white;
}
.file-list-item, .show-folder-name .file-list-item {
padding-top: 20px;
padding-bottom: 20px;
line-height: 20px;
}
.file-list-item-summary {
height: 40px;
line-height: 20px;
}
mark {
font-style: normal;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(135,206,235,0.25),
rgba(135,206,235,1) 100%,
rgba(135,206,235,0.45)
);
}
code {
font-style: normal;
border-width : 0px;
background : white;
background-image:
linear-gradient(-100deg,
rgba(255,250,100,0.25),
rgba(255,250,100,1) 100%,
rgba(255,250,100,0.45)
);
}
hr{
background-color : lightgray;
border: solid lightgray;
border-radius: 0.5rem;
height:.06cm;
margin : 2rem 10rem;
page-break-after: always;
}
/* box-shadow: 0 0 6px 1px RGB(40,42,54); */
hr:after { /* Not really supposed to work, but does */
content: "\00a0"; /* Prevent margin collapse */
}
strong strong {
background: #f27a70;
color: white;
padding: 3px 5px;
margin: -3px 3px 0px 3px;
line-height: 1.7;
border-radius: 10px;
border-width : 0px;
}
blockquote {
border-left: solid 4px skyblue;
}
html, body{margin: auto; padding: 0;place-items:center;}
.page{box-sizing: border-box; height: 100%; width: 100%; border: 1px solid transparent; page-break-after: always;}
.page-middle{height: 100%; width: 100%; display: table;}
.page-middle-inner{height: 100%; width: 100%; display: table-cell; vertical-align: middle;}
#sidebar-files-menu {
border:solid 1px;
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
background-color: var(--bg-color);
color : black;
}
#ty-sort-by-natural-btn, #ty-sort-by-name-btn, #ty-sort-by-date-btn{
background-color: white;
}
#typora-quick-open{
color : white;
}
#file-library-search-input {
color : white;
background-color : transparent;
}
#typora-sidebar > * {
background-color : transparent;
}

View File

@ -0,0 +1,29 @@
This is a preliminary version (2006-09-30), barring acceptance from
the LaTeX Project Team and other feedback, of the GUST Font License.
(GUST is the Polish TeX Users Group, http://www.gust.org.pl)
For the most recent version of this license see
http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
or
http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
This work may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.
Please also observe the following clause:
1) it is requested, but not legally required, that derived works be
distributed only after changing the names of the fonts comprising this
work and given in an accompanying "manifest", and that the
files comprising the Work, as listed in the manifest, also be given
new names. Any exceptions to this request are also given in the
manifest.
We recommend the manifest be given in a separate file named
MANIFEST-<fontid>.txt, where <fontid> is some unique identification
of the font family. If a separate "readme" file accompanies the Work,
we recommend a name of the form README-<fontid>.txt.
The latest version of the LaTeX Project Public License is in
http://www.latex-project.org/lppl.txt and version 1.3c or later
is part of all distributions of LaTeX version 2006/05/20 or later.

View File

@ -0,0 +1,109 @@
@charset "UTF-8";
/* CSS Document */
/** code highlight */
.cm-s-inner .cm-variable,
.cm-s-inner .cm-operator,
.cm-s-inner .cm-property {
color: #b8bfc6;
}
.cm-s-inner .cm-keyword {
color: #C88FD0;
}
.cm-s-inner .cm-tag {
color: #7DF46A;
}
.cm-s-inner .cm-attribute {
color: #7575E4;
}
.CodeMirror div.CodeMirror-cursor {
border-left: 1px solid #b8bfc6;
z-index: 3;
}
.cm-s-inner .cm-string {
color: #D26B6B;
}
.cm-s-inner .cm-comment,
.cm-s-inner.cm-comment {
color: #DA924A;
}
.cm-s-inner .cm-header,
.cm-s-inner .cm-def,
.cm-s-inner.cm-header,
.cm-s-inner.cm-def {
color: #8d8df0;
}
.cm-s-inner .cm-quote,
.cm-s-inner.cm-quote {
color: #57ac57;
}
.cm-s-inner .cm-hr {
color: #d8d5d5;
}
.cm-s-inner .cm-link {
color: #d3d3ef;
}
.cm-s-inner .cm-negative {
color: #d95050;
}
.cm-s-inner .cm-positive {
color: #50e650;
}
.cm-s-inner .cm-string-2 {
color: #f50;
}
.cm-s-inner .cm-meta,
.cm-s-inner .cm-qualifier {
color: #57ac57;
}
.cm-s-inner .cm-builtin {
color: #f3b3f8;
}
.cm-s-inner .cm-bracket {
color: #997;
}
.cm-s-inner .cm-atom,
.cm-s-inner.cm-atom {
color: #84B6CB;
}
.cm-s-inner .cm-number {
color: #64AB8F;
}
.cm-s-inner .cm-variable {
color: #b8bfc6;
}
.cm-s-inner .cm-variable-2 {
color: #9FBAD5;
}
.cm-s-inner .cm-variable-3 {
color: #1cc685;
}
.CodeMirror-selectedtext,
.CodeMirror-selected::selection{
background: transparent;
color: rgb(253, 116, 139) !important;
text-shadow: none;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.