diff options
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/helpers.css | 20 | ||||
-rw-r--r-- | web_src/js/components/RepoBranchTagSelector.vue | 2 | ||||
-rw-r--r-- | web_src/js/features/common-global.js | 2 | ||||
-rw-r--r-- | web_src/js/modules/fomantic.js | 2 |
4 files changed, 3 insertions, 23 deletions
diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css index 3579c193b1..71f3a619b9 100644 --- a/web_src/css/helpers.css +++ b/web_src/css/helpers.css @@ -52,34 +52,14 @@ Gitea's private styles use `g-` prefix. /* below class names match Tailwind CSS */ .gt-break-all { word-break: break-all !important; } .gt-content-center { align-content: center !important; } -.gt-cursor-default { cursor: default !important; } -.gt-cursor-pointer { cursor: pointer !important; } -.gt-cursor-grab { cursor: grab !important; } .gt-invisible { visibility: hidden !important; } .gt-items-start { align-items: flex-start !important; } .gt-pointer-events-none { pointer-events: none !important; } .gt-relative { position: relative !important; } -.gt-whitespace-nowrap { white-space: nowrap !important; } -.gt-whitespace-pre { white-space: pre !important; } -.gt-whitespace-pre-wrap { white-space: pre-wrap !important; } .gt-object-contain { object-fit: contain !important; } -.gt-self-center { align-self: center !important; } -.gt-self-start { align-self: flex-start !important; } -.gt-self-end { align-self: flex-end !important; } .gt-no-underline { text-decoration-line: none !important; } .gt-normal-case { text-transform: none !important; } .gt-italic { font-style: italic !important; } -.gt-overflow-x-auto { overflow-x: auto !important; } -.gt-overflow-x-scroll { overflow-x: scroll !important; } -.gt-overflow-y-hidden { overflow-y: hidden !important; } - -.gt-float-left { float: left !important; } -.gt-float-right { float: right !important; } -.gt-clear-both { clear: both !important; } - -.gt-text-center { text-align: center !important; } -.gt-text-left { text-align: left !important; } -.gt-text-right { text-align: right !important; } .gt-font-light { font-weight: var(--font-weight-light) !important; } .gt-font-normal { font-weight: var(--font-weight-normal) !important; } diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index bc7d979d99..70ce9bd6a0 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -278,7 +278,7 @@ export default sfc; // activate IDE's Vue plugin <div class="ui label" v-if="item.name===repoDefaultBranch && mode === 'branches'"> {{ textDefaultBranchLabel }} </div> - <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon gt-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> + <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon tw-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> <!-- creating a lot of Vue component is pretty slow, so we use a static SVG here --> <svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg> </a> diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index c53d43cbb2..211253ef9a 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -234,7 +234,7 @@ export function initDropzone(el) { // Create a "Copy Link" element, to conveniently copy the image // or file link as Markdown to the clipboard const copyLinkElement = document.createElement('div'); - copyLinkElement.className = 'gt-text-center'; + copyLinkElement.className = 'tw-text-center'; // The a element has a hardcoded cursor: pointer because the default is overridden by .dropzone copyLinkElement.innerHTML = `<a href="#" style="cursor: pointer;">${svg('octicon-copy', 14, 'copy link')} Copy link</a>`; copyLinkElement.addEventListener('click', async (e) => { diff --git a/web_src/js/modules/fomantic.js b/web_src/js/modules/fomantic.js index 0c7a7ae641..6aafdd5ddc 100644 --- a/web_src/js/modules/fomantic.js +++ b/web_src/js/modules/fomantic.js @@ -17,7 +17,7 @@ export function initGiteaFomantic() { // By default, use "exact match" for full text search $.fn.dropdown.settings.fullTextSearch = 'exact'; // Do not use "cursor: pointer" for dropdown labels - $.fn.dropdown.settings.className.label += ' gt-cursor-default'; + $.fn.dropdown.settings.className.label += ' tw-cursor-default'; // Always use Gitea's SVG icons $.fn.dropdown.settings.templates.label = function(_value, text, preserveHTML, className) { const escape = $.fn.dropdown.settings.templates.escape; |