瀏覽代碼

Modern Business: Add styling for the Header block

Danny Dudzic 6 年之前
父節點
當前提交
78aeb9f872
共有 4 個文件被更改,包括 157 次插入0 次删除
  1. 57 0
      modern-business/sass/blocks/_site-builder.scss
  2. 48 0
      modern-business/style-rtl.css
  3. 48 0
      modern-business/style.css
  4. 4 0
      modern-business/style.scss

+ 57 - 0
modern-business/sass/blocks/_site-builder.scss

@@ -0,0 +1,57 @@
+/* !Site Builder styles */
+
+.entry .entry-content {
+
+	.site-builder__header {
+		color: $color__text-light;
+		display: flex;
+		flex-direction: column;
+		max-width: 100%;
+		text-align: center;
+	}
+
+	// Site title
+
+	.site-builder__title {
+		color: $color__text-main;
+		font-family: $font__heading;
+		font-weight: 700;
+		font-size: $font__size-md;
+		-webkit-font-smoothing: antialiased;
+		-moz-osx-font-smoothing: grayscale;
+		letter-spacing: 0;
+		line-height: $font__line-height-heading;
+		margin: 0;
+		order: 2;
+
+		a {
+			color: $color__text-main;
+			text-decoration: none;
+
+			&:link,
+			&:visited {
+				color: $color__text-main;
+			}
+
+			&:hover {
+				color: $color__text-hover;
+			}
+		}
+
+		@include media(tablet) {}
+
+		&:not(:empty) + .site-description:not(:empty):before {
+			margin: 0 0.2em;
+		}
+	}
+
+	// Site description
+
+	.site-builder__description {
+		color: $color__text-main;
+		font-size: $font__size-xs;
+		font-weight: 300;
+		margin: 0 0 calc(0.5 * #{$size__spacing-unit});
+		order: 1;
+	}
+}

+ 48 - 0
modern-business/style-rtl.css

@@ -4511,6 +4511,54 @@ body.page .main-navigation {
   color: #FFF;
 }
 
+/* Site Builder */
+/* !Site Builder styles */
+.entry .entry-content .site-builder__header {
+  color: #686868;
+  display: flex;
+  flex-direction: column;
+  max-width: 100%;
+  text-align: center;
+}
+
+.entry .entry-content .site-builder__title {
+  color: #181818;
+  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+  font-weight: 700;
+  font-size: 1.125em;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  letter-spacing: 0;
+  line-height: 1.2;
+  margin: 0;
+  order: 2;
+}
+
+.entry .entry-content .site-builder__title a {
+  color: #181818;
+  text-decoration: none;
+}
+
+.entry .entry-content .site-builder__title a:link, .entry .entry-content .site-builder__title a:visited {
+  color: #181818;
+}
+
+.entry .entry-content .site-builder__title a:hover {
+  color: #4a4a4a;
+}
+
+.entry .entry-content .site-builder__title:not(:empty) + .site-description:not(:empty):before {
+  margin: 0 0.2em;
+}
+
+.entry .entry-content .site-builder__description {
+  color: #181818;
+  font-size: 0.71111em;
+  font-weight: 300;
+  margin: 0 0 calc(0.5 * 1rem);
+  order: 1;
+}
+
 /* Media */
 .page-content .wp-smiley,
 .entry-content .wp-smiley,

+ 48 - 0
modern-business/style.css

@@ -4523,6 +4523,54 @@ body.page .main-navigation {
   color: #FFF;
 }
 
+/* Site Builder */
+/* !Site Builder styles */
+.entry .entry-content .site-builder__header {
+  color: #686868;
+  display: flex;
+  flex-direction: column;
+  max-width: 100%;
+  text-align: center;
+}
+
+.entry .entry-content .site-builder__title {
+  color: #181818;
+  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+  font-weight: 700;
+  font-size: 1.125em;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  letter-spacing: 0;
+  line-height: 1.2;
+  margin: 0;
+  order: 2;
+}
+
+.entry .entry-content .site-builder__title a {
+  color: #181818;
+  text-decoration: none;
+}
+
+.entry .entry-content .site-builder__title a:link, .entry .entry-content .site-builder__title a:visited {
+  color: #181818;
+}
+
+.entry .entry-content .site-builder__title a:hover {
+  color: #4a4a4a;
+}
+
+.entry .entry-content .site-builder__title:not(:empty) + .site-description:not(:empty):before {
+  margin: 0 0.2em;
+}
+
+.entry .entry-content .site-builder__description {
+  color: #181818;
+  font-size: 0.71111em;
+  font-weight: 300;
+  margin: 0 0 calc(0.5 * 1rem);
+  order: 1;
+}
+
 /* Media */
 .page-content .wp-smiley,
 .entry-content .wp-smiley,

+ 4 - 0
modern-business/style.scss

@@ -105,6 +105,10 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
 
 @import "sass/blocks/blocks";
 
+/* Site Builder */
+
+@import "sass/blocks/site-builder";
+
 /* Media */
 
 @import "sass/media/media";