diff options
Diffstat (limited to 'public/ng/less')
24 files changed, 0 insertions, 4446 deletions
diff --git a/public/ng/less/gogs.less b/public/ng/less/gogs.less deleted file mode 100644 index 2d9812da..00000000 --- a/public/ng/less/gogs.less +++ /dev/null @@ -1,11 +0,0 @@ -@import "gogs/base"; -@import "gogs/markdown"; -@import "gogs/external"; -@import "gogs/dashboard"; -@import "gogs/sign"; -@import "gogs/repository"; -@import "gogs/settings"; -@import "gogs/issue"; -@import "gogs/organization"; -@import "gogs/admin"; -@import "gogs/profile";
\ No newline at end of file diff --git a/public/ng/less/gogs/admin.less b/public/ng/less/gogs/admin.less deleted file mode 100644 index 010e0f06..00000000 --- a/public/ng/less/gogs/admin.less +++ /dev/null @@ -1,26 +0,0 @@ -.admin-panel { - padding: 10px 20px; -} -.admin-desc { - padding: 10px 20px; -} -.admin-table { - padding: 15px 0 5px 0; -} -.dl-horizontal dt { - float: left; - width: 160px; - clear: left; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.admin-dl-horizontal { - padding: 20px; - > dt { - width: 250px; - } - > dd { - margin-left: 240px; - } -}
\ No newline at end of file diff --git a/public/ng/less/gogs/base.less b/public/ng/less/gogs/base.less deleted file mode 100644 index ede56f01..00000000 --- a/public/ng/less/gogs/base.less +++ /dev/null @@ -1,306 +0,0 @@ -@import "../ui/var"; -@headerBgColor: #428BCA; -@headerLinkFontColor: #FFF; -@headerLinkHoverColor: #fff65f; -@headerLinkCurrentColor: #fff65f; -@headerSignOutColor: #ff908b; -@footerBorderColor: #D6D6D6; -@footerFontColor: #888; -@langNum: 2px; -// means 2 items -html, -body { - height: 100%; -} -.octicon, -.fa { - width: 16px; - text-align: center; -} -.container { - max-width: 1170px; - padding: 0 1.5em; - margin: auto; -} -img.avatar-16 { - width: 16px; - height: 16px; - vertical-align: middle; -} -img.avatar-20 { - width: 20px; - height: 20px; - vertical-align: middle; -} -img.avatar-24 { - width: 24px; - height: 24px; - vertical-align: middle; -} -img.avatar-30 { - width: 30px; - height: 30px; - vertical-align: middle; -} -img.avatar-40 { - width: 40px; - height: 40px; - vertical-align: middle; -} -img.avatar-48{ - width: 48px; - height: 48px; - vertical-align: middle; -} -img.avatar-100{ - width: 100px; - height: 100px; - vertical-align: middle; -} -.drop-down{ - .panel-header{ - font-size: 14px; - } -} -#wrapper { - padding: 0; - margin: 0 0 -55px 0; - min-height: 100%; -} -#footer { - background-color: white; - border-top: 1px solid@footerBorderColor; - -clear: both; - width: 100%; - .container { - padding: 15px; - } - color:@footerFontColor; -.official, - .version { - color: @footerFontColor; - } -} -#footer-links { - > * { - border-left: 1px solid@footerBorderColor; - padding-left: 8px; - margin-left: 5px; - &:first-child { - border-left: none; - } - } -} -#footer-lang { - position: relative; - .drop-down { - top: -2-31*@langNum; - left: -2px; - position: absolute; - height: -3+31*@langNum; - z-index: 100; - font-size: 12px; - width: 170%; - min-width: 140px; - li > a { - padding: 3px 9px; - } - } -} -#header { - background-color: @headerBgColor; - height: 45px; - > .menu-line { - > li > a { - display: inline-block; - color:@headerLinkFontColor; - &:hover { - background-color: transparent; - color: @headerLinkHoverColor; - } - } - > li.head { - color: @headerLinkFontColor; - } - > li.hover a:after { - bottom: -9px; - color: @headerLinkFontColor; - } - > li.current > a { - color: @headerLinkCurrentColor; - font-weight: bold; - } - } -} -#header-nav-user { - height: 44px; - img { - margin: -2px 10px 0 0; - border-radius: 3px; - } -} -#header-nav-sign-out > a:hover { - color: @headerSignOutColor !important; -} -#header-nav-logo { - padding: 6px 1.2em 6px 0; -} -#header-nav-explore, -#header-nav-help { - font-size: 14px; -} -#header-new-repo-menu { - width: 180px; - background-color: #FFF; - top: 44px; - border-top: none; - .octicon { - margin-right: 6px; - font-size: 1.1em; - } - left:-66px; -} -.switching-list { - width: 100%; - list-style: none; - > li { - border-bottom: 1px solid #eaeaea; - &:last-child { - border-bottom: none; - } - > a { - padding: .4em 1.2em; - display: block; - color: #444; - &:hover { - background-color: #428bca !important; - color: #fff !important; - } - } - } -} -.social-buttons { - .btn { - border: none; - font-size: 16px; - border-radius: 4px; - margin-right: 12px; - font-family: 'PT Sans Narrow', sans-serif; - padding: 5px 12px; - color: #FFF; - .fa { - margin-right: 6px; - font-size: 16px; - } - } - .twitter { - background-color: #1c6399; - &:hover { - background-color: #1c5487; - } - } - .github { - background-color: #444; - &:hover { - background-color: #333; - } - } - .google { - background-color: #C03D20; - &:hover { - background-color: #D56060; - } - } - .weibo { - background-color: #bf1324; - &:hover { - background-color: #b94c4a; - } - } - .qq { - background-color: #03a2ef; - &:hover { - background-color: #3cb3ff; - } - } -} -.main-wrapper { - padding: 20px 0 40px; -} -.user-list { - width: auto; - min-width: 180px; - max-width: 300px; - img { - width: 28px; - height: 28px; - margin-right: 1em; - margin-top: 1px; - vertical-align: middle; - } - li { - cursor: pointer; - font-weight: bold; - } -} -.text-success { - color: #3c763d; -} -.text-blue { - color: #15c; -} -.text-red { - color: #DD4B39; -} -.text-grey { - color: #999999; -} -.text-black { - color: #444444; -} -.text-gold { - color: #a1882b; -} -.table { - width: 100%; - max-width: 100%; - > thead > tr > th, - > tbody > tr > th, - > tfoot > tr > th, - > thead > tr > td, - > tbody > tr > td, - > tfoot > tr > td { - border-top: 1px solid #e7eaec; - line-height: 1.42857; - padding: 8px; - vertical-align: top; - } - th { - text-align: left; - } -} -.table-striped { - >tbody>tr:nth-child(odd)>td, - >tbody>tr:nth-child(odd)>th { - background-color: #f9f9f9; - } -} -.pagination { - display: inline-block; - padding-left: 0; - margin: 20px 0; - border-radius: 4px; - li { - display: inline; - } -} -.list-unstyled { - padding-left: 0; - list-style: none; -} -.emoji { - width: 1.5em; - height: 1.5em; - display: inline-block; -}
\ No newline at end of file diff --git a/public/ng/less/gogs/dashboard.less b/public/ng/less/gogs/dashboard.less deleted file mode 100644 index 59482162..00000000 --- a/public/ng/less/gogs/dashboard.less +++ /dev/null @@ -1,260 +0,0 @@ -@import "../ui/var"; -/* - The dashboard page style -*/ -@dashboardHeaderBorderColor: #D6D6D6; -@dashboardHeaderLinkColor: #444; -@dashboardHeaderLinkHoverColor: #D9453D; -@dashboardSwitchMenuHoverBgColor: @linkColor; -@dashboardSwitchMenuHoverFontColor: #FFF; - -// dashboard header, contains dashboard selection menu and nav of Feed/PR/Issues. -#dashboard-header { - border-bottom: 1px solid @dashboardHeaderBorderColor; - height: 69px; - background-color: #FFF; - > .menu-line { - > li { - padding: 12px 6px; - } - > li.drop{ - margin-left: -22px; - &:hover a { - background-color: transparent; - } - } - > li.right { - > a { - font-size: 1.2em; - color: @dashboardHeaderLinkColor; - margin: -12px 0px; - padding: 22px 0.8em; - &:hover { - background-color: transparent; - color: @dashboardHeaderLinkHoverColor; - } - .octicon { - margin-right: 6px; - } - } - .current { - border-bottom: 2px solid #D26911; - } - } - } -} -// dashboard context switch selection -#dashboard-selection-menu { - a img { - margin: -4px 10px 0 0; - } -} -#dashboard { - padding: 1.5em; -} -// dashboard sidebar contains contributed repositories panel, -// and my repositories panel -#dashboard-sidebar { - .panel-header h4 { - margin: 0; - } - > .panel { - margin-bottom: 24px; - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - } -} -#dashboard-sidebar-menu { - border-top-left-radius: .3em; - border-top-right-radius: .3em; - > li { - border: 1px solid #d6d6d6; - float: left; - margin-right: -1px; - border-bottom: none; - > a { - padding-top: .3em; - padding-bottom: .3em; - } - } - > li.first { - border-top-left-radius: .3em; - > a { - border-top-left-radius: .3em; - } - } - > li.drop { - border: none; - float: right; - } - width: 100%; - height: 32px; - > li.js-tab-nav-show { - background-color: #EEEEEE; - } - > li.last { - border-top-right-radius: .3em; - > a { - border-top-right-radius: .3em; - } - } -} -#dashboard-my-mirror, -#dashboard-my-org, -#dashboard-my-repo { - li { - &.private { - background-color: #fcf8e9; - } - border-bottom: 1px solid #EAEAEA; - &:last-child { - border-bottom: none; - } - a { - padding: 6px 1.2em; - display: block; - .octicon { - margin-right: 6px; - color: #888; - } - &:hover { - .repo-name { - text-decoration: underline; - } - } - } - } - .repo-name { - font-size: 1.1em; - } - .repo-star { - color: #888; - } - .repo-contrib-header { - border-top: 1px solid #d6d6d6; - } - .panel-header { - font-size: 14px; - } -} -#dashboard-my-repo { - .panel-header { - .octicon { - margin-right: 6px; - font-size: 12px; - } - } - .repo-count { - margin-left: 4px; - } -} -#dashboard-my-org, -#dashboard-my-mirror { - display: none; -} -// the button of new repository in my repositories panel -#dashboard-new-repo { - width: 50px; - height: 33px; - padding-top: 6px; - margin-right: 1px; - .octicon { - font-size: 20px; - } - border-top-left-radius: .3em; - border-top-right-radius: .3em; -} -// the drop-down menu of #dashboard-new-repo -#dashboard-new-repo-menu { - top: 33px; - width: 180px; - background-color: #FFF; - left: -132px; - .octicon { - margin-right: 6px; - font-size: 1.1em; - } -} -#dashboard-selection-menu { - width: auto; - max-width: 300px; - > .drop-down { - top: 56px; - left: 22px; - } - li { - white-space: nowrap; - &.checked { - .octicon { - opacity: 1; - } - } - a { - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - overflow: hidden; - } - } -} -// the drop-down menu of #dashboard-selection-menu -#dashboard-switch-menu { - > li { - > a { - img { - margin-top: 0; - } - .octicon { - margin-right: 12px; - } - } - &:last-child { - > a { - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - } - } - } - > li.org > a { - .octicon { - opacity: 0; - } - } - > li.checked > a { - .octicon { - opacity: 1; - } - font-weight: bold; - } - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; -} -#dashboard-news { - padding-bottom: 60px; - .news { - margin-right: 2.4em; - .mega-octicon { - color: #CCC; - } - .avatar { - margin-right: 1.2em; - } - .news-content, - .news-time { - color: #888; - } - padding-bottom: 1em; - margin-bottom: 1em; - border-bottom: 1px solid #E6E6E6; - min-height: 30px; - } - .push-news { - .news-content li { - margin-left: 1em; - img { - vertical-align: inherit; - margin-bottom: -2px; - } - } - } -} - diff --git a/public/ng/less/gogs/external.less b/public/ng/less/gogs/external.less deleted file mode 100644 index 407fc4f5..00000000 --- a/public/ng/less/gogs/external.less +++ /dev/null @@ -1,105 +0,0 @@ -@import "base"; -@import "../ui/var"; -#promo-wrapper { - padding-top: 50px; - background-color: @headerBgColor; -} -#promo-logo { - margin-right: 50px; - padding-bottom: 50px; - img { - max-width: 250px; - } -} -#promo-content { - color: #FFF; - margin-left: 300px; - h1, - h2 { - font-family: 'PT Sans Narrow', sans-serif; - line-height: 60px; - margin-bottom: 0; - text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5); - } - h1 { - font-size: 96px; - line-height: 96px; - margin-bottom: 30px; - } - h2 { - font-size: 52px; - line-height: 70px; - font-weight: normal; - } -} -#promo-form { - padding: 40px 0; - .ipt-large { - border: none; - border-radius: 4px; - font-size: 18px; - margin-right: 12px; - &:focus { - box-shadow: 0 0 3px #FFF; - } - } - .btn-large { - border-radius: 4px; - font-size: 18px; - margin-right: 12px; - } -} -#promo-social { - padding-bottom: 60px; - .qq{ - box-shadow: 0 0 1px #1c6399; - } -} -#feature-wrapper { - font-family: Lato, sans-serif; - font-size: 18px; - padding: 50px 0 100px 0; - .octicon { - color: @btnRedColor; - font-size: 60px; - height: 60px; - width: 60px; - line-height: 60px; - margin-right: 12px; - vertical-align: middle; - display: inline-block; - } - b { - color: #000; - font-size: 24px; - display: inline-block; - line-height: 60px; - } - p { - margin: 1em 0; - line-height: 40px; - padding-right: 30px; - } - a { - color: @btnRedColor; - &:hover { - color: @btnHoverRedColor; - } - } - .grid-1-2 { - margin-bottom: 30px; - } -} -#install-form { - padding: 15px; - label { - width: 35%; - } - input { - width: 30%; - } - input[type="checkbox"], - input[type="radio"] { - width: auto; - } -}
\ No newline at end of file diff --git a/public/ng/less/gogs/issue.less b/public/ng/less/gogs/issue.less deleted file mode 100644 index c920343d..00000000 --- a/public/ng/less/gogs/issue.less +++ /dev/null @@ -1,540 +0,0 @@ -@import "../ui/var"; -// pull request main content -.pr-main { - margin-right: 100px; -} -// right bar in pull request page -.pr-sidebar { - border-left: 1px solid #DDD; - box-sizing: border-box; - position: absolute; - right: 0; - top: 12px; -} -.pr-title { - .pr-num { - font-weight: normal; - color: #888; - } - padding: 4px 0; -} -.pr-meta { - color: #888; - padding: 4px 0 8px 0; - .pr-author { - margin: 0 8px; - color: #444; - &:hover { - text-decoration: underline; - } - } - .pr-branch { - margin: 0 4px; - font-size: 12px; - padding: 4px 6px; - } -} -.pr-nav { - border-bottom: 1px solid #DDD; - margin-top: 16px; - margin-bottom: 16px; - .octicon { - margin-right: 4px; - } - li > a { - padding: 3px 9px !important; - border: 1px solid transparent; - border-bottom: none; - .label { - padding: 1px 5px; - font-size: 12px; - margin-left: 4px; - } - border-top-left-radius: .2em; - border-top-right-radius: .2em; - } - li.js-tab-nav-show { - > a { - background-color: #FFF; - border-color: #E6E6E6; - } - } -} -.diff-bar { - .diff-add { - color: @btnGreenColor; - } - .diff-delete { - color: @btnRedColor; - } - .diff-status { - width: 50px; - background-color: @btnRedColor; - height: 10px; - margin-top: 7px; - margin-left: 4px; - margin-right: 4px; - border-radius: .2em; - } - .diff-status-inner { - width: 45%; - background-color: @btnGreenColor; - height: 10px; - border-top-left-radius: .2em; - border-bottom-left-radius: .2em; - } -} -#pr-commit, -#pr-file-diff, -#issue-add-comment-preview { - display: none; -} -#pr-conversation-list { - padding-right: 30px; - box-sizing: border-box; -} -.issue-comment, -.issue-commit, -.issue-line, -.issue-merge, -.issue-add-comment { - margin-bottom: 24px; -} -.issue-comment { - .author-avatar { - img { - margin-right: 12px; - } - } - .panel { - margin-left: 60px; - margin-top: -40px; - } - .panel-header { - font-size: 13px; - } - .author-name { - font-weight: bold; - } - .date { - margin-left: 4px; - font-style: italic; - color: #888; - } - .action { - > * { - margin-left: 4px; - font-size: 12px; - } - i { - font-size: 13px; - } - } -} -.issue-commit { - line-height: 32px; - i, .author-avatar img { - margin-right: 16px; - } - .sha { - margin-left: 24px; - } - .message { - display: block; - margin-left: 88px; - padding-top: 4px; - line-height: 24px; - } -} -.issue-merge { - .ico { - width: 40px; - height: 40px; - text-align: center; - color: #FFF; - i { - margin-top: 8px; - font-size: 24px; - } - margin-right: 12px; - } - .panel { - margin-left: 60px; - margin-top: -40px; - } - .panel-header { - font-size: 13px; - } -} -.issue-merge-ok { - .ico { - background-color: #65AD4E; - } - .panel, - .panel-content, - .panel-header { - border-color: #65AD4E; - background-color: #FFF; - } - .panel-header { - color: darken(#65AD4E, 10%); - } -} -.issue-line { - height: 4px; - background-color: #E6E6E6; -} -.issue-add-comment { - .panel { - margin-left: 60px; - margin-top: -40px; - } - .panel-header { - font-size: 13px; - padding-bottom: 0; - } - .add-nav { - > li { - > a { - padding: 4px 12px; - color: #444; - border: 1px solid #CCC; - margin-bottom: -1px; - font-size: 14px; - border-top-left-radius: .3em; - border-top-right-radius: .3em; - &:hover { - background-color: #FFF; - } - } - &.js-tab-nav-show { - > a { - background-color: #FFF; - } - } - } - } -} -textarea#issue-add-content { - width: 100%; - box-sizing: border-box; - height: 120px; - resize: vertical; -} -// #issue list navigator -#issue-list-nav { - border-bottom: 1px solid #DDD; - padding-bottom: 12px; - li { - > a { - font-size: 13px; - font-weight: bold; - padding: .2em .8em; - } - } - li.current { - > a { - background-color: #0079bc; - color: #FAFAFA; - } - } - li.right { - margin-left: 4px; - } -} -// new issue button -#issue-new, -#label-new, -#milestone-new{ - > a { - padding: 0 !important; - button { - height: 29px; - } - } -} -// issue list menu -#issue-list-menu { - padding: 16px 0 12px 0; - border-bottom: 1px solid #BBB; - margin-bottom: 12px; - .mark { - a { - color: #AAA; - &:hover { - color: #444; - } - } - &.hover { - a { - color: #222; - font-weight: bold; - } - } - } - > .left { - .mark { - margin-right: 12px; - } - } - > .right { - .mark { - margin-left: 12px; - } - } -} -// each issue list item -#issue-list, -#pull-list { - .item { - position: relative; - padding-bottom: 12px; - margin-bottom: 12px; - border-bottom: 1px dashed #AAA; - .title > .title-text { - color: #444; - font-size: 15px; - margin: 0 6px; - } - } - .comment { - color: #666; - position: absolute; - top: 6px; - right: 0; - } - .issue-label { - a { - color: #FFF; - } - } - .desc { - color: #999; - a { - color: #999; - &:hover { - color: #03a2ef; - } - } - } -} -// issue list filter -#issue-list-filter{ - .drop > a{ - width: 90px; - padding: 0; - margin-left: 12px; - text-align: center; - } - .drop-down{ - z-index: 999; - width: 236px; - left:-158px; // 260 - 90 - 12 - top:22px; - padding: 0 12px; - h4{ - line-height: 40px; - border-bottom: 1px solid #CCC; - margin-bottom: 0; - } - li{ - line-height: 30px; - border-bottom: 1px dashed #EEE; - padding-left: 9px; - &:hover{ - background-color: #fcffec; - } - } - > ul > li > a{ - display: block; - } - } - .labels{ - .color{ - margin-top: 8px; - display: inline-block; - width: 12px; - height: 12px; - background-color: red; - margin-right: 9px; - margin-left: 9px; - } - .name{ - vertical-align: top; - display: inline-block; - color: #444; - } - } - .milestones{ - a{ - color: #444; - font-weight: bold; - } - } -} -// issue list pager -#issue-list-pager { - margin: 18px 0 24px 0; - font-size: 14px; - line-height: 24px; -} -// labels numbers -#labels-num { - margin-right: 1em; -} -// labels list -#label-list { - a.right { - margin-left: 1em; - color: #999; - i { - margin-right: 3px; - } - line-height: 30px; - &:hover { - color: #444444; - } - } - .num { - margin-right: 3px; - } - .issue-num { - margin-right: 4em; - } - .label { - &:hover { - color: #FFF; - } - i { - margin-right: 6px; - } - } - .item { - height: 30px; - padding-bottom: 12px; - margin-bottom: 12px; - border-bottom: 1px dashed #AAA; - } -} -// label add form, label edit form -#label-add-form, -#label-edit-form, -#label-delete-form{ - .ipt{ - font-size: 14px; - } - .ipt[name=name]{ - width: 300px; - } - .btn{ - height: 33px; - font-size: 14px; - margin-left: 12px; - } -} -#label-add-form{ - padding: 18px 0; - border-bottom: 1px solid #DDD; -} -#label-delete-form{ - span{ - line-height: 33px; - } -} -// label color drop -.label-color-drop{ - .ipt{ - width:100px; - } - .drop-down{ - width:128px !important; - top:22px !important; - left:50px !important; - padding: 12px; - line-height: 16px; - a.color{ - width: 16px; - height: 16px; - display: inline-block; - } - } - label{ - width: 24px; - height: 24px; - display: inline-block; - margin: 0 1em; - vertical-align: middle; - } -} -// milestone items -#milestone-list{ - padding-top: 6px; - .title-text{ - font-size: 16px; - } - .desc { - color: #999; - line-height: 30px; - } - .content{ - width: 400px; - } - .item { - padding-bottom: 18px; - margin-bottom: 18px; - border-bottom: 1px dashed #AAA; - position: relative; - } - .action{ - position: absolute; - top: 0; - right: 0; - } - .status-bar { - > .bar { - margin: -2px 8px 0 8px; - width: 360px; - background-color: #DDD; - height: 14px; - vertical-align:middle; - } - .opening{ - background-color: #65ad4e; - width: 40%; - height: 14px; - vertical-align: top; - } - } - .action-bar{ - margin-top: 8px; - a{ - margin-left: 12px; - } - } -} - -.issues.list-group { - margin: 10px 0 20px 0; - > .list-group-item { - background-color: #FFF; - border: 1px solid #e5e5e5; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - &:hover { - background-color: rgba(19, 95, 215, 0.03); - } - > .title { - margin-bottom: 16px; - font-weight: bold; - font-size: 1.2em; - > a { color: #444; } - } - > .info span { - margin-right: 12px; - color: #888; - line-height: 20px; - > a { color: #444; } - } - } -} diff --git a/public/ng/less/gogs/markdown.less b/public/ng/less/gogs/markdown.less deleted file mode 100644 index 33006660..00000000 --- a/public/ng/less/gogs/markdown.less +++ /dev/null @@ -1,595 +0,0 @@ -.markdown { - overflow:hidden; - font-family:"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; - font-size:16px; - line-height:1.6; - word-wrap:break-word; - padding: 5px 2em 2em !important; - - >*:first-child { - margin-top:0 !important; - } - - >*:last-child { - margin-bottom:0 !important; - } - - a:not([href]) { - color:inherit; - text-decoration:none; - } - - .absent { - color:#c00; - } - - .anchor { - position:absolute; - top:0; - left:0; - display:block; - padding-right:6px; - padding-left:30px; - margin-left:-30px; - } - - .anchor:focus { - outline:none; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - position:relative; - margin-top:1em; - margin-bottom:16px; - font-weight:bold; - line-height:1.4; - } - - h1 .octicon-link, - h2 .octicon-link, - h3 .octicon-link, - h4 .octicon-link, - h5 .octicon-link, - h6 .octicon-link { - display:none; - color:#000; - vertical-align:middle; - } - - h1:hover .anchor, - h2:hover .anchor, - h3:hover .anchor, - h4:hover .anchor, - h5:hover .anchor, - h6:hover .anchor { - padding-left:8px; - margin-left:-30px; - text-decoration:none; - } - - h1:hover .anchor .octicon-link, - h2:hover .anchor .octicon-link, - h3:hover .anchor .octicon-link, - h4:hover .anchor .octicon-link, - h5:hover .anchor .octicon-link, - h6:hover .anchor .octicon-link { - display:inline-block; - } - - h1 tt, - h1 code, - h2 tt, - h2 code, - h3 tt, - h3 code, - h4 tt, - h4 code, - h5 tt, - h5 code, - h6 tt, - h6 code { - font-size:inherit; - } - - h1 { - padding-bottom:0.3em; - font-size:2.25em; - line-height:1.2; - border-bottom:1px solid #eee; - } - - h1 .anchor { - line-height:1; - } - - h2 { - padding-bottom:0.3em; - font-size:1.75em; - line-height:1.225; - border-bottom:1px solid #eee; - } - - h2 .anchor { - line-height:1; - } - - h3 { - font-size:1.5em; - line-height:1.43; - } - - h3 .anchor { - line-height:1.2; - } - - h4 { - font-size:1.25em; - } - - h4 .anchor { - line-height:1.2; - } - - h5 { - font-size:1em; - } - - h5 .anchor { - line-height:1.1; - } - - h6 { - font-size:1em;color:#777; - } - - h6 .anchor { - line-height:1.1; - } - - p, - blockquote, - ul, - ol, - dl, - table, - pre { - margin-top:0; - margin-bottom:16px; - } - - hr { - height:4px; - padding:0; - margin:16px 0; - background-color:#e7e7e7; - border:0 none; - } - - ul, - ol { - padding-left:2em; - } - - ul.no-list, - ol.no-list { - padding:0; - list-style-type:none; - } - - ul ul, - ul ol, - ol ol, - ol ul { - margin-top:0; - margin-bottom:0; - } - - ol ol, - ul ol { - list-style-type: lower-roman; - } - - li>p { - margin-top:16px; - } - - dl { - padding:0; - } - - dl dt { - padding:0; - margin-top:16px; - font-size:1em; - font-style:italic; - font-weight:bold; - } - - dl dd { - padding:0 16px; - margin-bottom:16px; - } - - blockquote { - padding:0 15px; - color:#777; - border-left:4px solid #ddd; - } - - blockquote>:first-child { - margin-top:0; - } - - blockquote>:last-child { - margin-bottom:0; - } - - table { - display:block; - width:100%; - overflow:auto; - word-break:normal; - word-break:keep-all; - } - - table th { - font-weight:bold; - } - - table th, - table td { - padding:6px 13px !important; - border:1px solid #ddd; - } - - table tr { - background-color:#fff; - border-top:1px solid #ccc; - } - - table tr:nth-child(2n) { - background-color:#f8f8f8; - } - - img { - max-width:100%; - box-sizing:border-box; - } - - .emoji { - max-width:none; - } - - span.frame { - display:block; - overflow:hidden; - } - - span.frame>span { - display:block; - float:left; - width:auto; - padding:7px; - margin:13px 0 0; - overflow:hidden; - border:1px solid #ddd; - } - - span.frame span img { - display:block; - float:left; - } - - span.frame span span { - display:block; - padding:5px 0 0; - clear:both; - color:#333; - } - - span.align-center { - display:block; - overflow:hidden; - clear:both; - } - - span.align-center>span { - display:block; - margin:13px auto 0; - overflow:hidden; - text-align:center; - } - - span.align-center span img { - margin:0 auto; - text-align:center; - } - - span.align-right { - display:block; - overflow:hidden; - clear:both; - } - - span.align-right>span { - display:block; - margin:13px 0 0; - overflow:hidden; - text-align:right; - } - - span.align-right span img { - margin:0; - text-align:right; - } - - span.float-left { - display:block; - float:left; - margin-right:13px; - overflow:hidden; - } - - span.float-left span { - margin:13px 0 0; - } - - span.float-right { - display:block; - float:right; - margin-left:13px; - overflow:hidden; - } - - span.float-right>span { - display:block; - margin:13px auto 0; - overflow:hidden; - text-align:right; - } - - code, - tt { - padding:0; - padding-top:0.2em; - padding-bottom:0.2em; - margin:0; - font-size:85%; - background-color:rgba(0,0,0,0.04); - border-radius:3px; - } - - code:before, - code:after, - tt:before, - tt:after { - letter-spacing:-0.2em; - content:"\00a0"; - } - - code br, - tt br { - display:none; - } - - del code { - text-decoration:inherit; - } - - pre>code { - padding:0; - margin:0; - font-size:100%; - word-break:normal; - white-space:pre; - background:transparent; - border:0; - } - - .highlight { - margin-bottom:16px; - } - - .highlight pre, - pre { - padding:16px; - overflow:auto; - font-size:85%; - line-height:1.45; - background-color:#f7f7f7; - border-radius:3px; - } - - .highlight pre { - margin-bottom:0; - word-break:normal; - } - - pre { - word-wrap:normal; - } - - pre code, - pre tt { - display:inline; - max-width:initial; - padding:0; - margin:0; - overflow:initial; - line-height:inherit; - word-wrap:normal; - background-color:transparent; - border:0; - } - - pre code:before, - pre code:after, - pre tt:before, - pre tt:after { - content:normal; - } - - kbd { - display:inline-block; - padding:3px 5px; - font-size:11px; - line-height:10px; - color:#555; - vertical-align:middle; - background-color:#fcfcfc; - border:solid 1px #ccc; - border-bottom-color:#bbb; - border-radius:3px; - box-shadow:inset 0 -1px 0 #bbb; - } - - .csv-data td, - .csv-data th { - padding:5px; - overflow:hidden; - font-size:12px; - line-height:1; - text-align:left; - white-space:nowrap; - } - - .csv-data .blob-num { - padding:10px 8px 9px; - text-align:right; - background:#fff;border:0; - } - - .csv-data tr { - border-top:0; - } - - .csv-data th { - font-weight:bold; - background:#f8f8f8;border-top:0; - } - -} - -/* Author: jmblog */ - -/* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */ - -/* GitHub Theme */ - -/* Pretty printing styles. Used with prettify.js. */ - -/* SPAN elements with the classes below are added by prettyprint. */ - -/* plain text */ - -.pln { - color: #333333; -} -@media screen { - /* string content */ - .str { - color: #dd1144; - } - /* a keyword */ - .kwd { - color: #333333; - } - /* a comment */ - .com { - color: #999988; - font-style: italic; - } - /* a type name */ - .typ { - color: #445588; - } - /* a literal value */ - .lit { - color: #445588; - } - /* punctuation */ - .pun { - color: #333333; - } - /* lisp open bracket */ - .opn { - color: #333333; - } - /* lisp close bracket */ - .clo { - color: #333333; - } - /* a markup tag name */ - .tag { - color: navy; - } - /* a markup attribute name */ - .atn { - color: teal; - } - /* a markup attribute value */ - .atv { - color: #dd1144; - } - /* a declaration */ - .dec { - color: #333333; - } - /* a variable name */ - .var { - color: teal; - } - /* a function name */ - .fun { - color: #990000; - } -} -/* Use higher contrast and text-weight for printable form. */ - -@media print, -projection { - .str { - color: #006600; - } - .kwd { - color: #006; - font-weight: bold; - } - .com { - color: #600; - font-style: italic; - } - .typ { - color: #404; - font-weight: bold; - } - .lit { - color: #004444; - } - .pun, - .opn, - .clo { - color: #444400; - } - .tag { - color: #006; - font-weight: bold; - } - .atn { - color: #440044; - } - .atv { - color: #006600; - } -} -/* Specify class=linenums on a pre to get line numbering */ - -ol.linenums { - margin-top: 0; - margin-bottom: 0; -}
\ No newline at end of file diff --git a/public/ng/less/gogs/organization.less b/public/ng/less/gogs/organization.less deleted file mode 100644 index e2accbea..00000000 --- a/public/ng/less/gogs/organization.less +++ /dev/null @@ -1,232 +0,0 @@ -@import "../ui/var"; -.org-header-alert .alert { - margin-top: 10px; -} -.org-header { - padding: 16px 0; - background-color: #FFF; - border-bottom: 1px solid #DDD; - img { - padding-right: 10px; - } -} -#org-home-header { - min-height: 100px; -} -#org-header { - height: 48px; - .org-name { - padding-left: 10px; - font-size: 1.4em; - height: 50px; - line-height: 50px; - margin-bottom: 0; - } - > div { - > .menu-line { - > li { - &.right { - > a { - font-size: 1.2em; - color: @dashboardHeaderLinkColor; - &:hover { - background-color: transparent; - color: @dashboardHeaderLinkHoverColor; - } - .octicon { - margin-right: 4px; - } - .label{ - margin-left: 4px; - } - } - .current { - border-bottom: 2px solid #D26911; - } - } - } - } - } -} -#org-home-header-info { - padding-top: 10px; - h2 { - font-size: 30px; - } - ul { - list-style: none; - li { - float: left; - padding-right: 5px; - } - } -} -#org-home-repo-list { - padding: 10px 0; -} -#org-repo-list { - padding: 10px 0; - .org-repo-item { - border-top: 1px solid #eee; - padding: 30px 20px; - .org-repo-status { - list-style: none; - color: #888; - li { - float: left; - margin-right: 6px; - } - } - h2 { - margin-bottom: 5px; - } - .org-repo-description { - margin: 0; - font-size: 14px; - color: #666; - } - .org-repo-updated { - font-size: 12px; - display: block; - margin: 5px 0 0; - color: #808080; - } - } -} -.org-sidebar { - margin: -80px 0 0 20px; - .panel-footer { - padding: .8em 1.2em; - } - .member-avatar-group { - padding: 15px; - img { - width: 59px; - height: 59px; - border-radius: 3px; - } - } -} -#org-home-team-list { - padding: 0 15px; - ul { - list-style: none; - padding-top: 10px; - li { - padding: 10px 0; - border-bottom: 1px solid #eee; - &:last-child { - border-bottom: 0; - } - } - } -} -.team-name { - display: block; - font-size: 14px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} -.team-meta { - margin-top: 0; - margin-bottom: 0; - color: #777; -} -.org-toolbar { - padding: 10px 0; - border-bottom: 1px solid #eee; -} -#org-member-list { - .org-member-item { - height: 50px; - line-height: 50px; - border-bottom: 1px solid #eee; - padding: 15px 20px; - .member-name { - padding-left: 15px; - } - ul { - list-style: none; - li { - text-align: center; - display: inline-block; - } - } - } -} -.invite-box { - padding: 50px 0; - min-height: 130px; - margin: 0 auto; - width: 50%; - input { - width: 300px; - } -} -#org-member-list-block { - padding-top: 2px; -} -.org-team-list { - .org-team-list-item { - float: left; - padding: 15px; - width: 555px; - .member-avatar-group { - padding: 5px 15px; - img { - width: 38px; - height: 38px; - border-radius: 3px; - } - } - } -} -#team-create-form { - .note { - margin-left: 153px; - } -} -#org-team-card { - .desc { - font-size: 14px; - padding: 10px 20px; - } - .team-stats { - padding: 0 20px 10px 20px; - text-transform: uppercase; - border-bottom: 1px solid #dddddd; - } - .panel-footer { - padding: 10px 20px; - } -} -#team-repositories-list, -#team-members-list { - .panel-body .search { - padding: 4px 0 10px 10px; - border-bottom: 1px solid #dddddd; - } - li { - &.collab { - padding-top: 10px !important; - border-bottom: 1px solid #dddddd; - } - &:last-child { - border-bottom: 0 !important; - } - } -} -#team-repositories-list { - li { - a .octicon { - color: #888; - } - .member { - color: @linkColor; - font-size: 14px; - height: 40px; - line-height: 40px; - } - } -}
\ No newline at end of file diff --git a/public/ng/less/gogs/profile.less b/public/ng/less/gogs/profile.less deleted file mode 100644 index 1102ef78..00000000 --- a/public/ng/less/gogs/profile.less +++ /dev/null @@ -1,59 +0,0 @@ -.profile-avatar { - width: 100%; - border-radius: 6px; -} -#profile-name { - padding: 10px 0; -} -#profile-fullname { - font-size: 1.6em; -} -#profile-username { - font-size: 1.6em; - font-weight: bold; -} -.profile-info { - // padding: 0 50px; - font-size: 14px; - ul { - padding-bottom: 10px; - .list-group-item { - background-color: transparent; - padding-top: 5px; - color: #666; - } - .profile-rel { - width: 31%; - text-align: center; - display: inline-block; - strong { - display: block; - font-size: 28px; - font-weight: bold; - line-height: 1; - } - p { - font-size: 12px; - } - } - } -} -#profile-header { - li { - a { - font-size: 1.2em; - color: #444444; - padding: .4em .8em; - &:hover { - background-color: transparent; - color: @dashboardHeaderLinkHoverColor; - } - } - .current { - border-bottom: 2px solid #D26911; - } - } -} -#profile-body { - margin-left: 20px; -}
\ No newline at end of file diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less deleted file mode 100644 index c403b51f..00000000 --- a/public/ng/less/gogs/repository.less +++ /dev/null @@ -1,878 +0,0 @@ -@import "../ui/var"; -@repoHeaderBorderColor: #D6D6D6; -@repoHeaderBgColor: #FFF; -@repoHeaderNameColor: #888; - -#repo-wrapper { - padding-bottom: 100px; -} -#repo-header { - height: 69px; - border-bottom: 1px solid@repoHeaderBorderColor; - background-color: @repoHeaderBgColor; -} -#repo-header-name { - line-height: 66px; - color: @repoHeaderNameColor; - font-size: 1.6em; - font-weight: normal; - margin-bottom: 0; - i { - margin-right: 12px; - vertical-align: middle; - } - .divider { - margin: 0 4px; - } -} -#repo-header-meta { - line-height: 66px; - li { - >a { - padding: 0; - &:hover { - background-color: transparent; - } - } - } - a { - &>.btn { - line-height: 16px; - margin-left: 16px; - font-size: 13px; - i { - margin-right: 6px; - } - .num { - margin-left: 6px; - } - } - } -} -#repo-header-download-btn { - >.btn>i { - margin-right: 0 !important; - } - &:hover { - &:after, .btn { - background-color: @btnHoverBlackColor; - color: #FFF; - } - } - &:after { - background-color: @btnBlackColor; - padding: 9px 16px 8px 0; - margin-left: -8px !important; - color: #FFF; - border-top: 1px solid@btnBlackColor; - border-bottom: 1px solid@btnBlackColor; - border-top-right-radius: .25em; - border-bottom-right-radius: .25em; - } -} -#repo-header-download-drop { - line-height: 24px; - width: 460px; - top: 50px; - left: -390px; - padding: 20px; - box-sizing: border-box; - z-index: 1; - .btn>i { - margin-right: 6px; - } - button, input { - font-size: 11px; - } - #repo-clone-copy { - width: 85px; - text-overflow: clip; - } -} -#repo-content { - padding-top: 18px; - padding-bottom: 18px; -} -.repo-wide-wrapper { - padding: 18px; - position: relative; -} -#repo-clone-url { - border-right: none; - width: 190px; - border-left: none; - cursor: default; -} -#repo-clone-help { - clear: both; - line-height: 48px; -} -#repo-clone-zip { - line-height: 48px; - a { - cursor: pointer; - color: white; - overflow: visible; - padding: .6em 1.2em; - } - .btn { - margin: 0 6px; - } -} -#repo-desc { - font-size: 1.2em; - .no-description{ - color: #999; - } -} -#repo-sidebar-nav { - .label { - font-size: 12px; - line-height: 1.4em; - margin-top: 2px; - } - i { - margin-right: 6px; - } -} -#repo-sidebar-mini { - margin-top: 6px; - width: 60px; - li { - margin-bottom: 4px; - } - li > a { - position: relative; - padding-left: 12px; - width: 24px; - text-align: center; - >i.octicon { - font-size: 21px; - } - } - .num { - position: absolute; - font-size: 12px; - top: 0; - left: 36px; - padding: 0 2px; - min-width: 16px; - height: 16px; - text-align: center; - line-height: 16px; - border-radius: 4px; - opacity: 0.7; - -webkit-transform: scale(0.9); - font-weight: bold; - } -} -#repo-file-nav { - padding: .6em 0 1em 0; - >li>a { - padding-left: 0; - &:hover { - background-color: transparent; - } -} - li.repo-jump > a { - padding-right: 0; - .btn { - margin-left: -1px; - } - } -} -#repo-branch-switch { - >a { - .btn { - padding-right: 30px; - } - &:after { - position: absolute; - top: 12px; - right: 30px; - margin-left: 0; - color: @baseFontColor; - } - } - >.drop-down { - top: 40px; - left: 0; - } -} -#repo-branch-filter-ipt { - width: 100%; - border-left: none; - border-right: none; - box-sizing: border-box; -} -#repo-branch-tag { - .tab-nav { - border-bottom: 1px solid #EAEAEA; - a { - padding: .3em .8em; - } - .js-tab-nav-show { - background-color: #EEE; - font-weight: bold; - } - } - .switching-list { - max-height: 300px; - overflow-y: auto; - } -} -#repo-branch-list, -#repo-tag-list { - li { - i { - margin-right: 12px; - opacity: 0; - } - } - li.checked { - i { - opacity: 1; - } - } -} -#repo-bread { - .bread { - padding-right: 0; - font-size: 16px; - font-weight: bold; - } -} -#repo-main { - padding-right: 40px; - box-sizing: border-box; -} -#repo-files-table { - margin-bottom: 20px; - .sha .label { - font-family: Monaco,Menlo,Consolas,"Courier New",monospace; - } - th, td { - text-align: left; - line-height: 32px; - } - td.icon { - width: 16px; - padding-right: .1em; - padding-left: 1em; - } - td.name { - max-width: 120px; - .text-truncate { - max-width: 100%; - } - } - td.age { - max-width: 120px; - text-align: right; - } - td.msg { - max-width: 440px; - .text-truncate { - max-width: 100%; - } - } - td.age, - td.size, - td.msg a { - color: #888; - } - td.msg a:hover { - color: #428BCA; - text-decoration: underline; - } - td.message { - .text-truncate { - max-width: 360px; - } - } - tbody { - background-color: #FFF; - tr:hover { - background-color: #ffffEE; - } - } - thead { - background-color: #F0F0F0; - .author { - a { - margin: 0 .4em; - } - } - .last-commit { - strong { - color: #444; - } - .text-truncate { - max-width: 440px; - margin-left: .4em; - } - } - .last-commit .text-truncate, - .age { - font-weight: normal; - color: #888; - } - } -} -#repo-readme, -#repo-read-file { - margin-bottom: 80px; -} -#repo-bare-start { - margin-bottom: 100px; - .panel-content { - background-color: #FFF; - } - pre { - margin: 0 40px; - padding: 6px 10px; - border: 1px solid #ddd; - background: #f8f8f8; - } -} -.repo-bare { - #repo-bare-start { - h2 { - margin-top: 30px; - margin-bottom: 24px; - } - } - #repo-header-meta { - display: none; - } - .btn-first { - margin-left: 200px; - } - #repo-clone-copy { - margin-right: 200px; - } - #repo-clone-help { - clear: both; - width: 100%; - } - #repo-clone-url { - width: 520px; - } -} - -/* repository create */ - -#team-create-form, -#repo-migrate-form, -#repo-create-form { - width: 800px; - margin: 60px auto auto auto; - background: white; - h2 { - margin: .5em 1em; - } - .field { - margin: 1.2em 0 2em 0; - } - .ipt { - width: 540px; - } - textarea { - height: 120px; - } - .avatar { - vertical-align: middle; - margin-right: .6em; - width: 28px; - height: 28px; - } - &:hover { - box-shadow: 0px 0px 6px #CCC; - } -} -#repo-create-cancel { - margin-left: 4em; -} -#release-new-target-branch-list, -#repo-create-owner-list { - top: 30px; - left: 0; - width: auto; - max-width: 300px; - .octicon { - margin-right: 12px; - opacity: 0; - } - .avatar { - width: 20px; - height: 20px; - } - li { - white-space: nowrap; - &.checked { - .octicon { - opacity: 1; - } - } - a { - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - overflow: hidden; - } - } -} -#release-new-target-branch-list { - margin-top: -1px; - min-width: 150px; -} -#release-new-title { - margin-top: 10px; -} -#release-new-content { - width: 100%; -} -#release-preview-btn .btn { - border-left: 0; -} -#release-preview.markdown { - margin-top: 5px; - background-color: transparent; -} -.file-name { - margin-left: 1em; -} -.file-size { - font-size: 13px; - color: #888; - margin-left: 1em; -} -.code-view { - overflow: auto; - overflow-x: auto; - overflow-y: hidden; - background: white; - .view-raw { - min-height: 40px; - text-align: center; - padding-top: 20px; - .btn { - font-size: 1.05em; - line-height: 16px; - padding: 6px 8px; - } - } - table { - width: 100%; - td { - padding: 0; - } - } - .lines-num { - vertical-align: top; - text-align: right; - color: #999; - background: #f5f5f5; - width: 1%; - span { - font-family: Monaco,Menlo,Consolas,"Courier New",monospace; - line-height: 20px; - padding: 0 10px; - cursor: pointer; - display: block; - } - } - .lines-code > pre { - border: none; - border-left: 1px solid #ddd; - > ol.linenums > li { - padding: 0 10px; - line-height: 20px; - &.active { - background: #ffffdd; - } - } - } -} -.repo-setting-zone { - padding: 30px; -} -#team-repositories-list, -#team-members-list, -#repo-collab-list { - list-style: none; - padding: 10px 0 5px 0; - li.collab { - clear: both; - height: 50px; - padding: 0 15px 0 15px; - } - a.member { - color: #444; - height: 50px; - line-height: 50px; - &:hover { - color: #4183C4; - } - } - .avatar { - margin-right: 1em; - width: 40px; - } - .remove-collab { - color: #DD4B39; - } -} -.repo-user-list-block { - position: relative; - top: 5px; -} -.setting-list { - width: 100%; - list-style: none; -} -#commits-list { - padding-top: 20px; - h4{ - line-height: 30px; - margin-bottom: 0; - } -} -.commit-list { - th { - background-color: #FFF; - line-height: 28px !important; - } - .date { - width: 120px; - } - .author { - padding-left: 20px; - min-width: 180px; - img { - margin-top: -4px; - } - } - .sha a { - font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; - font-size: 14px; - } - .message { - width: 60%; - span { - max-width: 500px; - } - } -} - -.commit-message { - white-space: pre-wrap; -} - -.diff-head-box { - margin-top: 10px; - .panel-body { - padding: 10px 15px 5px 10px; - } - .author { - img { - margin-top: -7px; - } - } -} -.diff-detail-box { - margin: 15px 0; - line-height: 30px; - ol { - clear: both; - padding-left: 0; - margin-bottom: 28px; - li { - list-style: none; - padding-bottom: 4px; - margin-bottom: 4px; - border-bottom: 1px dashed #DDD; - padding-left: 6px; - } - } - span.status{ - display: inline-block; - width: 12px; - height: 12px; - margin-right: 8px; - vertical-align: middle; - &.modify { - background-color: #f0db88; - } - &.add { - background-color: #b4e2b4; - } - &.del { - background-color: #e9aeae; - } - &.rename { - background-color: #dad8ff; - } - } -} -.diff-box { - .count { - margin-right: 12px; - .bar { - background-color: #e75316; - height: 12px; - width: 40px; - display: inline-block; - margin: 2px 4px 0 4px; - vertical-align: text-top; - .add { - background-color: #77c64a; - height: 12px; - } - } - } - .file { - color: #888; - } - .panel-header { - font-size: 14px; - } -} -.diff-file-box { - .file-body.file-code { - .lines-num { - text-align: right; - color: #999; - background: #fafafa; - width: 1%; - } - .lines-num-old { - border-right: 1px solid #DDD; - } - } - .code-diff { - tbody { - tr { - &.tag-code { - td, pre { - background-color: #E0E0E0 !important; - border-color: #ADADAD !important; - } - td.selected-line, td.selected-line pre { - background-color: #ffffdd !important; - } - } - &.same-code { - td.selected-line, td.selected-line pre { - background-color: #ffffdd !important; - } - } - &.del-code { - td, pre { - background-color: #ffe2dd !important; - border-color: #e9aeae !important; - } - td.selected-line, td.selected-line pre { - background-color: #ffffdd !important; - } - } - &.add-code { - td, pre { - background-color: #d1ffd6 !important; - border-color: #b4e2b4 !important; - } - td.selected-line, td.selected-line pre { - background-color: #ffffdd !important; - } - } - &:hover { - td, pre { - background-color: #FFF8D2 !important; - border-color: #F0DB88 !important; - } - } - } - } - } -} -.compare-head-box { - margin-top: 10px; - .compare { - padding: 0 15px 15px 15px; - } -} -.fork-flag { - display: block; - font-size: 11px; - line-height: 10px; - white-space: nowrap; - margin-left: 44px; - margin-top: -15px; -} -#release { - h4 { - font-size: 18px; - small { - font-weight: 400; - line-height: 1; - color: #999; - } - } - #release-head { - margin-top: 0; - margin-bottom: 0; - padding-bottom: 20px; - border-bottom: 1px solid #DDD; - .btn { - margin-left: 10px; - } - } - .release-item { - &>div { - padding-top: 20px; - padding-bottom: 20px; - } - .label-green:hover { - background-color: @labelGreenColor; - } - .release-meta { - position: relative; - float: left; - padding-right: 15px; - } - .tag, - .commit { - display: block; - margin-top: 12px; - line-height: 20px; - } - .release-detail { - margin-top: -1px; - border-left: 1px solid #DDD; - position: relative; - float: left; - padding-left: 15px; - } - .title { - line-height: 25px; - margin-top: 0; - } - p.info { - line-height: 20px; - color: #666; - margin-bottom: 15px; - >* { - margin-right: 10px; - } - } - .author { - img { - margin-top: -3px; - } - } - div.desc { - margin-bottom: 25px; - &.markdown { - background-color: transparent; - } - } - .download a { - margin-right: 10px; - } - .dot { - width: 9px; - height: 9px; - background-color: #ccc; - z-index: 999; - position: absolute; - display: block; - left: -6px; - top: 27px; - border-radius: 6px; - border: 1px solid #FFF; - } - } - #release-new-form { - padding-top: 15px; - } -} - -#stars, #watchers, #forks { - h4 { - font-size: 18px; - padding-bottom: 20px; - text-transform: capitalize; - border-bottom: 1px solid #DDD; - } - - h3 { - margin: -4px 0 0 0; - padding: 0; - } - - .avatar { - width: 75px; - height: 75px; - float: left; - display: block; - margin-right: 10px; - } - - .avatar-small { - width: 24px; - height: 24px; - float: left; - display: block; - margin-right: 10px; - } - - ol { - margin-top: 10px; - list-style: none; - width: 100%; - overflow: hidden; - } - - li { - width: 32.25%; - margin: 10px 10px 10px 0; - border-bottom: 1px solid #DDD; - float: left; - padding-bottom: 10px; - } - - .pagination { - width: 100%; - text-align: center; - text-transform: capitalize; - - a { - border-radius: 3px; - border: 1px solid #399ADE; - padding: 8px; - margin: 0; - } - - .active { - border-radius: 3px; - border: 1px solid #399ADE; - background: #399ADE; - cursor: default; - padding: 8px; - margin: 0; - color: #FFFFFF; - } - - .disabled { - border-radius: 3px; - border: 1px solid #DDD; - color: #D3D3D3; - cursor: default; - padding: 8px; - margin: 0; - } - } -} - -#forks p { - padding: 5px 0; -} diff --git a/public/ng/less/gogs/settings.less b/public/ng/less/gogs/settings.less deleted file mode 100644 index 98164544..00000000 --- a/public/ng/less/gogs/settings.less +++ /dev/null @@ -1,131 +0,0 @@ -@import "../ui/var"; -#admin-wrapper, -#setting-wrapper { - padding-bottom: 100px; -} - -#setting-menu { - box-sizing: border-box; - li > a { - border-left: 2px solid #FFF; - background-color: #FFF; - } - li:hover { - a { - border-left: 2px solid #EFEFEF; - background-color: #EFEFEF !important; - color: #000 !important; - } - border-color: #EAEAEA; - } - li.current { - a { - color: #000 !important; - font-weight: bold; - border-left: 2px solid #d26911; - } - } -} - -.setting-content { - margin-left: 32px; -} - -#auth-setting-form, -#org-setting-form, -#repo-setting-form, -#user-profile-form, -#add-email-form, -.repo-setting-form { - background-color: #FFF; - padding: 30px 0; - textarea { - margin-left: 4px; - height: 100px; - } - label, - .form-label { - width: 240px; - } - .ipt { - width: 360px; - } - .field { - margin-bottom: 24px; - } -} - -#hook-type { - padding: 10px 0 0 0; - background-color: #fff; - .field { - margin-bottom: 24px; - } - label { - width: 240px; - } -} - -#repo-hooks-panel, -#repo-hooks-history-panel, -#user-social-panel, -#user-applications-panel, -#user-email-panel, -#user-ssh-panel { - margin-bottom: 20px; - .setting-list { - background-color: #FFF; - li { - padding: 8px 20px; - border-bottom: 1px solid #eaeaea; - &.ssh:hover { - background-color: #ffffEE; - } - i { - padding-right: 5px; - } - } - } - .active-icon { - width: 10px; - height: 10px; - border-radius: 6px; - padding: 0; - margin-right: 20px; - margin-top: 10px; - } - .ssh-content { - margin-left: 24px; - .octicon { - margin-right: 4px; - } - .print, - .access, - .activity { - color: #888; - } - .access { - max-width: 500px; - } - } - .ssh-btn { - margin-top: 6px; - } -} - -.form-settings-add { - .panel-body { - background-color: #FFF; - padding: 30px 0; - } - .ipt { - width: 500px; - } - textarea { - height: 120px; - margin-left: 3px; - } - .field { - margin-bottom: 24px; - } -} diff --git a/public/ng/less/gogs/sign.less b/public/ng/less/gogs/sign.less deleted file mode 100644 index 3950be03..00000000 --- a/public/ng/less/gogs/sign.less +++ /dev/null @@ -1,68 +0,0 @@ -@import "../ui/var"; - -/* -The register and sign-in page style -*/ - -@signPanelBgColor: #FFF; - -#sign-wrapper { - padding: 60px 0; -} - -.sign-panel { - background-color: @signPanelBgColor; -} - -.sign-form.form-align { - .field { - margin: 1.2em 0 2em 0; - } - .ipt-large { - width: 300px; - } - label, - .form-label { - width: 160px; - } - .chk-label { - width: auto; - text-align: left; - margin-left: 176px; - } - .alert{ - margin:0 30px 24px 30px; - } - &:hover{ - box-shadow: 0 0 6px #CCC; - } -} - -.sign-form.container{ - padding: 0; - width: 600px; - margin-bottom: 80px; -} - -// register form element -#sign-up-form { - .panel-content{ - margin-top: 1.2em; - } - h2 { - margin: .5em 1em; - } -} - -#sign-social{ - position: relative; - margin: 40px 0; - .or{ - position: absolute; - width: 30px; - top: -52px; - left: 50%; - background-color: #FFF; - margin-left: -15px; - } -} diff --git a/public/ng/less/ui.less b/public/ng/less/ui.less deleted file mode 100644 index fc7ad3c2..00000000 --- a/public/ng/less/ui.less +++ /dev/null @@ -1,11 +0,0 @@ -@import "ui/var"; -@import "ui/reset"; -@import "ui/grid"; -@import "ui/form"; -@import "ui/menu"; -@import "ui/panel"; -@import "ui/label"; -@import "ui/bread"; -@import "ui/alert"; -@import "ui/table"; -@import "ui/pager";
\ No newline at end of file diff --git a/public/ng/less/ui/alert.less b/public/ng/less/ui/alert.less deleted file mode 100644 index 606c1114..00000000 --- a/public/ng/less/ui/alert.less +++ /dev/null @@ -1,55 +0,0 @@ -@import "var"; - -.alert{ - padding: .6em 1.5em; - margin-bottom: 10px; - i{ - margin-right: 8px; - } -} - -.alert-radius{ - border-radius: .25em; -} - -.alert-red{ - color: @alertRedColor; - border: 1px solid darken(@alertRedColor,10%); - background-color: lighten(@alertRedColor,40%); -} - -.alert-blue{ - color: @alertBlueColor; - border: 1px solid darken(@alertBlueColor,10%); - background-color: lighten(@alertBlueColor,45%); -} - -.alert-green{ - color: @alertGreenColor; - border: 1px solid darken(@alertGreenColor,10%); - background-color: lighten(@alertGreenColor,45%); -} - -.alert-gray{ - color: @alertGrayColor; - border: 1px solid darken(@alertGrayColor,10%); - background-color: lighten(@alertGrayColor,35%); -} - -.alert-orange{ - color: @alertOrangeColor; - border: 1px solid darken(@alertOrangeColor,10%); - background-color: lighten(@alertOrangeColor,45%); -} -.white-popup-block { - background: #FFF; - padding: 20px 30px; - text-align: left; - max-width: 650px; - margin: 40px auto; - position: relative; - p { - font-size: 14px; - } -} - diff --git a/public/ng/less/ui/bread.less b/public/ng/less/ui/bread.less deleted file mode 100644 index 9e96eb43..00000000 --- a/public/ng/less/ui/bread.less +++ /dev/null @@ -1,18 +0,0 @@ -@import "var"; - -.breads { - .bread { - &:after { - content: "/"; - font-weight: bold; - margin: 0 4px 0 7px; - color:@breadColor; - } - } - .bread:last-child { - &:after { - content: ""; - margin: 0; - } - } -}
\ No newline at end of file diff --git a/public/ng/less/ui/form.less b/public/ng/less/ui/form.less deleted file mode 100644 index aeaf9c88..00000000 --- a/public/ng/less/ui/form.less +++ /dev/null @@ -1,230 +0,0 @@ -@import "var"; - -// Button. -.btn { - white-space: nowrap; -} -.btn-small { - font-size: 0.9*@baseFontSize; - padding: .4em .9em; -} -.btn-medium { - font-size: @baseFontSize; - padding: .4em .9em; -} -.btn-large { - font-size: 1.2*@baseFontSize; - padding: .4em .9em; -} - -.btn-green { - background-color: @btnGreenColor; - border: 1px solid @btnGreenColor; - &:hover { - background-color: @btnHoverGreenColor; - color: #FFF; - } -} -.btn-blue { - background-color: @btnBlueColor; - border: 1px solid @btnBlueColor; - &:hover { - background-color: @btnHoverBlueColor; - color: #FFF; - } -} -.btn-red { - color: #FFF; - background-color: @btnRedColor; - border: 1px solid @btnRedColor; - &:hover { - background-color: @btnHoverRedColor; - color: #FFF; - } -} -.btn-orange { - background-color: @btnOrangeColor; - border: 1px solid @btnOrangeColor; - &:hover { - background-color: @btnHoverOrangeColor; - color: #FFF; - } -} - -.btn-black { - background-color: @btnBlackColor; - border: 1px solid @btnBlackColor; - &:hover { - background-color: @btnHoverBlackColor; - color: #FFF; - } -} - -.btn-gray { - background-color: @btnGrayColor; - color: @baseFontColor; - border: 1px solid @btnGrayBorderColor; - &:hover { - background-color: @btnGrayHoverColor; - color: @baseFontColor; - } -} - -.btn-white { - background-color: @btnWhiteColor; - color: @baseFontColor; - border: 1px solid @btnWhiteBorderColor; - &:hover { - background-color: @btnWhiteHoverColor; - color: @baseFontColor; - } - &.active { - background-color: @btnWhiteHoverColor; - color: @baseFontColor; - } -} -// status buttons - -.btn-active { - box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset, 0 0 4px rgba(0, 0, 0, .15) inset -} -.btn-header { - margin-top: -1px; - color: white; - padding: 0 10px; -} -.btn-link { - overflow: visible; - color: white; - padding: .6em 1.2em; -} -.btn-radius { - border-radius: .25em; -} -.btn-left-radius { - border-top-left-radius: .25em; - border-bottom-left-radius: .25em; -} -.btn-right-radius { - border-top-right-radius: .25em; - border-bottom-right-radius: .25em; -} -.btn-block { - display: block; - width: 100%; - box-sizing: content-box; - text-align: center; -} -.btn-comb { - margin-left: -1px; -} - -.btn-disabled { - opacity: .6; - cursor: not-allowed; - box-shadow: none; - background-image: none !important; - border: none; - &:hover { - background-image: none !important; - color: @btnHoverFontColor; - } -} - -.btn-group { - display: inline-block; - > .btn { - position: relative; - float: left; - margin-right: -1px; - &:first-child{ - border-bottom-left-radius: .25em; - border-top-left-radius: .25em; - } - &:last-child{ - border-bottom-right-radius: .25em; - border-top-right-radius: .25em; - } - } -} -// input form elements -.ipt { - &:focus { - border-color: @iptFocusBorderColor; - } -} -.ipt-radius { - border-radius: .25em; -} -.ipt-small { - font-size: .8*@baseFontSize; -} -.ipt-large { - font-size: 1.2*@baseFontSize; -} -.ipt-textarea { - height: auto !important; - width: auto; -} -.ipt-disabled, -input[disabled] { - background-color: @iptDisabledColor !important; - &:focus { - background-color: @iptDisabledColor !important; - } - color: #888; - cursor: not-allowed; -} -.ipt-readonly, -input[readonly] { - &:focus { - background-color: @iptDisabledColor !important; - } -} -.ipt-error { - border-color: @iptErrorBorderColor !important; - background-color: @iptErrorFocusColor !important; -} - -.form { - label { - margin-right: 1em; - } - .help { - color: @formHelpFontColor; - padding-top: .6em; - display: inline-block; - } -} - -.form-stack { - label { - display: block; - } - .field { - margin-bottom: 1em; - } -} -.form-align { - label, - .form-label { - display: inline-block; - width: 120px; - text-align: right; - margin-right: 1em; - } - .field { - margin-bottom: 1em; - } -} -label { - &.text-left { - text-align: left; - } - &.req { - &:after { - content: "*"; - color: @labelRedColor; - } - } -} diff --git a/public/ng/less/ui/grid.less b/public/ng/less/ui/grid.less deleted file mode 100644 index 2b7d0043..00000000 --- a/public/ng/less/ui/grid.less +++ /dev/null @@ -1,99 +0,0 @@ -@import "var"; -@import "reset"; - -// float elements - -.left { - float: left; -} - -.right { - float: right; -} - -.clear::after { - clear: both; - content: " "; - width: 0; - height: 0; - display: block; -} - -.hide { - display: none; -} - -// 12 based grids - -.grid-1-12 { - width: 8.33%; -} - -.grid-2-12, -.grid-1-6 { - width: 16.67%; -} - -.grid-3-12, -.grid-1-4 { - width: 25%; -} - -.grid-4-12, -.grid-1-3 { - width: 33%; -} - -.grid-5-12 { - width: 41.67%; -} - -.grid-6-12, -.grid-1-2 { - width: 50%; -} - -.grid-7-12 { - width: 58.33%; -} - -.grid-8-12, -.grid-2-3 { - width: 66.67%; -} - -.grid-9-12, -.grid-3-4 { - width: 75%; -} - -.grid-10-12, -.grid-5-6 { - width: 83.33%; -} - -.grid-11-12 { - width: 91.67%; -} - -*[class*="grid-"] { - box-sizing: content-box; -} - -// 5 based - -.grid-1-5 { - width: 20%; -} - -.grid-2-5 { - width: 40%; -} - -.grid-3-5 { - width: 60%; -} - -.grid-4-5 { - width: 80%; -} diff --git a/public/ng/less/ui/label.less b/public/ng/less/ui/label.less deleted file mode 100644 index ab07718f..00000000 --- a/public/ng/less/ui/label.less +++ /dev/null @@ -1,43 +0,0 @@ -@import "var"; - -.label { - padding: .3em .6em .2em .6em; - color: @labelFontColor; -} - -.label-red { - background-color: @labelRedColor; -} - -.label-blue { - background-color: @labelBlueColor; -} - -.label-gray { - background-color: @labelGrayColor; -} -.label-green { - background-color: @labelGreenColor; - &:hover { - background-color: @btnHoverGreenColor; - color: #FFF; - } -} -.label-orange { - background-color: @labelOrangeColor; -} - -.label-black { - background-color: @labelBlackColor; -} - -.label-radius{ - border-radius: .2em; -} - -.label-link{ - color: @labelFontColor; - &:hover{ - color: @labelFontColor; - } -}
\ No newline at end of file diff --git a/public/ng/less/ui/menu.less b/public/ng/less/ui/menu.less deleted file mode 100644 index a954ecbf..00000000 --- a/public/ng/less/ui/menu.less +++ /dev/null @@ -1,170 +0,0 @@ -@import "var"; - -// lined menu - -ul.menu { - > li { - list-style: none; - > a { - padding: .8em 1.2em; - &:hover { - background-color: @lineMenuHoverBgColor; - color: @lineMenuHoverFontColor; - } - &.active { - background-color: #4183c4; - color: #FFF; - } - } - &.current > a, - &.hover > a { - color: @lineMenuHoverFontColor; - } - } - > li.head { - font-weight: bold; - padding: .8em 1.2em; - } - > li.down:hover { - > ul.menu-down { - display: block; - } - } - > li.border-bottom { - border-bottom: 1px solid @menuBorderColor; - height: 0; - margin: .5em 0; - } -} - -ul.menu-line { - > li, - > li > a { - display: inline-block; - } - > li.down { - position: relative; - > a:after { - content: "\25BE"; - margin-left: .4em; - } - > ul.menu-down { - top: 2.1em; - width: 150%; - } - } - > li.hover { - position: relative; - > a:after { - position: absolute; - content: "\25B4"; - left: 50%; - bottom: -1.1em; - margin-left: -4px; - } - } -} - -ul.menu-vertical, -ul.menu-down { - > li > a, - > li.head { - display: block; - padding: .4em 1.2em; - } - > li.down { - position: relative; - > a:after { - content: "\25B8"; - position: absolute; - right: .6em; - } - } - > li.hover { - position: relative; - > a:after { - content: "\25B8"; - position: absolute; - left: .5em; - } - } -} - -ul.menu-border, -ul.menu-down { - border: 1px solid @menuBorderColor; - > li.head { - border-bottom: 1px solid @menuBorderColor; - } -} - -ul { - &.menu-down { - position: absolute; - display: none; - z-index: 99; - box-shadow: 0 0 2px @menuShadowColor; - background-color: @menuDownBgColor; - } - &.menu-down-show { - position: absolute; - z-index: 99; - box-shadow: 0 0 2px @menuShadowColor; - background-color: @menuDownBgColor; - } -} - -ul.menu-radius { - border-radius: .3em; - > li { - &:first-child { - border-top-left-radius: .3em; - border-top-right-radius: .3em; - > a { - border-top-left-radius: .2em; - border-top-right-radius: .2em; - } - } - &:last-child { - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - > a { - border-bottom-left-radius: .2em; - border-bottom-right-radius: .2em; - } - } - } -} - -.drop { - position: relative; - &:hover { - > .drop-down { - position: absolute; - top: 0; - left: 0; - width: 200%; - display: block; - } - } - > .drop-down { - display: none; - border: 1px solid @dropBorderColor; - box-shadow: 0 0 3px @menuShadowColor; - background-color: @dropDownBgColor; - } -} - -.drop-bottom { - &:after { - content: "\25BE"; - margin-left: .4em; - } -} - -.drop-top { - &:after { - content: "\25B4"; - margin-left: .4em; - } -} diff --git a/public/ng/less/ui/pager.less b/public/ng/less/ui/pager.less deleted file mode 100644 index 37540b36..00000000 --- a/public/ng/less/ui/pager.less +++ /dev/null @@ -1,28 +0,0 @@ -@import "var"; - -.pager{ - .page{ - padding: .3em .5em .2em .5em; - margin: 0 .3em; - background-color: @pagerPageBgColor; - color: @pagerPageColor; - &:hover,&.hover{ - background-color: @pagerHoverBgColor; - color: @pagerHoverColor; - } - } - .prev,.next{ - padding: .4em .6em; - margin: 0 .3em; - background-color: @pagerDirectionBgColor; - color: @pagerDirectionColor; - &.invalid{ - background-color: @pagerInvalidBgColor; - color: @pagerInvalidColor; - cursor: not-allowed; - } - } - .page-radius{ - border-radius: .2em; - } -}
\ No newline at end of file diff --git a/public/ng/less/ui/panel.less b/public/ng/less/ui/panel.less deleted file mode 100644 index 929de21e..00000000 --- a/public/ng/less/ui/panel.less +++ /dev/null @@ -1,54 +0,0 @@ -@import "var"; -.panel { - border: 1px solid@panelBorderColor; - .panel-header { - font-size: 16px; - padding: .6em 1.2em; - background-color: @panelHeaderBgColor; - border-bottom: 1px solid@panelBorderColor; - } - .panel-body { - background-color: white; - .panel-desc { - padding: 0 40px 20px 40px; - } - } - .panel-content { - padding: 1em 1.2em; - } - .panel-footer { - padding: .6em 1.2em; - background-color: @panelFooterBgColor; - border-top: 1px solid@panelBorderColor; - } - &.panel-radius { - border-radius: .3em; - .panel-header { - border-top-left-radius: .3em; - border-top-right-radius: .3em; - } - .panel-footer { - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - } - .panel-content{ - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - } - } - &.panel-info { - border-color: #85c5e5; - > .panel-header { - color: #31708f; - background-color: #d9edf7; - border-color: #85c5e5; - } - } - &.panel-warning { - border-color: #F0C36D; - > .panel-header { - background-color: #F9EDBE; - border-color: #F0C36D; - } - } -}
\ No newline at end of file diff --git a/public/ng/less/ui/reset.less b/public/ng/less/ui/reset.less deleted file mode 100644 index 26ec6292..00000000 --- a/public/ng/less/ui/reset.less +++ /dev/null @@ -1,368 +0,0 @@ -@import "var"; - -* { - padding: 0; - margin: 0; -} - -html { - font-size: @baseFontSize+1; - font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif; - // make sure min font size - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - line-height: @baseLineHeight; - - color: @baseFontColor; - background-color: @baseBgColor; - -} - -input, -textarea, -select, -option, -button { - font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif; -} - -// html5 block elements - -article, -aside, -details, -figcaption, -figure, -footer, -header, -main, -nav, -section, -summary, -.block { - display: block; -} - -.inline { - display: inline; -} - -.inline-block { - display: inline-block; -} - -.dis-table { - display: table; -} - -.dis-table-cell { - display: table-cell; -} - -.dis-flex { - display: flex; -} - -// html5 media elements - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -// display hidden elements - -[hidden], -template, -.hidden { - display: none; -} -.opacity { - opacity: 0; -} -.opacity-half { - opacity: .5; -} - -// links element - -a, -.text-link { - color: @linkColor; - text-decoration: none; - cursor: pointer; - &:hover { - color: @linkHoverColor; - text-decoration: none; - } - &:focus { - outline: none; - } -} - -// stylus elements - -b, -strong, -.text-bold { - font-weight: bold; -} - -dfn, -.text-italic { - font-style: italic; -} - -// headers elements - -h1, -.text-h1 { - font-size: 2em; - margin-bottom: 0.67em; -} - -h2, -.text-h2 { - font-size: 1.6em; - margin-bottom: 0.625em; -} - -h3, -.text-h3 { - font: 1.2em; - margin-bottom: 0.5em; -} - -h4, -h5, -h6, -.text-h4, -.text-h5, -.text-h6 { - font-size: 1em; - margin-bottom: .3em; -} - -// text elements - -small, -.text-small { - font-size: .8em; -} - -sub, -sup, -.text-sup, -.text-sub { - font-size: .7em; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup, -.text-sup { - top: -0.5em; -} - -sub, -.text-sub { - bottom: -0.25em; -} - -.figure, -.blockquote { - margin: 1em 1.5em; -} - -pre { - overflow: auto; - margin: 0; - padding: .4em 1em; -} - -code, -kbd, -pre, -samp { - font-family: monospace; - font-size: 1em; -} - -.text-left { - text-align: left; -} -.text-right { - text-align: right; -} -.text-center { - text-align: center; -} -.list-no-style { - list-style: none; -} - -// image elements - -img { - border: none; -} - -svg:not(:root) { - overflow: hidden; -} - -// form elements - -label { - font-weight: bold; -} - -textarea, -input, -.ipt { - padding: .6em; - line-height: normal; - border: 1px solid @iptBorderColor; - &:focus { - background-color: @iptFocusColor; - outline: none; - } -} - -button,.btn { - overflow: visible; - padding: .6em 1.2em; -} - -button, -select { - text-transform: none; - &:focus { - outline: none; - } -} - -button, -input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - -moz-appearance: button; - cursor: pointer; - background-color: @btnBgColor; - color: @btnFontColor; - border: none; - &:hover { - background-color: @btnHoverBgColor; - color: @btnHoverFontColor; - } -} - -button[disabled], -html input[disabled] { - cursor: default; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - padding: 0; -} - -input[type="search"] { - -webkit-appearance: textfield; - -moz-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; -} - -fieldset { - border: 1px solid @iptBorderColor; - margin: 0 2px; - padding: 0.4em 0.8em 0.8em; -} - -legend { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; - border: 1px solid @iptBorderColor; - padding: .6em; - &:focus { - background-color: @iptFocusColor; - outline: none; - } -} - -optgroup { - font-weight: bold; -} - -// table elements -table { - background-color: transparent; - border-collapse: collapse; - border-spacing: 0; -} - -td, -th { - padding: 0; -} - -// hr element - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; - border: none; - border-bottom: 1px solid @hrColor; - margin-bottom: .75em; -} -// radius element - -.radius { - border-radius: .25em; -} - -// truncate element - -.text-truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - display: inline-block; - vertical-align: top; -} - -// code elements - -pre { - line-height: 1.6; - overflow: auto; - padding: 0; -} - -dt { - font-weight: bold; -} diff --git a/public/ng/less/ui/table.less b/public/ng/less/ui/table.less deleted file mode 100644 index 0ceb5e8c..00000000 --- a/public/ng/less/ui/table.less +++ /dev/null @@ -1,63 +0,0 @@ -@import "var"; - -table { - th, - td { - padding: .3em .6em; - line-height: 30px; - } -} - -.table-border { - border: 1px solid @tableBorderColor; - tr { - border-top: 1px solid @tableCellBorderColor; - th, - td, { - border-top: 1px solid @tableCellBorderColor; - } - &:first-child { - border-top: none; - } - } - thead { - border-bottom: 1px solid @tableBorderColor; - } -} - -.table-block { - width: 100%; - box-sizing: border-box; -} - -.table-radius { - border-collapse: separate !important; - border-radius: .3em; - thead:first-child { - border-top-left-radius: .3em; - border-top-right-radius: .3em; - tr:first-child { - border-top-left-radius: .3em; - > th:first-child { - border-top-left-radius: .3em; - } - > th:last-child { - border-top-right-radius: .3em; - } - } - } - tbody { - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - tr:last-child { - border-bottom-left-radius: .3em; - border-bottom-right-radius: .3em; - > td:first-child { - border-bottom-left-radius: .3em; - } - > td:last-child { - border-bottom-right-radius: .3em; - } - } - } -}
\ No newline at end of file diff --git a/public/ng/less/ui/var.less b/public/ng/less/ui/var.less deleted file mode 100644 index 98027e54..00000000 --- a/public/ng/less/ui/var.less +++ /dev/null @@ -1,96 +0,0 @@ -@baseFontSize: 12px; - -@baseLineHeight: 24px; - -@baseBgColor: #FAFAFA; -@baseFontColor: #444; - -@linkColor: #428BCA; -@linkHoverColor: #399ADE; -@linkVisitedColor: #0c172f; - -@iptBorderColor: #BBB; -@iptFocusColor: #f2fffc; -@iptFocusBorderColor: #428BCA; -@iptDisabledColor: #F2F2F2; -@iptErrorBorderColor: #b63b2c; -@iptErrorFocusColor: #ffF0F0; -@formHelpFontColor:#999; - -@hrColor: #DDD; - -@inlineCodeColor: #b63b2c; - -@btnBgColor: #888; -@btnFontColor: #FAFAFA; -@btnHoverBgColor: #444; -@btnHoverFontColor: #FFF; - -@btnGreenColor: #65AD4E; -@btnHoverGreenColor: #71BF57; - -@btnBlueColor: #428BCA; -@btnHoverBlueColor: #539CDB; - -@btnRedColor: #D9453D; -@btnHoverRedColor: #FF635A; - -@btnBlackColor: #444; -@btnHoverBlackColor: #383838; - -@btnOrangeColor: #DF7514; -@btnHoverOrangeColor: #df8229; - -@btnGrayColor: #F0F0F0; -@btnGrayHoverColor: #FAFAFA; -@btnGrayBorderColor: #D0D0D0; - -@btnWhiteColor: #FFF; -@btnWhiteHoverColor: #e8e8e8; -@btnWhiteBorderColor: #c6c6c6; - -@lineMenuHoverBgColor: #EAEAEA; -@lineMenuHoverFontColor: #444; - -@menuBorderColor: #BBB; -@dropBorderColor: #BBB; -@menuShadowColor: #666; -@dropShadowColor: #666; -@menuDownBgColor: #FFF; -@dropDownBgColor: #FFF; - -@panelBorderColor: #CCC; -@panelHeaderBgColor: #EEE; -@panelFooterBgColor: #EEE; - -@labelRedColor: #D9453D; -@labelBlueColor: #428BCA; -@labelGreenColor: #65AD4E; -@labelOrangeColor: #DF7514; -@labelBlackColor: #444; -@labelFontColor: #FFF; -@labelGrayColor: #999; - -@breadColor: #444; - -@alertRedColor: #D9453D; -@alertBlueColor: #428BCA; -@alertGreenColor: #65AD4E; -@alertOrangeColor: #DF7514; -@alertBlackColor: #444; -@alertGrayColor: #999; - -@tableBorderColor:#D6D6D6; -@tableCellBorderColor:#EAEAEA; - -@preBgColor:#444; -@preFontColor:#FFF; - -@pagerPageColor:#444; -@pagerPageBgColor:#CCC; -@pagerHoverBgColor:#428BCA; -@pagerHoverColor:#FFF; -@pagerInvalidColor:#AAA; -@pagerInvalidBgColor:#EEE; -@pagerDirectionBgColor:#505050; -@pagerDirectionColor:#FAFAFA; |