Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
noblogs-wp
Commits
ed983a2c
Commit
ed983a2c
authored
Dec 09, 2018
by
lucha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auto] theme: twentythirteen 2.5
parent
bbd38e6c
Changes
35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
1404 additions
and
586 deletions
+1404
-586
wp-content/themes/twentythirteen/404.php
wp-content/themes/twentythirteen/404.php
+1
-1
wp-content/themes/twentythirteen/archive.php
wp-content/themes/twentythirteen/archive.php
+5
-10
wp-content/themes/twentythirteen/author-bio.php
wp-content/themes/twentythirteen/author-bio.php
+1
-1
wp-content/themes/twentythirteen/author.php
wp-content/themes/twentythirteen/author.php
+1
-4
wp-content/themes/twentythirteen/category.php
wp-content/themes/twentythirteen/category.php
+1
-4
wp-content/themes/twentythirteen/comments.php
wp-content/themes/twentythirteen/comments.php
+14
-19
wp-content/themes/twentythirteen/content-aside.php
wp-content/themes/twentythirteen/content-aside.php
+5
-14
wp-content/themes/twentythirteen/content-audio.php
wp-content/themes/twentythirteen/content-audio.php
+5
-14
wp-content/themes/twentythirteen/content-chat.php
wp-content/themes/twentythirteen/content-chat.php
+5
-14
wp-content/themes/twentythirteen/content-gallery.php
wp-content/themes/twentythirteen/content-gallery.php
+5
-14
wp-content/themes/twentythirteen/content-image.php
wp-content/themes/twentythirteen/content-image.php
+5
-14
wp-content/themes/twentythirteen/content-link.php
wp-content/themes/twentythirteen/content-link.php
+5
-14
wp-content/themes/twentythirteen/content-quote.php
wp-content/themes/twentythirteen/content-quote.php
+5
-14
wp-content/themes/twentythirteen/content-status.php
wp-content/themes/twentythirteen/content-status.php
+5
-14
wp-content/themes/twentythirteen/content-video.php
wp-content/themes/twentythirteen/content-video.php
+5
-14
wp-content/themes/twentythirteen/content.php
wp-content/themes/twentythirteen/content.php
+5
-14
wp-content/themes/twentythirteen/css/blocks.css
wp-content/themes/twentythirteen/css/blocks.css
+526
-0
wp-content/themes/twentythirteen/css/editor-blocks.css
wp-content/themes/twentythirteen/css/editor-blocks.css
+411
-0
wp-content/themes/twentythirteen/footer.php
wp-content/themes/twentythirteen/footer.php
+1
-1
wp-content/themes/twentythirteen/functions.php
wp-content/themes/twentythirteen/functions.php
+290
-252
wp-content/themes/twentythirteen/header.php
wp-content/themes/twentythirteen/header.php
+1
-9
wp-content/themes/twentythirteen/image.php
wp-content/themes/twentythirteen/image.php
+34
-45
wp-content/themes/twentythirteen/inc/back-compat.php
wp-content/themes/twentythirteen/inc/back-compat.php
+3
-5
wp-content/themes/twentythirteen/inc/custom-header.php
wp-content/themes/twentythirteen/inc/custom-header.php
+45
-51
wp-content/themes/twentythirteen/index.php
wp-content/themes/twentythirteen/index.php
+1
-4
wp-content/themes/twentythirteen/js/functions.js
wp-content/themes/twentythirteen/js/functions.js
+1
-3
wp-content/themes/twentythirteen/page.php
wp-content/themes/twentythirteen/page.php
+3
-15
wp-content/themes/twentythirteen/readme.txt
wp-content/themes/twentythirteen/readme.txt
+6
-1
wp-content/themes/twentythirteen/search.php
wp-content/themes/twentythirteen/search.php
+2
-5
wp-content/themes/twentythirteen/sidebar-main.php
wp-content/themes/twentythirteen/sidebar-main.php
+1
-1
wp-content/themes/twentythirteen/sidebar.php
wp-content/themes/twentythirteen/sidebar.php
+1
-1
wp-content/themes/twentythirteen/single.php
wp-content/themes/twentythirteen/single.php
+2
-5
wp-content/themes/twentythirteen/style.css
wp-content/themes/twentythirteen/style.css
+1
-1
wp-content/themes/twentythirteen/tag.php
wp-content/themes/twentythirteen/tag.php
+1
-4
wp-content/themes/twentythirteen/taxonomy-post_format.php
wp-content/themes/twentythirteen/taxonomy-post_format.php
+1
-4
No files found.
wp-content/themes/twentythirteen/404.php
View file @
ed983a2c
...
...
@@ -28,4 +28,4 @@ get_header(); ?>
</div>
<!-- #content -->
</div>
<!-- #primary -->
<?php
get_footer
();
?>
<?php
get_footer
();
?>
\ No newline at end of file
wp-content/themes/twentythirteen/archive.php
View file @
ed983a2c
...
...
@@ -24,10 +24,9 @@ get_header(); ?>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"archive-header"
>
<h1
class=
"archive-title"
>
<?php
if
(
is_day
()
)
:
printf
(
__
(
'Daily Archives: %s'
,
'twentythirteen'
),
get_the_date
()
);
<h1
class=
"archive-title"
>
<?php
if
(
is_day
()
)
:
printf
(
__
(
'Daily Archives: %s'
,
'twentythirteen'
),
get_the_date
()
);
elseif
(
is_month
()
)
:
printf
(
__
(
'Monthly Archives: %s'
,
'twentythirteen'
),
get_the_date
(
_x
(
'F Y'
,
'monthly archives date format'
,
'twentythirteen'
)
)
);
elseif
(
is_year
()
)
:
...
...
@@ -35,15 +34,11 @@ get_header(); ?>
else
:
_e
(
'Archives'
,
'twentythirteen'
);
endif
;
?>
</h1>
?>
</h1>
</header>
<!-- .archive-header -->
<?php
/* The loop */
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
get_template_part
(
'content'
,
get_post_format
()
);
?>
<?php
endwhile
;
?>
...
...
wp-content/themes/twentythirteen/author-bio.php
View file @
ed983a2c
...
...
@@ -31,4 +31,4 @@
</a>
</p>
</div>
<!-- .author-description -->
</div>
<!-- .author-info -->
</div>
<!-- .author-info -->
\ No newline at end of file
wp-content/themes/twentythirteen/author.php
View file @
ed983a2c
...
...
@@ -45,10 +45,7 @@ get_header(); ?>
<?php
endif
;
?>
<?php
/* The loop */
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
get_template_part
(
'content'
,
get_post_format
()
);
?>
<?php
endwhile
;
?>
...
...
wp-content/themes/twentythirteen/category.php
View file @
ed983a2c
...
...
@@ -24,10 +24,7 @@ get_header(); ?>
</header>
<!-- .archive-header -->
<?php
/* The loop */
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
while
(
have_posts
()
)
:
the_post
();
?>
<?php
get_template_part
(
'content'
,
get_post_format
()
);
?>
<?php
endwhile
;
?>
...
...
wp-content/themes/twentythirteen/comments.php
View file @
ed983a2c
...
...
@@ -13,9 +13,8 @@
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if
(
post_password_required
()
)
{
if
(
post_password_required
()
)
return
;
}
?>
<div
id=
"comments"
class=
"comments-area"
>
...
...
@@ -23,42 +22,38 @@ if ( post_password_required() ) {
<?php
if
(
have_comments
()
)
:
?>
<h2
class=
"comments-title"
>
<?php
printf
(
_nx
(
'One thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
get_comments_number
(),
'comments title'
,
'twentythirteen'
),
number_format_i18n
(
get_comments_number
()
),
'<span>'
.
get_the_title
()
.
'</span>'
);
printf
(
_nx
(
'One thought on “%2$s”'
,
'%1$s thoughts on “%2$s”'
,
get_comments_number
(),
'comments title'
,
'twentythirteen'
),
number_format_i18n
(
get_comments_number
()
),
'<span>'
.
get_the_title
()
.
'</span>'
);
?>
</h2>
<ol
class=
"comment-list"
>
<?php
wp_list_comments
(
array
(
'style'
=>
'ol'
,
'short_ping'
=>
true
,
'avatar_size'
=>
74
,
)
);
wp_list_comments
(
array
(
'style'
=>
'ol'
,
'short_ping'
=>
true
,
'avatar_size'
=>
74
,
)
);
?>
</ol>
<!-- .comment-list -->
<?php
// Are there comments to navigate through?
if
(
get_comment_pages_count
()
>
1
&&
get_option
(
'page_comments'
)
)
:
if
(
get_comment_pages_count
()
>
1
&&
get_option
(
'page_comments'
)
)
:
?>
<nav
class=
"navigation comment-navigation"
role=
"navigation"
>
<h1
class=
"screen-reader-text section-heading"
>
<?php
_e
(
'Comment navigation'
,
'twentythirteen'
);
?>
</h1>
<div
class=
"nav-previous"
>
<?php
previous_comments_link
(
__
(
'← Older Comments'
,
'twentythirteen'
)
);
?>
</div>
<div
class=
"nav-next"
>
<?php
next_comments_link
(
__
(
'Newer Comments →'
,
'twentythirteen'
)
);
?>
</div>
<h1
class=
"screen-reader-text section-heading"
>
<?php
_e
(
'Comment navigation'
,
'twentythirteen'
);
?>
</h1>
<div
class=
"nav-previous"
>
<?php
previous_comments_link
(
__
(
'← Older Comments'
,
'twentythirteen'
)
);
?>
</div>
<div
class=
"nav-next"
>
<?php
next_comments_link
(
__
(
'Newer Comments →'
,
'twentythirteen'
)
);
?>
</div>
</nav>
<!-- .comment-navigation -->
<?php
endif
;
// Check for comment navigation ?>
<?
php
if
(
!
comments_open
()
&&
get_comments_number
()
)
:
?>
<p
class=
"no-comments"
>
<?php
_e
(
'Comments are closed.'
,
'twentythirteen'
);
?>
</p>
<p
class=
"no-comments"
>
<?php
_e
(
'Comments are closed.'
,
'twentythirteen'
);
?>
</p>
<?php
endif
;
?>
<?php
endif
;
// have_comments() ?>
<?
php
comment_form
();
?>
</div>
<!-- #comments -->
</div>
<!-- #comments -->
\ No newline at end of file
wp-content/themes/twentythirteen/content-aside.php
View file @
ed983a2c
...
...
@@ -12,21 +12,12 @@
<div
class=
"entry-content"
>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-audio.php
View file @
ed983a2c
...
...
@@ -23,21 +23,12 @@
<
div
class
=
"audio-content"
>
<?
php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .audio-content -->
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-chat.php
View file @
ed983a2c
...
...
@@ -22,21 +22,12 @@
<
div
class
=
"entry-content"
>
<?
php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-gallery.php
View file @
ed983a2c
...
...
@@ -23,21 +23,12 @@
<?
php
if
(
is_single
()
||
!
get_post_gallery
()
)
:
?>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
<?php
else
:
?>
<?php
echo
get_post_gallery
();
?>
...
...
wp-content/themes/twentythirteen/content-image.php
View file @
ed983a2c
...
...
@@ -22,21 +22,12 @@
<
div
class
=
"entry-content"
>
<?
php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-link.php
View file @
ed983a2c
...
...
@@ -23,21 +23,12 @@
<div
class=
"entry-content"
>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-quote.php
View file @
ed983a2c
...
...
@@ -12,21 +12,12 @@
<div
class=
"entry-content"
>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-status.php
View file @
ed983a2c
...
...
@@ -12,21 +12,12 @@
<div
class=
"entry-content"
>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content-video.php
View file @
ed983a2c
...
...
@@ -22,21 +22,12 @@
<
div
class
=
"entry-content"
>
<?
php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
...
...
wp-content/themes/twentythirteen/content.php
View file @
ed983a2c
...
...
@@ -40,21 +40,12 @@
<div
class=
"entry-content"
>
<?php
/* translators: %s: Name of current post */
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
the_content
(
sprintf
(
__
(
'Continue reading %s <span class="meta-nav">→</span>'
,
'twentythirteen'
),
the_title
(
'<span class="screen-reader-text">'
,
'</span>'
,
false
)
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
,
)
);
wp_link_pages
(
array
(
'before'
=>
'<div class="page-links"><span class="page-links-title">'
.
__
(
'Pages:'
,
'twentythirteen'
)
.
'</span>'
,
'after'
=>
'</div>'
,
'link_before'
=>
'<span>'
,
'link_after'
=>
'</span>'
)
);
?>
</div>
<!-- .entry-content -->
<?php
endif
;
?>
...
...
wp-content/themes/twentythirteen/css/blocks.css
0 → 100644
View file @
ed983a2c
/*
Theme Name: Twenty Thirteen
Description: Used to style Gutenberg Blocks.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Block Alignments
2.0 General Block Styles
3.0 Blocks - Common Blocks
4.0 Blocks - Formatting
5.0 Blocks - Layout Elements
6.0 Blocks - Widgets
7.0 Blocks - Colors
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 Block Alignments
--------------------------------------------------------------*/
.content-area
{
overflow-x
:
hidden
;
/* prevents side-scrolling caused by use of vw */
}
[
class
^=
"wp-block-"
]
.alignleft
,
[
class
^=
"wp-block-"
]
.alignleft
{
margin-right
:
20px
;
}
[
class
^=
"wp-block-"
]
.alignright
,
[
class
^=
"wp-block-"
]
.alignright
{
margin-left
:
20px
;
}
.alignfull
,
.alignwide
{
clear
:
both
;
}
body
:not
(
.sidebar
)
.alignwide
{
margin-left
:
calc
(
25%
-
25vw
);
margin-right
:
calc
(
25%
-
25vw
);
width
:
auto
;
max-width
:
1600px
;
}
body
:not
(
.sidebar
)
.alignfull
{
margin-left
:
calc
(
50%
-
50vw
);
margin-right
:
calc
(
50%
-
50vw
);
width
:
auto
;
max-width
:
1600px
;
}
/* Make non image-based blocks a bit narrower, so they don't get cut off. */
body
:not
(
.sidebar
)
.wp-block-columns.alignfull
,
body
:not
(
.sidebar
)
.wp-block-audio.alignfull
,
body
:not
(
.sidebar
)
.wp-block-table.alignfull
,
body
:not
(
.sidebar
)
.wp-block-latest-comments.alignfull
{
margin-left
:
calc
(
50%
-
48vw
);
margin-right
:
calc
(
50%
-
48vw
);
}
@media
(
max-width
:
999px
)
{
body
.sidebar
.alignwide
{
margin-left
:
calc
(
25%
-
25vw
);
margin-right
:
calc
(
25%
-
25vw
);
width
:
auto
;
max-width
:
1600px
;
}
body
.sidebar
.alignfull
{
margin-left
:
calc
(
50%
-
50vw
);
margin-right
:
calc
(
50%
-
50vw
);
width
:
auto
;
max-width
:
1600px
;
}
/* Make non image-based blocks a bit narrower, so they don't get cut off. */
body
.sidebar
.wp-block-columns.alignfull
,
body
.sidebar
.wp-block-audio.alignfull
,
body
.sidebar
.wp-block-table.alignfull
,
body
.sidebar
.wp-block-latest-comments.alignfull
{
margin-left
:
calc
(
50%
-
48vw
);
margin-right
:
calc
(
50%
-
48vw
);
}
}
@media
(
min-width
:
1600px
)
{
/* Make sure the full and wide blocks still stay in Twenty Thirteen's wide container */
body
:not
(
.sidebar
)
.alignfull
{
margin-left
:
calc
(
50%
-
800px
);
margin-right
:
calc
(
50%
-
800px
);
width
:
auto
;
max-width
:
1000%
;
}
body
:not
(
.sidebar
)
.wp-block-columns.alignfull
,
body
:not
(
.sidebar
)
.wp-block-audio.alignfull
,
body
:not
(
.sidebar
)
.wp-block-table.alignfull
,
body
:not
(
.sidebar
)
.wp-block-latest-comments.alignfull
{
margin-left
:
calc
(
50%
-
780px
);
margin-right
:
calc
(
50%
-
780px
);
}
body
:not
(
.sidebar
)
.wp-block-gallery.alignfull
{
margin-left
:
calc
(
50%
-
808px
);
/* Adjust for gallery margins */
margin-right
:
calc
(
50%
-
808px
);
width
:
auto
;
max-width
:
1000%
;
}
/* Make sure the 'wide' alignment doesn't get too wide. */
body
:not
(
.sidebar
)
.alignwide
{
margin-left
:
-230px
;
margin-right
:
-230px
;
}
}
/*--------------------------------------------------------------
2.0 General Block Styles
--------------------------------------------------------------*/
/* Captions */
[
class
^=
"wp-block-"
]
figcaption
,
[
class
^=
"wp-block-"
]
figcaption
.editor-rich-text__tinymce.mce-content-body
{
color
:
#220e10
;
font-size
:
18px
;
font-style
:
italic
;
font-weight
:
300
;
line-height
:
1.5
;
margin
:
0
0
24px
;
}
/*--------------------------------------------------------------
3.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p
.has-drop-cap
:not
(
:focus
)
::first-letter
{
font-size
:
5em
;
}
/* Gallery */
.wp-block-gallery
{
margin-bottom
:
24px
;
}
.wp-block-gallery
figcaption
{
margin-bottom
:
0
;
}
/* Quote */
.wp-block-quote
{
margin
:
24px
40px
;
padding
:
0
;
}
.wp-block-quote
:not
(
.is-large
)
:not
(
.is-style-large
)
{
border-left
:
0
;
border-right
:
0
;
padding-left
:
0
;
padding-right
:
0
;
}
.wp-block-quote.is-large
p
,
.wp-block-quote.is-style-large
p
{
font-size
:
28px
;
}