aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/user.css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-03-15 03:20:19 +0100
committerGitHub <noreply@github.com>2023-03-14 22:20:19 -0400
commit202803fc69d21763a06d8d0f5a4c46509c18f6f1 (patch)
tree4e273829061a640ceb6b3a33e563b3e8d842a8ae /web_src/css/user.css
parentbf730528cadc4727eab8844934b6a0716d327243 (diff)
downloadgitea-202803fc69d21763a06d8d0f5a4c46509c18f6f1.tar.gz
gitea-202803fc69d21763a06d8d0f5a4c46509c18f6f1.zip
Replace Less with CSS (#23481)
Ran most of the Less files through the Less compiler and Prettier and then followed up with a round of manual fixes. The Less compiler had unfortunately stripped all `//` style comments that I had to restore (It did preserve `/* */` comments). Other fixes include duplicate selector removal which were revealed after the transpilation and which weren't caught by stylelint before but now are. Fixes: https://github.com/go-gitea/gitea/issues/15565
Diffstat (limited to 'web_src/css/user.css')
-rw-r--r--web_src/css/user.css173
1 files changed, 173 insertions, 0 deletions
diff --git a/web_src/css/user.css b/web_src/css/user.css
new file mode 100644
index 0000000000..adf865496b
--- /dev/null
+++ b/web_src/css/user.css
@@ -0,0 +1,173 @@
+.user.profile .ui.card .header {
+ display: block;
+ font-weight: 600;
+ font-size: 1.3rem;
+ margin-top: -0.2rem;
+ line-height: 1.3rem;
+}
+
+.user.profile .ui.card .profile-avatar-name {
+ border-top: none;
+ text-align: center;
+}
+
+.user.profile .ui.card .extra.content {
+ padding: 0;
+}
+
+.user.profile .ui.card .extra.content ul {
+ margin: 0;
+ padding: 0;
+}
+
+.user.profile .ui.card .extra.content ul li {
+ padding: 10px;
+ list-style: none;
+}
+
+.user.profile .ui.card .extra.content ul li:not(:last-child) {
+ border-bottom: 1px solid var(--color-secondary);
+}
+
+.user.profile .ui.card .extra.content ul li .svg {
+ margin-left: 1px;
+ margin-right: 5px;
+}
+
+.user.profile .ui.card .extra.content ul li.follow .ui.button {
+ width: 100%;
+}
+
+.user.profile .ui.card #profile-avatar {
+ background: none;
+ padding: 1rem 1rem 0.25rem;
+ justify-content: center;
+}
+
+.user.profile .ui.card #profile-avatar img {
+ width: 100%;
+ height: auto;
+ object-fit: contain;
+ margin: 0;
+}
+
+@media (max-width: 767px) {
+ .user.profile .ui.card #profile-avatar img {
+ width: 30vw;
+ }
+}
+
+@media (max-width: 767px) {
+ .user.profile .ui.card {
+ width: 100%;
+ }
+}
+
+.user.profile .ui.repository.list {
+ margin-top: 25px;
+}
+
+.user.profile #loading-heatmap {
+ margin-bottom: 1em;
+}
+
+.user.profile .ui.secondary.stackable.pointing.menu {
+ flex-wrap: wrap;
+}
+
+.user.followers .header.name {
+ font-size: 20px;
+ line-height: 24px;
+ vertical-align: middle;
+}
+
+.user.followers .follow .ui.button {
+ padding: 8px 15px;
+}
+
+.user.notification .svg {
+ float: left;
+ font-size: 2em;
+}
+
+.user.notification .svg.green {
+ color: var(--color-green);
+}
+
+.user.notification .svg.red {
+ color: var(--color-red);
+}
+
+.user.notification .svg.purple {
+ color: var(--color-purple);
+}
+
+.user.notification .svg.blue {
+ color: var(--color-blue);
+}
+
+.user.notification .content {
+ float: left;
+ margin-left: 7px;
+}
+
+.user.notification table form {
+ display: inline-block;
+}
+
+.user.notification table button {
+ padding: 3px 3px 3px 5px;
+}
+
+.user.notification table tr {
+ cursor: pointer;
+}
+
+.user .button.adopt,
+.user .button.delete {
+ margin-top: -15px;
+ margin-bottom: -15px;
+}
+
+.user .button.adopt .label,
+.user .button.delete .label {
+ vertical-align: middle;
+}
+
+.user.link-account:not(.icon) {
+ padding-top: 15px;
+ padding-bottom: 5px;
+}
+
+.user.settings .iconFloat {
+ float: left;
+}
+
+.user-orgs {
+ display: flex;
+ flex-flow: row wrap;
+ padding: 0;
+ margin: -3px !important;
+}
+
+.user-orgs li {
+ display: flex;
+ border-bottom: 0 !important;
+ padding: 3px !important;
+ width: 20%;
+ max-width: 60px;
+}
+
+.user-badges {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, 64px);
+ gap: 2px;
+}
+
+.user-badges img {
+ object-fit: contain;
+}
+
+#notification_div .tab.segment {
+ overflow-x: auto;
+}