2023-04-24 05:08:59 -06:00
|
|
|
/*
|
|
|
|
Gitea's tailwind-style CSS helper classes have `gt-` prefix.
|
|
|
|
Gitea's private styles use `g-` prefix.
|
|
|
|
*/
|
2020-11-10 11:28:07 -07:00
|
|
|
|
2023-02-13 10:59:59 -07:00
|
|
|
.gt-word-break {
|
2020-11-10 11:28:07 -07:00
|
|
|
word-wrap: break-word !important;
|
2022-04-29 03:30:54 -06:00
|
|
|
overflow-wrap: anywhere;
|
2020-11-10 11:28:07 -07:00
|
|
|
}
|
2020-09-08 11:17:56 -06:00
|
|
|
|
2023-02-13 10:59:59 -07:00
|
|
|
.gt-ellipsis {
|
2021-12-11 07:12:18 -07:00
|
|
|
overflow: hidden !important;
|
|
|
|
white-space: nowrap !important;
|
|
|
|
text-overflow: ellipsis !important;
|
|
|
|
}
|
|
|
|
|
2023-04-26 09:59:08 -06:00
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis span {
|
|
|
|
position: absolute;
|
2024-05-11 08:28:56 -06:00
|
|
|
inset: 0;
|
2023-04-26 09:59:08 -06:00
|
|
|
padding: inherit;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2023-06-09 02:37:47 -06:00
|
|
|
.interact-fg { color: inherit !important; }
|
|
|
|
.interact-fg:hover { color: var(--color-primary) !important; }
|
|
|
|
.interact-fg:active { color: var(--color-primary-active) !important; }
|
|
|
|
|
|
|
|
.interact-bg { background: transparent !important; }
|
|
|
|
.interact-bg:hover { background: var(--color-hover) !important; }
|
|
|
|
.interact-bg:active { background: var(--color-active) !important; }
|
|
|
|
|
2023-02-18 21:06:14 -07:00
|
|
|
/*
|
2024-03-24 12:23:38 -06:00
|
|
|
tw-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element.
|
2023-02-18 21:06:14 -07:00
|
|
|
do not use:
|
|
|
|
* "[hidden]" attribute: it's too weak, can not be applied to an element with "display: flex"
|
|
|
|
* ".hidden" class: it has been polluted by Fomantic UI in many cases
|
|
|
|
* inline style="display: none": it's difficult to tweak
|
|
|
|
* jQuery's show/hide/toggle: it can not show/hide elements with "display: xxx !important"
|
|
|
|
only use:
|
2024-03-24 12:23:38 -06:00
|
|
|
* this ".tw-hidden" class
|
2023-02-18 21:06:14 -07:00
|
|
|
* showElem/hideElem/toggleElem functions in "utils/dom.js"
|
|
|
|
*/
|
2024-03-24 12:23:38 -06:00
|
|
|
.tw-hidden.tw-hidden { display: none !important; }
|
2024-03-21 11:04:03 -06:00
|
|
|
|
2024-04-14 11:53:52 -06:00
|
|
|
/* proposed class from https://github.com/tailwindlabs/tailwindcss/pull/12128 */
|
|
|
|
.tw-break-anywhere { overflow-wrap: anywhere !important; }
|
|
|
|
|
2024-03-21 11:04:03 -06:00
|
|
|
@media (max-width: 767.98px) {
|
|
|
|
/* double selector so it wins over .tw-flex (old .gt-df) etc */
|
|
|
|
.not-mobile.not-mobile {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 767.98px) {
|
|
|
|
.only-mobile.only-mobile {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2024-03-31 05:22:28 -06:00
|
|
|
|
|
|
|
.tab-size-1 { tab-size: 1 !important; }
|
|
|
|
.tab-size-2 { tab-size: 2 !important; }
|
|
|
|
.tab-size-3 { tab-size: 3 !important; }
|
|
|
|
.tab-size-4 { tab-size: 4 !important; }
|
|
|
|
.tab-size-5 { tab-size: 5 !important; }
|
|
|
|
.tab-size-6 { tab-size: 6 !important; }
|
|
|
|
.tab-size-7 { tab-size: 7 !important; }
|
|
|
|
.tab-size-8 { tab-size: 8 !important; }
|
|
|
|
.tab-size-9 { tab-size: 9 !important; }
|
|
|
|
.tab-size-10 { tab-size: 10 !important; }
|
|
|
|
.tab-size-11 { tab-size: 11 !important; }
|
|
|
|
.tab-size-12 { tab-size: 12 !important; }
|
|
|
|
.tab-size-13 { tab-size: 13 !important; }
|
|
|
|
.tab-size-14 { tab-size: 14 !important; }
|
|
|
|
.tab-size-15 { tab-size: 15 !important; }
|
|
|
|
.tab-size-16 { tab-size: 16 !important; }
|