mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-08 08:04:26 +00:00
float sidebar
This commit is contained in:
parent
aa16e13831
commit
b3741f467b
|
@ -1,4 +1,4 @@
|
||||||
body {
|
body, .side {
|
||||||
background-color: #262626;
|
background-color: #262626;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
|
@ -646,8 +646,10 @@ form.blockpost {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
padding-right: 5px;
|
padding: 0 5px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 0px 0px 0px 4px;
|
||||||
}
|
}
|
||||||
.side img, .md img{
|
.side img, .md img{
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -660,9 +662,6 @@ main {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
@media (min-width: 900px) {
|
@media (min-width: 900px) {
|
||||||
.wide {
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
.wide .side {
|
.wide .side {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -680,14 +679,14 @@ main {
|
||||||
}
|
}
|
||||||
.side {
|
.side {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
float:right;
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
}
|
||||||
main {
|
main {
|
||||||
padding-right: 316px;
|
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
main > .comment {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.side form {
|
.side form {
|
||||||
margin: 0px 0px 5px 0px;
|
margin: 0px 0px 5px 0px;
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
{{- end }}{{ end }}
|
{{- end }}{{ end }}
|
||||||
<form id="sidetoggle" class="link-btn{{ if .HideSidebar }} o{{end}}" method="POST">
|
<form id="sidetoggle" class="link-btn{{ if .HideSidebar }} o{{end}}" method="POST">
|
||||||
<input type="hidden" name="op" value="sidetoggle">
|
<input type="hidden" name="op" value="sidetoggle">
|
||||||
<button>{{ if .HideSidebar }}[+]{{ else }}[-]{{ end }}</button>
|
<button title="Toggle Sidebar">{{ if .HideSidebar }}[+]{{ else }}[-]{{ end }}</button>
|
||||||
</form>
|
</form>
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if and .Site (not .Community) (not .User) }}
|
{{- if and .Site (not .Community) (not .User) }}
|
||||||
{{- if or .Site.SiteView.Site.Banner.IsValid .Site.SiteView.Site.Icon.IsValid }}
|
{{- if (or .Site.SiteView.Site.Banner.IsValid .Site.SiteView.Site.Icon.IsValid) }}
|
||||||
<div class="banner" style="background-image: url({{ banner .Site.SiteView.Site }})"></div>
|
<div class="banner" style="background-image: url({{ banner .Site.SiteView.Site }})"></div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<h1>{{ .Site.SiteView.Site.Name }}</h1>
|
<h1>{{ .Site.SiteView.Site.Name }}</h1>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if .Community }}
|
{{- if .Community }}
|
||||||
{{- if or .Community.CommunityView.Community.Banner.IsValid .Community.CommunityView.Community.Icon.IsValid }}
|
{{- if (or .Community.CommunityView.Community.Banner.IsValid .Community.CommunityView.Community.Icon.IsValid) }}
|
||||||
<div class="banner" style="background-image: url({{ cbanner .Community.CommunityView.Community }})"></div>
|
<div class="banner" style="background-image: url({{ cbanner .Community.CommunityView.Community }})"></div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<h1>{{ if ne .Community.CommunityView.Community.Title ""}}{{ .Community.CommunityView.Community.Title }}{{ else }}{{ .Community.CommunityView.Community.Name }}{{end}}</h1>
|
<h1>{{ if ne .Community.CommunityView.Community.Title ""}}{{ .Community.CommunityView.Community.Title }}{{ else }}{{ .Community.CommunityView.Community.Name }}{{end}}</h1>
|
||||||
|
|
Loading…
Reference in a new issue