Skip to content

Commit

Permalink
[chore] update style with tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
ousc committed Dec 19, 2023
1 parent 1bad7ed commit a4cefeb
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 56 deletions.
13 changes: 9 additions & 4 deletions docs/index.html

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions docs/main-67FHS7ZN.js → docs/main-VFLH6R6X.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/styles-FM6HP6FY.css → docs/styles-KHY2OJMA.css

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<article class="prose lg:prose-xl"></article>
<div class="relative h-full pt-10">
<tool-bar [provider]="provider" *ngIf="editor && !editor.loading"/>
<div class="ctn">
<div class="h-full overflow-auto overscroll-none">
<ng-prosemirror-adapter-provider #provider>
<ng-milkdown
*ngIf="value"
[editorConfig]="config"
[plugins]="plugins"
[(ngModel)]="value"
(ngModelChange)="onChange($event)"
(onReady)="editor = $event"
/>
</ng-prosemirror-adapter-provider>
</div>
</div>
@if (editor && !editor.loading) {
<tool-bar class="opacity-80" [provider]="provider"/>
}
<div class="h-full overflow-auto overscroll-none ctn left-0 right-0 mx-auto flex flex-col px-4">
<ng-prosemirror-adapter-provider #provider>
<ng-milkdown
*ngIf="value"
[editorConfig]="config"
[plugins]="plugins"
[(ngModel)]="value"
(ngModelChange)="onChange($event)"
(onReady)="editor = $event"
/>
</ng-prosemirror-adapter-provider>
</div>
</div>
16 changes: 0 additions & 16 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
.ctn {
width: 50%;
margin: auto;
height: fit-content;
display: flex;
flex-direction: column;
padding: 20px;
position: absolute;
left: 0;
right: 0;
min-height: 100%;

@media (max-width: 767px) { // 应用于移动设备
width: 100%;
}
}
7 changes: 6 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<style>
.github-fork-ribbon.right-bottom:before {
background-color: #333;
}
</style>
</head>
<body>
<app-root></app-root>
<a class="github-fork-ribbon" href="https://github.com/ousc/ng-milkdown" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<a class="github-fork-ribbon right-bottom fixed" href="https://github.com/ousc/ng-milkdown" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
</body>
</html>

0 comments on commit a4cefeb

Please sign in to comment.