muggledy / typora-dyzj-theme

Typora主题css样式
https://typora-dyzj-theme.vercel.app/
332 stars 74 forks source link

宝,代码块上下Mac主题的三个点 #14

Closed Ran-Xing closed 1 year ago

ruyan-lx commented 1 year ago

🎉宝,那三个点我加上了,可以试试我改的:https://github.com/ruyan-lx/typora-dyzj-theme

Ran-Xing commented 1 year ago

@ruyan-lx 🐮🍺

Ran-Xing commented 1 year ago

@ruyan-lx Windows Install OpenSSH.pdf Windows Install OpenSSH2.pdf

好像不是很聪明的样子


生成密钥

ssh-keygen \
    -m PEM \
    -t rsa \
    -b 4096 \
    -C "laowang@qq.com" \
    -N my_ssh_passwd

Install OpenSSH

# >>>
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
<<<
Name  : OpenSSH.Client~~~~0.0.1.0
State : NotPresent

Name  : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
# >>>
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
<<<
Path          :
Online        : True
RestartNeeded : False
# >>>
# Start the sshd service
Start-Service sshd

# OPTIONAL but recommended:
Set-Service -Name sshd -StartupType 'Automatic'

# Confirm the Firewall rule is configured. It should be created automatically by setup. Run the following to verify
if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) {
    Write-Output "Firewall Rule 'OpenSSH-Server-In-TCP' does not exist, creating it..."
    New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
} else {
    Write-Output "Firewall rule 'OpenSSH-Server-In-TCP' has been created and exists."
}

Uninstall OpenSSH

# Uninstall the OpenSSH Client
Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

# Uninstall the OpenSSH Server
Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Configuration OpenSSH

Default Terminal

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force

File

Config

Debug Model

Stop-Service sshd
C:\Windows\System32\OpenSSH\sshd.exe -d

Other

Restart-Service sshd    # 重启服务
Stop-Service sshd       # 停止服务
Start-Service sshd      # 开启服务
ruyan-lx commented 1 year ago

😅😅😅因为设置了背景,不能导出为PDF。 要先将dyzj.css文件中背景图片注释 image

Ran-Xing commented 1 year ago

@ruyan-lx 能不能把三个点放小一点,已关注

ruyan-lx commented 1 year ago

@Ran-Xing 改了一下

Ran-Xing commented 1 year ago

@ruyan-lx 大佬太强了

ruyan-lx commented 1 year ago

@Ran-Xing 😅没有没有,原作者才是强,我只是在巨人肩膀上改改皮毛

Ran-Xing commented 1 year ago

@ruyan-lx 你看下

#write {
    /* max-width: 860px; 改动,整体显示宽度*/
    max-width: 1100px;
    /*margin: 100px auto;*/
    padding: 20px 30px 160px;
    /* 改动:新增文章主体背景颜色以及圆角 */
    background-color: #ffffffb0;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 4px #ffffff;      
}
ruyan-lx commented 1 year ago

你是要干嘛,如果是不想要那个文章主体周边发散效果box-shadow: 0px 0px 20px 4px #ffffff; 注释掉就好了 margin: 100px auto;别注释了,可能会不居中的。

Ran-Xing commented 1 year ago

@ruyan-lx 我觉得顶部空间太多了

ruyan-lx commented 1 year ago

那就改成,margin: 0px auto; 这是刚想到个高斯模糊的效果,想搭配背景图片去弄,所以顺手改大了些🙃

Ran-Xing commented 1 year ago

@ruyan-lx 你在你的仓库开启一下issues 权限,我蹭蹭你的