mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 17:32:41 +01:00
e384e945d0
Summary: Fixes T10901. Allows blogs to have headers. I've built this in a basic way, any file, max-height is 240. Should bleed into top crumbs, so any spacing you want you should add to the file itself. Might have to see how users break this. Test Plan: Set a blog header, see blog header, remove blog header, see no blog header. Check mobile, tablet, desktop break points. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T10901 Differential Revision: https://secure.phabricator.com/D16141
262 lines
4.2 KiB
CSS
262 lines
4.2 KiB
CSS
/**
|
|
* @provides phame-css
|
|
*/
|
|
|
|
.phame-blog-description {
|
|
max-width: 800px;
|
|
margin: 32px auto;
|
|
position: relative;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.phame-blog-description-name {
|
|
font-weight: bold;
|
|
font-size: {$biggerfontsize};
|
|
margin: 0 0 4px 50px;
|
|
}
|
|
|
|
.phame-blog-description-content {
|
|
margin-left: 50px;
|
|
}
|
|
|
|
.phame-blog-description-image {
|
|
display: inline-block;
|
|
background-repeat: no-repeat;
|
|
background-size: 100%;
|
|
box-shadow: inset 0 0 0 1px rgba({$alphagrey},.15);
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 3px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-blog-description + .phui-document-view-pro-box {
|
|
border-top: 1px solid rgba({$alphablue}, 0.20);
|
|
}
|
|
|
|
.phame-home-view .phui-document-view.phui-document-view-pro {
|
|
margin: 0;
|
|
}
|
|
|
|
.phame-home-view .phui-side-column {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.phame-home-view {
|
|
background-color: #fff;
|
|
border-bottom: 1px solid rgba({$alphagrey},.1);
|
|
}
|
|
|
|
.phame-home-view .phame-home-container {
|
|
max-width: 980px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.phame-home-view .phui-document-container {
|
|
border: none;
|
|
}
|
|
|
|
.phame-blog-list {
|
|
margin: 96px 16px 16px 16px;
|
|
}
|
|
|
|
.phame-blog-list + .phame-blog-list {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.device .phame-blog-list {
|
|
margin: 16px;
|
|
}
|
|
|
|
.device-phone .phame-blog-list {
|
|
margin: 16px 8px;
|
|
}
|
|
|
|
.phame-blog-list-header {
|
|
font-size: {$biggerfontsize};
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.phame-blog-list-header a {
|
|
color: {$darkbluetext};
|
|
}
|
|
|
|
.phame-blog-list-item {
|
|
display: block;
|
|
color: {$darkgreytext};
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.phame-blog-list-title:hover {
|
|
color: {$violet};
|
|
text-decoration: none;
|
|
}
|
|
|
|
.phame-blog-list-image {
|
|
display: inline-block;
|
|
background-repeat: no-repeat;
|
|
background-size: 100%;
|
|
box-shadow: inset 0 0 0 1px rgba({$alphagrey},.15);
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 3px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-blog-list-title {
|
|
margin-left: 30px;
|
|
margin-top: 2px;
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
color: {$bluetext};
|
|
width: 190px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.phame-blog-list-new-post {
|
|
display: block;
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 0;
|
|
}
|
|
|
|
.phame-blog-list-new-post:hover {
|
|
color: {$violet};
|
|
text-decoration: none;
|
|
}
|
|
|
|
.phame-blog-list-new-post:hover .phame-blog-list-icon {
|
|
color: {$violet};
|
|
}
|
|
|
|
.phame-blog-list-icon {
|
|
display: block;
|
|
height: 14px;
|
|
width: 14px;
|
|
color: {$lightbluetext};
|
|
}
|
|
|
|
.phame-next-post-view {
|
|
margin: 0 auto;
|
|
padding: 12px 0;
|
|
font-family: 'Aleo', {$fontfamily};
|
|
}
|
|
|
|
.phame-next {
|
|
width: 360px;
|
|
float: right;
|
|
text-align: right;
|
|
color: #000;
|
|
position: relative;
|
|
}
|
|
|
|
.phame-next-arrow,
|
|
.phame-previous-arrow {
|
|
border: 1px solid {$lightblueborder};
|
|
border-radius: 36px;
|
|
height: 36px;
|
|
width: 36px;
|
|
text-align: center;
|
|
}
|
|
|
|
.phame-next-arrow .phui-icon-view,
|
|
.phame-previous-arrow .phui-icon-view {
|
|
height: 36px;
|
|
width: 34px;
|
|
font-size: 24px;
|
|
line-height: 35px;
|
|
color: {$lightblueborder};
|
|
}
|
|
|
|
.phame-previous-arrow {
|
|
float: left;
|
|
}
|
|
|
|
.phame-next-arrow {
|
|
float: right;
|
|
}
|
|
|
|
.phame-previous {
|
|
width: 360px;
|
|
float: left;
|
|
text-align: left;
|
|
color: #000;
|
|
position: relative;
|
|
}
|
|
|
|
.device .phame-previous,
|
|
.device .phame-next {
|
|
width: 100px;
|
|
}
|
|
|
|
.device .phame-previous .phame-previous-title,
|
|
.device .phame-next .phame-next-title {
|
|
display: none;
|
|
}
|
|
|
|
.phame-next:hover,
|
|
.phame-previous:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.phame-next:hover .phame-next-arrow,
|
|
.phame-previous:hover .phame-previous-arrow {
|
|
border-color: {$indigo};
|
|
}
|
|
|
|
.phame-next:hover .phui-icon-view,
|
|
.phame-previous:hover .phui-icon-view {
|
|
color: {$indigo};
|
|
}
|
|
|
|
.phame-next-header,
|
|
.phame-previous-header {
|
|
font-weight: bold;
|
|
font-size: {$biggerfontsize};
|
|
}
|
|
|
|
.phame-next-header {
|
|
top: 2px;
|
|
right: 50px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-next-title {
|
|
top: 22px;
|
|
right: 50px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-previous-header {
|
|
top: 2px;
|
|
left: 50px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-previous-title {
|
|
top: 22px;
|
|
left: 50px;
|
|
position: absolute;
|
|
}
|
|
|
|
.phame-404 {
|
|
margin: 48px auto;
|
|
padding: 12px 24px;
|
|
border-radius: 6px;
|
|
min-width: 240px;
|
|
width: 50%;
|
|
color: {$darkgreytext};
|
|
background: {$greybackground};
|
|
}
|
|
|
|
/* Hero Image */
|
|
.phame-header-hero {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.phame-header-image {
|
|
max-height: 240px;
|
|
margin: 0 auto;
|
|
}
|