Skip to content

Commit

Permalink
Updated default "zeta" style.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed May 11, 2024
1 parent 9ad415d commit 6759568
Show file tree
Hide file tree
Showing 14 changed files with 321 additions and 315 deletions.
53 changes: 12 additions & 41 deletions _extensions/s2_blog/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.year-block {
width: 197px;
display: inline-block;
vertical-align: top;
margin: 0 2em 1em 0;
Expand All @@ -8,10 +7,6 @@
#content .year-block td {
border: 0 none;
}
.year-block > tbody > tr > td {
vertical-align: top;
padding: 0 1em;
}

table.cal {
margin: 3em 0 0 0;
Expand All @@ -21,53 +16,31 @@ table.cal {
#content .cal td,
#content .cal th {
width: 28px;
font-size: 0.888em;
line-height: 1.5;
text-align: center;
}
.cal td {
padding: 0;
text-align: right;
color: #000;
color: var(--txt-color, #000);
}
.cal td.sun {
color: #f33;
.cal td.sun,
.cal th.sun {
color: var(--sunday-color, #f33);
}
.cal td a {
display: block;
background: #eed;
background: var(--highlight-color, #eed);
}
.cal td:before { /* hack for text-ident from right */
content: "\0000a0";
float:right;
width: 6px;
}

.cal th {
font-weight: normal;
font-size: 0.786em;
line-height: 1.909;
}
#content .cal th {
text-align: left;
}
.cal .nav th {
font-size: 100%;
font-weight: bold;
line-height: 1.5;
}
.cal th.sun {
color: #f00;
}

.cal tr td.cur,
.cal tr td.cur a{
background: #60c0cf;
.cal tr td.cur a {
font-weight: bold;
color: #fff;
}

.cal tr td a:hover { background: #ffa;}
.cal tr td.cur a:hover { background: #70cfdf;}

table.cal_mon {
border-collapse: collapse;
width: 196px;
Expand All @@ -82,14 +55,12 @@ a.nav_mon:hover { background: #ffa; }
margin: 0;
}
.post.time {
margin: 0 0 1.75em;
margin: 0 0 0.75em;
}
.post.foot {
color: #666;
font-size: 0.857em;
line-height: 1.75;
border-top: 1px solid #ddd;
margin: 1.75em 0 5.167em;
color: var(--txt-minor-color, #666);
font-size: 0.888em;
margin: 0 0 4em;
}

.post .see_also {
Expand Down
37 changes: 17 additions & 20 deletions _extensions/s2_blog/templates/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title><!-- s2_head_title --></title>
<!-- s2_meta -->
<!-- s2_styles -->
Expand All @@ -15,28 +15,25 @@
<!-- s2_search_field -->
<div id="header"><!-- s2_site_title --></div>

<div id="center">
<div id="container">
<div id="content">
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_comments -->
<!-- s2_comment_form -->
</div>
<div id="menu">
<!-- s2_blog_calendar -->
<!-- s2_blog_navigation -->
</div>
<div class="clearing"></div>
</div>
<!-- s2_debug -->
</div>
<div id="container">
<div id="content">
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_comments -->
<!-- s2_comment_form -->
</div>
<div id="menu">
<!-- s2_blog_calendar -->
<!-- s2_blog_navigation -->
</div>
</div>
<!-- s2_debug -->

<div id="footer">
<p id="queries"><!-- s2_querytime --></p>
<p id="copyright"><!-- s2_copyright --></p>
</div>
<p id="queries"><!-- s2_querytime --></p>
</div>
<!-- s2_scripts -->
</body>
</html>
37 changes: 17 additions & 20 deletions _extensions/s2_blog/templates/blog_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title><!-- s2_head_title --></title>
<!-- s2_meta -->
<!-- s2_styles -->
Expand All @@ -15,28 +15,25 @@
<!-- s2_search_field -->
<div id="header"><!-- s2_site_title --></div>

<div id="center">
<div id="container">
<div id="content">
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_comment_form -->
</div>
<div id="menu">
<!-- s2_blog_calendar -->
<!-- s2_blog_navigation -->
<!-- s2_blog_last_comments -->
</div>
<div class="clearing"></div>
</div>
<!-- s2_debug -->
</div>
<div id="container">
<div id="content">
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_comment_form -->
</div>
<div id="menu">
<!-- s2_blog_calendar -->
<!-- s2_blog_navigation -->
<!-- s2_blog_last_comments -->
</div>
</div>
<!-- s2_debug -->

<div id="footer">
<p id="queries"><!-- s2_querytime --></p>
<p id="copyright"><!-- s2_copyright --></p>
</div>
<p id="queries"><!-- s2_querytime --></p>
</div>
<!-- s2_scripts -->
</body>
</html>
36 changes: 11 additions & 25 deletions _extensions/s2_search/style.css
Original file line number Diff line number Diff line change
@@ -1,58 +1,44 @@
.search-form {
width: auto;
padding: 1px;
background: #eee;
margin: 1em 0;
zoom: 1;
display: flex;
}
.search-form .search-button,
.search-form .search-input {
height: 1.5em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0 0.25em;
line-height: 1.0em;
line-height: 1em;
}
.search-form .search-button {
padding-left: 0.5em;
padding-right: 0.5em;
}

.search-form .button {
float: right;
padding: 0.5em 0.5em 0 0;
}

.search-form .wrap {
overflow: hidden;
padding: 0.5em;
zoom: 1;
}
.search-form .search-input {
width: 100%;
width: 200px;
margin-right: 0.5em; /* gap */
flex: 1 1 auto;
}

p.search-result {
margin: 0 0 1.25em;
}
.search-result a.title {
font-size: 1.2em;
font-size: 1.222em;
font-weight: bold;
line-height: 1.3;
}
.search-result a.url {
color: green;
text-decoration: none;
}
.search-result small.stuff {
color: #999;
color: var(--txt-lightweight-color, #999);
}
.search-result .paging {
margin: 2em 0;
}

.s2_search_highlight {
background: #fff8d3;
background: var(--highlight-color, #fff8d3);
}

#content div.search-result-img-preview {
Expand All @@ -61,7 +47,7 @@ p.search-result {
.search-result-img-preview .preview-link {
text-decoration: none;
border: none;
background: repeating-conic-gradient(#eee 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
background: repeating-conic-gradient(rgba(0, 0, 0, 0.07) 0% 25%, rgba(255, 255, 255, 0.07) 0% 50%) 0 0 / 20px 20px;
display: inline-block;
margin: 0 5px 5px 0;
}
Expand All @@ -77,7 +63,7 @@ p.search-result {
}
.video-thumbnail:after {
content: '';
background: #fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiI+PHBhdGggZD0iTTE2IDExIDggMTdWNXoiLz48L3N2Zz4=");
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M16 11 8 17V5z'/%3E%3C/svg%3E");
position: absolute;
left: 50%;
top: 50%;
Expand Down
10 changes: 2 additions & 8 deletions _extensions/s2_search/views/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@

?>
<form class="search-form" method="get" action="<?php echo S2_URL_PREFIX ? S2_PATH.S2_URL_PREFIX : S2_PATH.'/search'; ?>">
<div class="button">
<input class="search-button" type="submit" name="search" value="<?php echo Lang::get('Search button', 's2_search'); ?>" />
</div>
<div class="wrap">
<input class="search-input" id="s2_search_input_ext" type="text" name="q" value="<?php echo s2_htmlencode($query); ?>" />
</div>
<input class="search-input" id="s2_search_input_ext" type="text" name="q" value="<?php echo s2_htmlencode($query); ?>" />
<input class="search-button" type="submit" name="search" value="<?php echo Lang::get('Search button', 's2_search'); ?>" />
</form>
<?php

Expand All @@ -33,5 +29,3 @@
echo '<p class="s2_search_not_found">' . Lang::get('Not found', 's2_search') . '</p>';
}
}

?>
35 changes: 16 additions & 19 deletions _include/templates/back_forward.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<title><!-- s2_head_title --></title>
<!-- s2_meta -->
<!-- s2_styles -->
Expand All @@ -15,28 +15,25 @@
<!-- s2_search_field -->
<div id="header"><!-- s2_site_title --></div>

<div id="center">
<div id="container">
<div id="content">
<!-- s2_author -->
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_subarticles -->
<!-- s2_back_forward -->
<!-- s2_tag_list -->
<!-- s2_comments -->
<!-- s2_comment_form -->
</div>
<div class="clearing"></div>
</div>
<div id="container">
<div id="content">
<!-- s2_author -->
<!-- s2_title -->
<!-- s2_date -->
<!-- s2_text -->
<!-- s2_subarticles -->
<!-- s2_back_forward -->
<!-- s2_tag_list -->
<!-- s2_comments -->
<!-- s2_comment_form -->
</div>
</div>
<!-- s2_debug -->
</div>

<div id="footer">
<p id="queries"><!-- s2_querytime --></p>
<p id="copyright"><!-- s2_copyright --></p>
</div>
<p id="queries"><!-- s2_querytime --></p>
</div>
<!-- s2_scripts -->
</body>
</html>
Loading

0 comments on commit 6759568

Please sign in to comment.