diff options
author | silverwind <me@silverwind.io> | 2020-08-25 21:48:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 22:48:53 +0300 |
commit | eb4db0445bea4a8dff370d80a270765840fcb8ef (patch) | |
tree | 7cde26f9a5cad63b724afc2f4bc541562548e432 /web_src/less/_user.less | |
parent | e90e122b395f2dc0aff9ee917a7377078c774d31 (diff) | |
download | gitea-eb4db0445bea4a8dff370d80a270765840fcb8ef.tar.gz gitea-eb4db0445bea4a8dff370d80a270765840fcb8ef.zip |
Reindent Less to 2-space (#12602)
Reindent and unify codebase to 2-space indentation.
Diffstat (limited to 'web_src/less/_user.less')
-rw-r--r-- | web_src/less/_user.less | 260 |
1 files changed, 130 insertions, 130 deletions
diff --git a/web_src/less/_user.less b/web_src/less/_user.less index ae44df9cc7..0b983a382c 100644 --- a/web_src/less/_user.less +++ b/web_src/less/_user.less @@ -1,163 +1,163 @@ .user { - &:not(.icon) { - padding-top: 15px; - } - - &.profile { - .ui.card { - .header, - .username { - display: block; + &:not(.icon) { + padding-top: 15px; + } + + &.profile { + .ui.card { + .header, + .username { + display: block; + } + + .header { + font-weight: 700; + font-size: 1.3rem; + margin-top: -.2rem; + line-height: 1.3rem; + } + + .extra.content { + padding: 0; + + ul { + margin: 0; + padding: 0; + + li { + padding: 10px; + list-style: none; + + &:not(:last-child) { + border-bottom: 1px solid #eaeaea; } - .header { - font-weight: 700; - font-size: 1.3rem; - margin-top: -.2rem; - line-height: 1.3rem; + .svg, + .fa { + margin-left: 1px; + margin-right: 5px; } - .extra.content { - padding: 0; - - ul { - margin: 0; - padding: 0; - - li { - padding: 10px; - list-style: none; - - &:not(:last-child) { - border-bottom: 1px solid #eaeaea; - } - - .svg, - .fa { - margin-left: 1px; - margin-right: 5px; - } - - &.follow { - .ui.button { - width: 100%; - } - } - } - } - } - - #profile-avatar { - img { - width: 100%; - } - @media only screen and (max-width: 768px) { - height: 250px; - overflow: hidden; - - img { - max-height: 768px; - max-width: 768px; - } - } - } - - @media only screen and (max-width: 768px) { + &.follow { + .ui.button { width: 100%; + } } + } } + } - .ui.repository.list { - margin-top: 25px; - } - - #loading-heatmap { - margin-bottom: 1em; + #profile-avatar { + img { + width: 100%; } - .ui.secondary.stackable.pointing.menu { - flex-wrap: wrap; + @media only screen and (max-width: 768px) { + height: 250px; + overflow: hidden; + + img { + max-height: 768px; + max-width: 768px; + } } - } + } - &.followers { - .header.name { - font-size: 20px; - line-height: 24px; - vertical-align: middle; - } + @media only screen and (max-width: 768px) { + width: 100%; + } + } - .follow { - .ui.button { - padding: 8px 15px; - } - } + .ui.repository.list { + margin-top: 25px; } - &.notification { - .svg { - float: left; - font-size: 2em; + #loading-heatmap { + margin-bottom: 1em; + } + .ui.secondary.stackable.pointing.menu { + flex-wrap: wrap; + } + } - &.green { - color: #21ba45; - } + &.followers { + .header.name { + font-size: 20px; + line-height: 24px; + vertical-align: middle; + } - &.red { - color: #d01919; - } + .follow { + .ui.button { + padding: 8px 15px; + } + } + } - &.purple { - color: #a333c8; - } + &.notification { + .svg { + float: left; + font-size: 2em; - &.blue { - color: #2185d0; - } - } + &.green { + color: #21ba45; + } - .content { - float: left; - margin-left: 7px; - } + &.red { + color: #d01919; + } - table { - form { - display: inline-block; - } + &.purple { + color: #a333c8; + } - button { - padding: 3px 3px 3px 5px; - } + &.blue { + color: #2185d0; + } + } - tr { - cursor: pointer; - } - } + .content { + float: left; + margin-left: 7px; } - &.link-account:not(.icon) { - padding-top: 15px; - padding-bottom: 5px; + table { + form { + display: inline-block; + } + + button { + padding: 3px 3px 3px 5px; + } + + tr { + cursor: pointer; + } } + } - &.settings { - .iconFloat { - float: left; - } + &.link-account:not(.icon) { + padding-top: 15px; + padding-bottom: 5px; + } + + &.settings { + .iconFloat { + float: left; } + } } .user-orgs { + display: flex; + flex-flow: row wrap; + padding: 0; + margin: -3px !important; + + li { display: flex; - flex-flow: row wrap; - padding: 0; - margin: -3px !important; - - li { - display: flex; - border-bottom: 0 !important; - padding: 3px !important; - width: 20%; - max-width: 60px; - } + border-bottom: 0 !important; + padding: 3px !important; + width: 20%; + max-width: 60px; + } } |