1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/web_src/css
silverwind f4b92578b4
Add tailwindcss (#29357)
This will get tailwindcss working on a basic level. It provides only the
utility classes, e.g. no tailwind base which we don't need because we
have our own CSS reset. Without the base, we also do not have their CSS
variables so a small amount of features do not work and I removed the
generated classes for them.

***Note for future developers: This currently uses a `tw-` prefix, so we
use it like `tw-p-3`.***

<details>
<summary>Currently added CSS, all false-positives</summary>

```
.\!visible{

    visibility: visible !important
}

.visible{

    visibility: visible
}

.invisible{

    visibility: hidden
}

.collapse{

    visibility: collapse
}

.static{

    position: static
}

.\!fixed{

    position: fixed !important
}

.absolute{

    position: absolute
}

.relative{

    position: relative
}

.sticky{

    position: sticky
}

.left-10{

    left: 2.5rem
}

.isolate{

    isolation: isolate
}

.float-right{

    float: right
}

.float-left{

    float: left
}

.mr-2{

    margin-right: 0.5rem
}

.mr-3{

    margin-right: 0.75rem
}

.\!block{

    display: block !important
}

.block{

    display: block
}

.inline-block{

    display: inline-block
}

.inline{

    display: inline
}

.flex{

    display: flex
}

.inline-flex{

    display: inline-flex
}

.\!table{

    display: table !important
}

.inline-table{

    display: inline-table
}

.table-caption{

    display: table-caption
}

.table-cell{

    display: table-cell
}

.table-column{

    display: table-column
}

.table-column-group{

    display: table-column-group
}

.table-footer-group{

    display: table-footer-group
}

.table-header-group{

    display: table-header-group
}

.table-row-group{

    display: table-row-group
}

.table-row{

    display: table-row
}

.flow-root{

    display: flow-root
}

.inline-grid{

    display: inline-grid
}

.contents{

    display: contents
}

.list-item{

    display: list-item
}

.\!hidden{

    display: none !important
}

.hidden{

    display: none
}

.flex-shrink{

    flex-shrink: 1
}

.shrink{

    flex-shrink: 1
}

.flex-grow{

    flex-grow: 1
}

.grow{

    flex-grow: 1
}

.border-collapse{

    border-collapse: collapse
}

.select-all{

    user-select: all
}

.resize{

    resize: both
}

.flex-wrap{

    flex-wrap: wrap
}

.overflow-visible{

    overflow: visible
}

.rounded{

    border-radius: 0.25rem
}

.border{

    border-width: 1px
}

.text-justify{

    text-align: justify
}

.uppercase{

    text-transform: uppercase
}

.lowercase{

    text-transform: lowercase
}

.capitalize{

    text-transform: capitalize
}

.italic{

    font-style: italic
}

.text-red{

    color: var(--color-red)
}

.text-shadow{

    color: var(--color-shadow)
}

.underline{

    text-decoration-line: underline
}

.overline{

    text-decoration-line: overline
}

.line-through{

    text-decoration-line: line-through
}

.outline{

    outline-style: solid
}

.ease-in{

    transition-timing-function: cubic-bezier(0.4, 0, 1, 1)
}

.ease-in-out{

    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
}

.ease-out{

    transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
}
```

</details>

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2024-02-25 17:46:46 +01:00
..
chroma Chroma color tweaks (#26978) 2023-09-08 11:03:01 -05:00
codemirror Remove EasyMDE focus outline on text (#25328) 2023-06-18 04:10:07 +00:00
editor Clean up diff header css and reduce global textarea min-height (#29232) 2024-02-18 14:51:21 +00:00
features Refactor "shortsha" (#26877) 2023-09-03 02:58:52 +00:00
markup Make blockquote border size less aggressive (#29124) 2024-02-10 14:55:46 +02:00
modules Make loading animation less aggressive (#28955) 2024-01-27 20:27:37 +08:00
repo Revamp repo header (#27760) 2024-01-12 03:44:06 +00:00
shared Reduce margin/padding on flex-list items and divider (#27872) 2023-11-02 12:30:38 +08:00
standalone Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
themes Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 2023-10-06 09:46:36 +02:00
actions.css fix issues on action runners page (#27226) 2023-09-24 14:12:21 -04:00
admin.css User details page (#26713) 2023-08-31 11:21:18 +02:00
base.css Add tailwindcss (#29357) 2024-02-25 17:46:46 +01:00
dashboard.css Dashboard context dropdown position fix on landing page in mobile view. (#27047) 2023-09-13 15:15:36 +08:00
explore.css Introduce flex-list & flex-item elements for Gitea UI (#25790) 2023-08-01 00:13:42 +02:00
font_i18n.css Fix @font-face overrides (#24855) 2023-05-24 01:48:51 +00:00
form.css Revert #28753 because UI broken. (#29293) 2024-02-21 22:14:37 +08:00
helpers.css Revert #28753 because UI broken. (#29293) 2024-02-21 22:14:37 +08:00
home.css avoid hard-coding height in language dropdown menu (#25986) 2023-07-19 23:30:57 +02:00
index.css Add tailwindcss (#29357) 2024-02-25 17:46:46 +01:00
install.css Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
org.css Unify organizations header (#29248) 2024-02-23 01:24:57 +01:00
repo.css Clean up diff header css and reduce global textarea min-height (#29232) 2024-02-18 14:51:21 +00:00
review.css Don't reload timeline page when (un)resolving or replying conversation (#28654) 2024-01-24 03:26:28 +00:00
user.css Unify border-radius behavior (#26770) 2023-08-28 19:43:59 +00:00