Kaynağa Gözat

Rockfield: Reorganise CSS

Thomas Guillot 6 yıl önce
ebeveyn
işleme
93069aff8c
3 değiştirilmiş dosya ile 238 ekleme ve 234 silme
  1. 84 82
      rockfield/sass/_extra-child-theme.scss
  2. 77 76
      rockfield/style-rtl.css
  3. 77 76
      rockfield/style.css

+ 84 - 82
rockfield/sass/_extra-child-theme.scss

@@ -25,29 +25,7 @@ a {
 	}
 }
 
-// Reset Layout
-.site-info,
-.main-navigation,
-.entry-header,
-.page-title,
-.author-title,
-.comments-title,
-.comment-reply-title {
-	text-align: center;
-}
-
-.main-navigation > div {
-	text-align: left;
-}
-
-.comment-reply-title {
-	display: inherit;
-}
-
-.comment .comment-reply-title {
-	display: flex;
-}
-
+// Reset Navigations
 .main-navigation > div > ul,
 .social-navigation > div > ul,
 .pagination .nav-links {
@@ -210,6 +188,12 @@ a {
 /**
  * Content Area
  */
+@include media(mobile) {
+	#main {
+		padding-top: #{2 * map-deep-get($config-global, "spacing", "vertical")};
+	}
+}
+
 @include media(tablet) {
 	#primary {
 		margin-top: 44px; // JS Fallback
@@ -246,6 +230,82 @@ a {
 	}
 }
 
+// Sticky Post
+.sticky-post,
+.a8c-posts-list .a8c-posts-list-item__featured span {
+	background: #{map-deep-get($config-global, "color", "secondary", "default")};
+	color: #{map-deep-get($config-global, "color", "background", "default")};
+	font-family: #{map-deep-get($config-global, "font", "family", "ui")};
+	text-transform: uppercase;
+}
+
+/**
+ * Comments
+ */
+.comment-list {
+	> li:first-child {
+		border-top-width: 2px;
+	}
+}
+
+.comment-body {
+	content: "";
+  display: table;
+  table-layout: fixed;
+  width: 100%;
+}
+
+.comment-meta .comment-metadata {
+	font-family: #{map-deep-get($config-global, "font", "family", "ui")};
+	font-size: #{map-deep-get($config-global, "font", "size", "sm")};
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+.reply {
+	font-size: #{map-deep-get($config-global, "font", "size", "sm")};
+}
+
+.comment-reply-title {
+	display: inherit;
+}
+
+.comment .comment-reply-title {
+	display: flex;
+}
+
+@include media(tablet) {
+	.comment-meta {
+		border-right: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
+		display: block;
+		float: left;
+		padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
+		width: 20%;
+
+		.comment-author {
+			display: block;
+			width: 100%;
+
+			.avatar,
+			.fn {
+		    display: block;
+				margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
+			}
+		}
+	}
+
+	.comment-content, .reply {
+		float: right;
+		width: 75%;
+		width: calc(80% - #{map-deep-get($config-global, "spacing", "horizontal")} - 1px);
+	}
+}
+
+.comment-navigation a {
+	font-size: inherit;
+	font-weight: bold;
+}
+
 /**
  * Widgets
  */
@@ -410,71 +470,13 @@ a {
  */
 .site-info {
 	font-weight: bold;
+	text-align: center;
 
 	a {
 		font-weight: inherit;
 	}
 }
 
-/**
- * Comments
- */
-.comment-list {
-	> li:first-child {
-		border-top-width: 2px;
-	}
-}
-
-.comment-body {
-	content: "";
-  display: table;
-  table-layout: fixed;
-  width: 100%;
-}
-
-.comment-meta .comment-metadata {
-	font-family: #{map-deep-get($config-global, "font", "family", "ui")};
-	font-size: #{map-deep-get($config-global, "font", "size", "sm")};
-	font-weight: bold;
-	text-transform: uppercase;
-}
-
-.reply {
-	font-size: #{map-deep-get($config-global, "font", "size", "sm")};
-}
-
-@include media(tablet) {
-	.comment-meta {
-		border-right: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
-		display: block;
-		float: left;
-		padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
-		width: 20%;
-
-		.comment-author {
-			display: block;
-			width: 100%;
-
-			.avatar,
-			.fn {
-		    display: block;
-				margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
-			}
-		}
-	}
-
-	.comment-content, .reply {
-		float: right;
-		width: 75%;
-		width: calc(80% - #{map-deep-get($config-global, "spacing", "horizontal")} - 1px);
-	}
-}
-
-.comment-navigation a {
-	font-size: inherit;
-	font-weight: bold;
-}
-
 /**
  * Buttons
  */

+ 77 - 76
rockfield/style-rtl.css

@@ -3398,28 +3398,6 @@ p:not(.site-title) a:hover {
 	text-decoration: none;
 }
 
-.site-info,
-.main-navigation,
-.entry-header,
-.page-title,
-.author-title,
-.comments-title,
-.comment-reply-title {
-	text-align: center;
-}
-
-.main-navigation > div {
-	text-align: right;
-}
-
-.comment-reply-title {
-	display: inherit;
-}
-
-.comment .comment-reply-title {
-	display: flex;
-}
-
 .main-navigation > div > ul,
 .social-navigation > div > ul,
 .pagination .nav-links {
@@ -3577,6 +3555,12 @@ p:not(.site-title) a:hover {
 /**
  * Content Area
  */
+@media only screen and (min-width: 560px) {
+	#main {
+		padding-top: 64px;
+	}
+}
+
 @media only screen and (min-width: 640px) {
 	#primary {
 		margin-top: 44px;
@@ -3610,6 +3594,76 @@ p:not(.site-title) a:hover {
 	display: none;
 }
 
+.sticky-post,
+.a8c-posts-list .a8c-posts-list-item__featured span {
+	background: #208751;
+	color: white;
+	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+	text-transform: uppercase;
+}
+
+/**
+ * Comments
+ */
+.comment-list > li:first-child {
+	border-top-width: 2px;
+}
+
+.comment-body {
+	content: "";
+	display: table;
+	table-layout: fixed;
+	width: 100%;
+}
+
+.comment-meta .comment-metadata {
+	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+	font-size: 0.83333rem;
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+.reply {
+	font-size: 0.83333rem;
+}
+
+.comment-reply-title {
+	display: inherit;
+}
+
+.comment .comment-reply-title {
+	display: flex;
+}
+
+@media only screen and (min-width: 640px) {
+	.comment-meta {
+		border-left: 1px solid #E8E9EA;
+		display: block;
+		float: right;
+		padding-left: 16px;
+		width: 20%;
+	}
+	.comment-meta .comment-author {
+		display: block;
+		width: 100%;
+	}
+	.comment-meta .comment-author .avatar,
+	.comment-meta .comment-author .fn {
+		display: block;
+		margin-bottom: 8px;
+	}
+	.comment-content, .reply {
+		float: left;
+		width: 75%;
+		width: calc(80% - 16px - 1px);
+	}
+}
+
+.comment-navigation a {
+	font-size: inherit;
+	font-weight: bold;
+}
+
 /**
  * Widgets
  */
@@ -3779,66 +3833,13 @@ p:not(.site-title) a:hover {
  */
 .site-info {
 	font-weight: bold;
+	text-align: center;
 }
 
 .site-info a {
 	font-weight: inherit;
 }
 
-/**
- * Comments
- */
-.comment-list > li:first-child {
-	border-top-width: 2px;
-}
-
-.comment-body {
-	content: "";
-	display: table;
-	table-layout: fixed;
-	width: 100%;
-}
-
-.comment-meta .comment-metadata {
-	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 0.83333rem;
-	font-weight: bold;
-	text-transform: uppercase;
-}
-
-.reply {
-	font-size: 0.83333rem;
-}
-
-@media only screen and (min-width: 640px) {
-	.comment-meta {
-		border-left: 1px solid #E8E9EA;
-		display: block;
-		float: right;
-		padding-left: 16px;
-		width: 20%;
-	}
-	.comment-meta .comment-author {
-		display: block;
-		width: 100%;
-	}
-	.comment-meta .comment-author .avatar,
-	.comment-meta .comment-author .fn {
-		display: block;
-		margin-bottom: 8px;
-	}
-	.comment-content, .reply {
-		float: left;
-		width: 75%;
-		width: calc(80% - 16px - 1px);
-	}
-}
-
-.comment-navigation a {
-	font-size: inherit;
-	font-weight: bold;
-}
-
 /**
  * Buttons
  */

+ 77 - 76
rockfield/style.css

@@ -3403,28 +3403,6 @@ p:not(.site-title) a:hover {
 	text-decoration: none;
 }
 
-.site-info,
-.main-navigation,
-.entry-header,
-.page-title,
-.author-title,
-.comments-title,
-.comment-reply-title {
-	text-align: center;
-}
-
-.main-navigation > div {
-	text-align: left;
-}
-
-.comment-reply-title {
-	display: inherit;
-}
-
-.comment .comment-reply-title {
-	display: flex;
-}
-
 .main-navigation > div > ul,
 .social-navigation > div > ul,
 .pagination .nav-links {
@@ -3582,6 +3560,12 @@ p:not(.site-title) a:hover {
 /**
  * Content Area
  */
+@media only screen and (min-width: 560px) {
+	#main {
+		padding-top: 64px;
+	}
+}
+
 @media only screen and (min-width: 640px) {
 	#primary {
 		margin-top: 44px;
@@ -3615,6 +3599,76 @@ p:not(.site-title) a:hover {
 	display: none;
 }
 
+.sticky-post,
+.a8c-posts-list .a8c-posts-list-item__featured span {
+	background: #208751;
+	color: white;
+	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+	text-transform: uppercase;
+}
+
+/**
+ * Comments
+ */
+.comment-list > li:first-child {
+	border-top-width: 2px;
+}
+
+.comment-body {
+	content: "";
+	display: table;
+	table-layout: fixed;
+	width: 100%;
+}
+
+.comment-meta .comment-metadata {
+	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+	font-size: 0.83333rem;
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+.reply {
+	font-size: 0.83333rem;
+}
+
+.comment-reply-title {
+	display: inherit;
+}
+
+.comment .comment-reply-title {
+	display: flex;
+}
+
+@media only screen and (min-width: 640px) {
+	.comment-meta {
+		border-right: 1px solid #E8E9EA;
+		display: block;
+		float: left;
+		padding-right: 16px;
+		width: 20%;
+	}
+	.comment-meta .comment-author {
+		display: block;
+		width: 100%;
+	}
+	.comment-meta .comment-author .avatar,
+	.comment-meta .comment-author .fn {
+		display: block;
+		margin-bottom: 8px;
+	}
+	.comment-content, .reply {
+		float: right;
+		width: 75%;
+		width: calc(80% - 16px - 1px);
+	}
+}
+
+.comment-navigation a {
+	font-size: inherit;
+	font-weight: bold;
+}
+
 /**
  * Widgets
  */
@@ -3784,66 +3838,13 @@ p:not(.site-title) a:hover {
  */
 .site-info {
 	font-weight: bold;
+	text-align: center;
 }
 
 .site-info a {
 	font-weight: inherit;
 }
 
-/**
- * Comments
- */
-.comment-list > li:first-child {
-	border-top-width: 2px;
-}
-
-.comment-body {
-	content: "";
-	display: table;
-	table-layout: fixed;
-	width: 100%;
-}
-
-.comment-meta .comment-metadata {
-	font-family: Raleway, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-	font-size: 0.83333rem;
-	font-weight: bold;
-	text-transform: uppercase;
-}
-
-.reply {
-	font-size: 0.83333rem;
-}
-
-@media only screen and (min-width: 640px) {
-	.comment-meta {
-		border-right: 1px solid #E8E9EA;
-		display: block;
-		float: left;
-		padding-right: 16px;
-		width: 20%;
-	}
-	.comment-meta .comment-author {
-		display: block;
-		width: 100%;
-	}
-	.comment-meta .comment-author .avatar,
-	.comment-meta .comment-author .fn {
-		display: block;
-		margin-bottom: 8px;
-	}
-	.comment-content, .reply {
-		float: right;
-		width: 75%;
-		width: calc(80% - 16px - 1px);
-	}
-}
-
-.comment-navigation a {
-	font-size: inherit;
-	font-weight: bold;
-}
-
 /**
  * Buttons
  */