123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- .l_main {
- width: 100%;
- padding-right: @side-width + @gap;
- float: left;
- .post-list {
- position: relative;
- margin: 0px auto;
- columns: 400px;
- column-gap: 0;
- margin: -@gap /2;
- @media(max-width: @on-phone) {
- margin: 0;
- }
- }
- #comments {
- position: relative;
- padding-top: 1.5*@gap;
- background: white;
- @media (max-width: @on-phone) {
- padding-top: @gap;
- }
- }
- .post-wrapper{
- // for firefox
- column-break-inside: avoid;
- break-inside: avoid-column;
- }
- .mobile-post() {
- .post {
- padding: 1.5 * @gap @gap;
- .meta {
- margin-bottom: @gap;
- .title {
- font-size: @article-title-size-sm;
- }
- }
- .full-width {
- margin-left: -@gap;
- margin-right: -@gap;
- padding-left: @gap;
- padding-right: @gap;
- width:~"calc(100% + 2 * @{gap})"
- }
- .auto-padding {
- padding-left: @gap;
- padding-right: @gap;
- }
- img,
- .highlight {
- margin-left: -@gap;
- margin-right: -@gap;
- width:~"calc(100% + 2 * @{gap})";
- max-width: none;
- }
- }
- }
- .post-wrapper {
- padding: @gap /2;
- .mobile-post();
- .tags {
- margin-bottom: -1.5*@gap;
- }
- @media(max-width:@on-phone) {
- padding-left: 0;
- padding-right: 0;
- }
- }
- .post {
- position: relative;
- margin: 0 auto;
- padding: 2 * @gap 1.5*@gap;
- //max-width: 768px;
- background: white;
- &:extend(.z-depth-1);
- .meta {
- margin-bottom: 2*@gap;
- .title {
- left: 0;
- font-size: @article-title-size;
- @media(max-width: @on-phone) {
- font-size: @article-title-size-sm;
- }
- &:before {
- content: none
- }
- a {
- display: inline;
- line-height: 1.25;
- font-weight: normal;
- color: lighten(@black, 2%);
- &:hover {
- color: @accent-color;
- }
- }
- }
- time,
- .cats {
- display: inline-block;
- font-size: .75rem;
- }
- .cats {
- &:before {
- display: inline-block;
- margin: 0 5px;
- @border-width: 8px;
- content: '';
- border-top: @border-width/2 solid transparent;
- border-bottom: @border-width/2 solid transparent;
- border-left: @border-width solid @secondary-color;
- }
- a {
- font-weight: bold;
- color: @secondary-color;
- }
- }
- time {
- color: lighten(@grey-color, 20%);
- }
- }
- .full-width,.highlight{
- margin-left: -1.5* @gap;
- margin-right: -1.5* @gap;
- padding-left: 1.5* @gap;
- padding-right: 1.5* @gap;
- width:~"calc(100% + 3 * @{gap})";
- }
- img {
- max-width: 100%;
- }
- }
- @media(max-width:@on-phone) {
- padding-right: 0;
- .mobile-post();
- }
- }
|