aboutsummaryrefslogtreecommitdiff
path: root/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-07 13:06:14 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-07 13:06:14 +0100
commit7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 (patch)
treef7453d7dd5cbaaab246e23810b02d3edf1e451be /srcs/wordpress/wp-content/themes/twentynineteen/sass/elements
parentc59bdcf77c50cbe89b4a93782cdd6d9e7532080e (diff)
downloadft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.gz
ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.bz2
ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.zip
Added wordpress
Diffstat (limited to 'srcs/wordpress/wp-content/themes/twentynineteen/sass/elements')
-rw-r--r--srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_elements.scss92
-rw-r--r--srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_lists.scss33
-rw-r--r--srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_tables.scss13
3 files changed, 138 insertions, 0 deletions
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_elements.scss b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_elements.scss
new file mode 100644
index 0000000..b1fad05
--- /dev/null
+++ b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_elements.scss
@@ -0,0 +1,92 @@
+html {
+ box-sizing: border-box;
+}
+
+::-moz-selection {
+ background-color: $color__background_selection;
+}
+
+::selection {
+ background-color: $color__background_selection;
+}
+
+*,
+*:before,
+*:after {
+ box-sizing: inherit;
+}
+
+body {
+ background-color: $color__background-body;
+}
+
+a {
+ @include link-transition;
+ color: $color__link;
+}
+
+a:visited {
+
+}
+
+a:hover,
+a:active {
+ color: $color__link-hover;
+ outline: 0;
+ text-decoration: none;
+}
+
+a:focus {
+ outline: thin;
+ outline-style: dotted;
+ text-decoration: underline;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ clear: both;
+ margin: $size__spacing-unit 0;
+}
+
+h1:not(.site-title),
+h2 {
+ @include post-section-dash;
+}
+
+hr {
+ background-color: $color__text-light;
+ border: 0;
+ height: 2px;
+}
+
+@import "lists";
+
+img {
+ height: auto;
+ max-width: 100%;
+ position: relative;
+}
+
+figure {
+ margin: 0;
+}
+
+blockquote {
+ border-left: 2px solid $color__link;
+ margin-left: 0;
+ padding: 0 0 0 $size__spacing-unit;
+
+ > p {
+ margin: 0 0 $size__spacing-unit;
+ }
+
+ cite {
+ color: $color__text-light;
+ }
+}
+
+@import "tables";
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_lists.scss b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_lists.scss
new file mode 100644
index 0000000..1db7633
--- /dev/null
+++ b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_lists.scss
@@ -0,0 +1,33 @@
+ul,
+ol {
+ padding-left: ( 1 * $size__spacing-unit );
+}
+
+ul {
+ list-style: disc;
+
+ ul {
+ list-style-type: circle;
+ }
+}
+
+ol {
+ list-style: decimal;
+}
+
+li {
+ line-height: $font__line-height-body;
+}
+
+li > ul,
+li > ol {
+ padding-left: ( 2 * $size__spacing-unit );
+}
+
+dt {
+ font-weight: bold;
+}
+
+dd {
+ margin: 0 $size__spacing-unit $size__spacing-unit;
+}
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_tables.scss b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_tables.scss
new file mode 100644
index 0000000..0f653a5
--- /dev/null
+++ b/srcs/wordpress/wp-content/themes/twentynineteen/sass/elements/_tables.scss
@@ -0,0 +1,13 @@
+table {
+ margin: 0 0 $size__spacing-unit;
+ border-collapse: collapse;
+ width: 100%;
+ @include font-family( $font__heading );
+
+ td,
+ th {
+ padding: 0.5em;
+ border: 1px solid $color__text-light;
+ word-break: break-all;
+ }
+}