2023-04-24 16:38:59 +05:30
|
|
|
/*
|
|
|
|
Gitea's tailwind-style CSS helper classes have `gt-` prefix.
|
|
|
|
Gitea's private styles use `g-` prefix.
|
|
|
|
*/
|
2020-11-10 23:58:07 +05:30
|
|
|
|
2023-02-13 23:29:59 +05:30
|
|
|
.gt-mono {
|
2020-11-10 23:58:07 +05:30
|
|
|
font-family: var(--fonts-monospace) !important;
|
2023-04-14 00:35:06 +05:30
|
|
|
font-size: .95em !important; /* compensate for monospace fonts being usually slightly larger */
|
2020-11-10 23:58:07 +05:30
|
|
|
}
|
|
|
|
|
2023-02-13 23:29:59 +05:30
|
|
|
.gt-word-break {
|
2020-11-10 23:58:07 +05:30
|
|
|
word-wrap: break-word !important;
|
2022-04-29 15:00:54 +05:30
|
|
|
word-break: break-word; /* compat: Safari */
|
|
|
|
overflow-wrap: anywhere;
|
2020-11-10 23:58:07 +05:30
|
|
|
}
|
2020-09-08 22:47:56 +05:30
|
|
|
|
2023-02-13 23:29:59 +05:30
|
|
|
.gt-ellipsis {
|
2021-12-11 19:42:18 +05:30
|
|
|
overflow: hidden !important;
|
|
|
|
white-space: nowrap !important;
|
|
|
|
text-overflow: ellipsis !important;
|
|
|
|
}
|
|
|
|
|
2023-04-26 21:29:08 +05:30
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.g-table-auto-ellipsis td.auto-ellipsis span {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding: inherit;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2023-06-09 14:07:47 +05:30
|
|
|
.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-19 09:36:14 +05:30
|
|
|
/*
|
2024-03-24 23:53:38 +05:30
|
|
|
tw-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element.
|
2023-02-19 09:36:14 +05:30
|
|
|
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 23:53:38 +05:30
|
|
|
* this ".tw-hidden" class
|
2023-02-19 09:36:14 +05:30
|
|
|
* showElem/hideElem/toggleElem functions in "utils/dom.js"
|
|
|
|
*/
|
2024-03-24 23:53:38 +05:30
|
|
|
.tw-hidden.tw-hidden { display: none !important; }
|
2024-03-21 22:34:03 +05:30
|
|
|
|
|
|
|
@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;
|
|
|
|
}
|
|
|
|
}
|