Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ######################################### MAIN BODY #################################
- //p-body
- .node + .node{
- border-top: 1px solid @xf-borderColor;
- }
- .p-body{
- position: relative;
- &:before{
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 50px;
- background-color: #f5f5f5;
- z-index: -1;
- }
- .p-body-inner{
- overflow: hidden;
- background: #f5f5f5;
- .p-body-header{
- margin: 0 0 10px;
- .p-title{
- h1{
- font-size: 20px;
- color: #000000;
- font-weight: 600;
- display: flex;
- align-items: center;
- .label{
- color: #f5f5f5 !important;
- font-size: 11px;
- line-height: 20px;
- border-radius: 2px;
- padding: 0 5px;
- }
- }
- }
- .p-description{
- ul{
- li+li+li{
- display: none;
- }
- }
- }
- }
- .p-body-main{
- .p-body-content{
- transition: all 600ms;
- &.edit-padd{
- transition: all 600ms;
- padding-right: 0;
- display: inline-block;
- }
- .p-body-pageContent{
- .block{
- .block-container{
- border: 1px solid @xf-borderColor;
- .block-body{
- .node{
- .node-body{
- .node-icon{
- padding: 9px 0 9px 10px;
- i{
- &:before{
- text-shadow: none;
- }
- }
- }
- .node-main{
- padding: 8px 10px;
- .node-title{
- font-size: 13px;
- line-height: 13px;
- a{
- font-weight: 600;
- line-height: 13px;
- &:hover{
- text-decoration: none;
- }
- }
- }
- .node-meta{
- font-size: 11px;
- margin-top: 4px;
- display: flex;
- flex-flow: row wrap;
- .node-statsMeta{
- display: block;
- dl{
- display: inline-block;
- width: auto;
- margin-right: 10px;
- dt{
- display: inline-block;
- color: @xf-textColor;
- font-size: 11px;
- }
- dd{
- display: inline-block;
- font-size: 11px;
- color: @xf-textColor;
- }
- }
- }
- }
- }
- .node-stats{
- display: none;
- }
- .node-subNodesFlat{
- .node-subNodeFlatList{
- li{
- margin: 0;
- a{
- font-size: 11px;
- color: @xf-paletteColor3;
- padding: 7px 15px;
- display: inline-block;
- border-radius: 2px;
- position: relative;
- font-weight: 600;
- border: 1px solid transparent;
- &:hover{
- text-decoration: none;
- color: @xf-BrvColor1;
- background: @xf-paletteAccent2;
- &:before{
- color: @xf-BrvColor1 !important;
- }
- }
- &.subNodeLink{
- &.subNodeLink--unread{
- &:before{
- color: @xf-paletteColor3;
- }
- }
- &:before{
- content: '\f111';
- font-family: "Font Awesome 5 Pro";
- text-shadow: none;
- font-size: 5px;
- font-weight: 900;
- position: absolute;
- left: 6px;
- top: 52%;
- transform: translateY(-50%);
- color: @xf-paletteColor3;
- }
- }
- }
- }
- }
- }
- .node-extra{
- .node-extra-row{
- .node-extra-title{
- font-weight: 600;
- padding-left: 25px;
- position: relative;
- &:before{
- content: '';
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/thread.png");
- width: 18px;
- height: 18px;
- }
- }
- li{
- font-size: 11px;
- }
- .node-extra-user{
- a{
- color: @xf-paletteColor3;
- font-size: 11px;
- }
- }
- }
- .node-extra-placeholder{
- font-size: 11px;
- }
- }
- }
- &.node--forum{
- &.node--read{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/node-read.png");
- width: 30px;
- height: 25px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- &.node--unread{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/node-unread.png");
- width: 30px;
- height: 25px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- }
- &.node--link{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/link.png");
- width: 26px;
- height: 30px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- &.node--page{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/page.png");
- width: 26px;
- height: 30px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- &.node--category{
- &.node--read{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/node-read.png");
- width: 30px;
- height: 25px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- .node--unread{
- .node-icon{
- i{
- &:before{
- content: '';
- display: inline-block;
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/node-unread.png");
- width: 30px;
- height: 25px;
- background-repeat: no-repeat;
- background-position: center;
- }
- }
- }
- }
- }
- }
- }
- .block-filterBar{
- .filterBar{
- .filterBar-menuTrigger{
- font-size: 14px;
- color: @xf-BrvColor1;
- &:hover{
- background-color: transparent;
- text-decoration: underline;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .p-body-sidebar{
- transition: all 500ms;
- &.hide{
- transition: all 500ms;
- visibility: hidden;
- transform: translateX(265px);
- }
- .contentRow-faderContent{
- white-space: nowrap;
- word-wrap: normal;
- text-overflow: ellipsis;
- }
- .avatar{
- width: 45px;
- height: 45px;
- border-radius: 50%;
- &.structItem-secondaryIcon{
- width: 20px;
- height: 20px;
- font-size: 12px;
- span{
- line-height: 20px;
- }
- }
- span{
- font-size: 20px;
- line-height: 45px;
- }
- }
- .comment-avatar{
- .avatar{
- width: 24px;
- height: 24px;
- span{
- line-height: 24px;
- }
- }
- }
- .block{
- &.member-visitor{
- display: inline-block;
- width: 100%;
- .content-inner{
- text-align: left;
- padding: 10px 15px;
- border-radius: 3px;
- background-image: url("https://i.imgur.com/YZWVk48.png");
- background-position: center;
- background-size: cover;
- background-repeat: no-repeat;
- position: relative;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- align-items: center;
- .contentRow-figure{
- .member-avarta{
- position: relative;
- &:before{
- content: '';
- width: 78px;
- height: 78px;
- position: absolute;
- left: -3px;
- top: -3px;
- border-radius: 100%;
- background-color: rgba(255,255,255,.9);
- }
- .avatar{
- width: 72px;
- height: 72px;
- position: relative;
- span{
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- }
- }
- }
- .contentRow-main{
- border-radius: 0 0 3px 3px;
- .member-role{
- .contentRow-header{
- margin-bottom: 5px;
- a{
- font-size: 14px;
- font-weight: 600;
- color: @xf-BrvColor1;
- }
- }
- .contentRow-lesser{
- color: @xf-BrvColor1;
- font-size: 12px;
- display: none;
- }
- }
- .contentRow-minor{
- font-size: 12px;
- color: @xf-BrvColor1;
- dl{
- margin: 3px 0;
- dt{
- color: @xf-BrvColor1;
- }
- }
- }
- }
- }
- }
- &[data-widget-definition="new_profile_posts"]{
- .block-body{
- padding: 10px 0;
- .block-row{
- .contentRow{
- .contentRow-main{
- >a{
- font-size: 13px;
- font-weight: 600;
- margin-bottom: 5px;
- display: inline-block;
- }
- .contentRow-minor{
- font-size: 12px;
- a{
- font-size: 11px;
- }
- }
- }
- }
- }
- }
- }
- .block-container{
- border: 1px solid @xf-borderColor;
- .block-minorHeader{
- padding: 10px 10px 10px 40px;
- position: relative;
- text-transform: capitalize;
- position: relative;
- .block-control{
- position: absolute;
- right: 5px;
- top: 50%;
- transform: translateY(-50%);
- font-size: 18px;
- cursor: pointer;
- width: 20px;
- height: 21px;
- text-align: center;
- line-height: 20px;
- }
- &:before{
- position: absolute;
- left: 10px;
- top: 50%;
- transform: translateY(-50%);
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/grid.png");
- width: 16px;
- height: 16px;
- }
- &.block-staff{
- &:before{
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/ico-staff.png");
- width: 20px;
- height: 20px;
- }
- }
- &.block-member{
- &:before{
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/ico-member.png");
- width: 21px;
- height: 21px;
- }
- }
- &.block-sidebarbirthday{
- &:before{
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/bday.png");
- width: 24px;
- height: 24px;
- }
- }
- &.block-forum-static{
- &:before{
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/ico-chart.png");
- width: 20px;
- height: 20px;
- }
- }
- &.block-share{
- &:before{
- background-image: url("{{ base_url() }}styles/brivium/potassium/extra/ico-global.png");
- width: 20px;
- height: 20px;
- }
- }
- }
- .block-footer{
- padding: 10px;
- }
- .block-body{
- font-size: 12px;
- background: @xf-BrvColor1;
- &.staff-content{
- padding: 10px 0;
- li{
- &:last-child{
- .contentRow{
- border-bottom: none;
- padding-bottom: 0;
- }
- }
- .contentRow{
- border-bottom: 1px solid @xf-borderColor;
- padding-bottom: 13px;
- .contentRow-main{
- .username{
- font-size: 13px;
- margin-top: 5px;
- display: inline-block;
- }
- .contentRow-minor{
- font-size: 12px;
- margin-top: 3px;
- }
- }
- }
- }
- }
- &.member-content{
- padding: 10px 0;
- }
- &.post-content{
- padding: 10px 0;
- li{
- .contentRow{
- .contentRow-main{
- >a{
- font-size: 13px;
- font-weight: 600;
- margin-bottom: 5px;
- display: inline-block;
- }
- .contentRow-minor{
- font-size: 12px;
- a{
- font-size: 11px;
- }
- }
- }
- }
- }
- }
- &.forum-static-content{
- padding: 10px;
- }
- dl{
- margin: 4px 0;
- color: #a7a7aa;
- dt{
- color: inherit;
- }
- dd{
- color: @xf-linkColor;
- }
- }
- }
- }
- }
- }
- }
- }
- //end
- .p-body
- {
- display: flex;
- align-items: stretch;
- flex-grow: 1;
- min-height: 1px; // IE11 workaround - related to #139187
- }
- .p-body-inner
- {
- display: flex;
- flex-direction: column;
- width: 100%;
- .m-pageWidth();
- .m-pageInset();
- .m-clearFix();
- padding-top: 15px;
- padding-left: @xf-elementSpacer;
- padding-right: @xf-elementSpacer;
- padding-bottom: @xf-elementSpacer;
- }
- .p-body-header
- {
- margin-bottom: ((@xf-elementSpacer) / 2);
- }
- .p-body-main
- {
- display: table;
- table-layout: fixed;
- width: 100%;
- margin-bottom: auto;
- min-height: 1px; // IE11 workaround - related to #139187
- }
- .p-body-content
- {
- display: table-cell;
- vertical-align: top;
- .p-body-main--withSideNav &
- {
- padding-left: @xf-sidebarSpacer;
- }
- .p-body-main--withSidebar &
- {
- padding-right: @xf-sidebarSpacer;
- }
- }
- .p-body-pageContent
- {
- > .tabs--standalone:first-child
- {
- margin-bottom: (@xf-elementSpacer) / 2;
- }
- }
- .p-body-sideNav
- {
- display: table-cell;
- vertical-align: top;
- width: @xf-sidebarWidth;
- }
- .p-body-sideNavTrigger
- {
- display: none;
- }
- .p-body-sidebar
- {
- display: table-cell;
- vertical-align: top;
- width: @xf-sidebarWidth;
- .contentRow-figure .avatar--m
- {
- // make these avatars a bit smaller in the sidebar so the content has more space
- .m-avatarSize(@avatar-m * 2 / 3);
- }
- }
- .p-body-content,
- .p-body-pageContent,
- .p-body-sideNav,
- .p-body-sideNavContent,
- .p-body-sidebar
- {
- > :first-child
- {
- margin-top: 0;
- }
- > :last-child
- {
- margin-bottom: 0;
- }
- }
- @media (max-width: @xf-responsiveWide)
- {
- .p-body-main,
- .p-body-content
- {
- display: block;
- }
- .p-body-sideNav
- {
- display: block;
- width: auto;
- }
- .p-body-sideNavTrigger
- {
- margin-bottom: ((@xf-elementSpacer) / 2);
- text-align: center;
- .button:before
- {
- .m-faBase();
- font-size: 120%;
- vertical-align: middle;
- display: inline-block;
- margin: -4px 6px -4px 0;
- .m-faContent(@fa-var-bars, .88em);
- }
- .has-js &
- {
- display: block;
- }
- }
- .has-js .p-body-sideNavInner:not(.offCanvasMenu)
- {
- display: none;
- .m-transitionFadeDown();
- }
- .has-no-js .p-body-sideNavInner
- {
- margin-bottom: @xf-elementSpacer;
- }
- .p-body-sidebar
- {
- display: flex;
- flex-wrap: wrap;
- align-items: stretch;
- margin: (@xf-elementSpacer) -((@xf-pageEdgeSpacer) / 2) -(@xf-elementSpacer);
- width: auto;
- > *
- {
- margin: 0 ((@xf-pageEdgeSpacer) / 2) @xf-elementSpacer;
- min-width: @xf-sidebarWidth;
- flex: 1 1 @xf-sidebarWidth;
- &:last-child
- {
- margin-bottom: @xf-elementSpacer;
- }
- }
- // add an invisible block to ensure that the last row has the correct widths
- &:after
- {
- display: block;
- content: '';
- height: 0;
- margin: 0 ((@xf-pageEdgeSpacer) / 2);
- min-width: @xf-sidebarWidth;
- flex: 1 1 @xf-sidebarWidth;
- }
- .block-container
- {
- display: flex;
- flex-direction: column;
- height: 100%;
- .block-footer
- {
- margin-top: auto;
- }
- }
- }
- .p-body-main--withSideNav,
- .p-body-main--withSidebar
- {
- .p-body-content { padding: 0; }
- }
- }
- @media (max-width: @xf-responsiveEdgeSpacerRemoval)
- {
- .p-body-sideNavContent
- {
- // this is likely to contain blocks that overflow the container so account for that
- margin: 0 -@xf-pageEdgeSpacer;
- padding: 0 @xf-pageEdgeSpacer;
- .offCanvasMenu &
- {
- margin: 0;
- padding: 0;
- }
- }
- .p-body-sidebar
- {
- display: block;
- margin-left: 0;
- margin-right: 0;
- > *
- {
- margin-left: 0;
- margin-right: 0;
- min-width: 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment