summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorCherrg <michael@gnehr.de>2019-07-08 10:20:22 +0200
committerLauris BH <lauris@nix.lv>2019-07-08 11:20:22 +0300
commite5b247ea8e77689bb14e5f304ada36f9326f0904 (patch)
tree90426d29833e24eaa5c04ff2b09bd06f5175049f /public
parentd7211c5b5d90a3e6bc9c1550e2c0bf7d0d9ad66f (diff)
downloadgitea-e5b247ea8e77689bb14e5f304ada36f9326f0904.tar.gz
gitea-e5b247ea8e77689bb14e5f304ada36f9326f0904.zip
wiki - page revisions list (#7369)
fix #7 * add wiki page revision list * mobile improvements * css improvements for long usernames * split renderWikiPage into 3 functions Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css5
-rw-r--r--public/less/_markdown.less32
2 files changed, 37 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css
index 9039409f14..b948766b41 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -290,6 +290,11 @@ footer .ui.left,footer .ui.right{line-height:40px}
.markdown:not(code) .csv-data tr{border-top:0}
.markdown:not(code) .csv-data th{font-weight:700;background:#f8f8f8;border-top:0}
.markdown:not(code) .ui.list .list,.markdown:not(code) ol.ui.list ol,.markdown:not(code) ul.ui.list ul{padding-left:2em}
+.repository.wiki.revisions .ui.container>.ui.stackable.grid{flex-direction:row-reverse}
+.repository.wiki.revisions .ui.container>.ui.stackable.grid>.header{margin-top:0}
+.repository.wiki.revisions .ui.container>.ui.stackable.grid>.header .sub.header{padding-left:52px}
+.file-revisions-btn{display:block;float:left;margin-bottom:2px!important;padding:11px!important;margin-right:10px!important}
+.file-revisions-btn i{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.home .logo{max-width:220px}
@media only screen and (max-width:767px){.home .hero h1{font-size:3.5em}
.home .hero h2{font-size:2em}
diff --git a/public/less/_markdown.less b/public/less/_markdown.less
index e971248f6f..1dcc2caf94 100644
--- a/public/less/_markdown.less
+++ b/public/less/_markdown.less
@@ -494,3 +494,35 @@
padding-left: 2em;
}
}
+
+.repository.wiki.revisions {
+ .ui.container > .ui.stackable.grid {
+ -ms-flex-direction: row-reverse;
+ flex-direction: row-reverse;
+
+ > .header {
+ margin-top: 0;
+
+ .sub.header {
+ padding-left: 52px;
+ }
+ }
+ }
+}
+
+.file-revisions-btn {
+ display: block;
+ float: left;
+ margin-bottom: 2px !important;
+ padding: 11px !important;
+ margin-right: 10px !important;
+
+ i {
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ }
+}