mirror of
https://github.com/go-gitea/gitea
synced 2024-12-27 02:54:20 +01:00
1fcf96ad01
This PR follows: * #22950 ### Before The Review Box has many problems: * It doesn't work for small screens. * It has an anonying animation which makes the UI laggy. * It uses "custom dropdown menu" which is very difficult to fine tune. * `$().toggle('visible')` is not a correct call * jQuery just accepts any invalid `duration` argument: `$().toggle('anyting')` * The button is not a button. <details> ![image](https://user-images.githubusercontent.com/2114189/219948865-6da3f39c-6fde-4c86-9e42-da5020f3d0c3.png) </details> ### After These problems are fixed, and eliminate many `!important` games. <details> ![image](https://user-images.githubusercontent.com/2114189/219952744-8862fe1a-7ef1-49e4-bf92-2d0c1f104ee4.png) ![image](https://user-images.githubusercontent.com/2114189/219952771-be169a76-45fd-47a8-8f9c-b447d064f4ca.png) ![image](https://user-images.githubusercontent.com/2114189/219952784-3f52e9b7-64ce-4ad1-9553-64c33fb83042.png) </details> And most dropdown icons still looks good: <details> ![image](https://user-images.githubusercontent.com/2114189/219952942-52866a00-e0f9-4af7-8fb5-eb1a8cad1ff3.png) ![image](https://user-images.githubusercontent.com/2114189/219948909-b3bfb844-f84e-4b79-ab1f-382ec66dec31.png) </details> Co-authored-by: delvh <leon@kske.dev>
82 lines
1.6 KiB
Text
82 lines
1.6 KiB
Text
.repository.file.editor .tab[data-tab="write"] {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.repository.file.editor .tab[data-tab="write"] .editor-toolbar {
|
|
border: 0 !important;
|
|
}
|
|
|
|
.repository.file.editor .tab[data-tab="write"] .CodeMirror {
|
|
border-left: 0;
|
|
border-right: 0;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.editor-toolbar {
|
|
max-width: calc(100vw - 80px);
|
|
border-color: var(--color-secondary);
|
|
}
|
|
|
|
.editor-toolbar.fullscreen {
|
|
background: var(--color-body);
|
|
}
|
|
|
|
.editor-toolbar button {
|
|
border: none !important;
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.editor-toolbar button:not(:hover) {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.editor-toolbar i.separator {
|
|
border-left: none;
|
|
border-right-color: var(--color-secondary);
|
|
}
|
|
|
|
.editor-toolbar button:hover {
|
|
background: var(--color-hover);
|
|
}
|
|
|
|
.editor-toolbar button.active {
|
|
background: var(--color-active);
|
|
}
|
|
|
|
/* hide preview button, we have the preview tab for this */
|
|
.editor-toolbar:not(.fullscreen) .preview {
|
|
display: none;
|
|
}
|
|
|
|
/* hide revert button in fullscreen, it breaks the page */
|
|
.editor-toolbar.fullscreen .revert-to-textarea {
|
|
display: none;
|
|
}
|
|
|
|
.editor-preview {
|
|
background-color: var(--color-body);
|
|
}
|
|
|
|
.editor-preview-side {
|
|
border-color: var(--color-secondary);
|
|
}
|
|
|
|
.editor-statusbar {
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.editor-loading {
|
|
padding: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.edit-diff {
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.edit-diff > div > .ui.table {
|
|
border-top: none !important;
|
|
border-bottom: none !important;
|
|
border-left: 1px solid var(--color-secondary) !important;
|
|
border-right: 1px solid var(--color-secondary) !important;
|
|
}
|