Skip to content

Commit

Permalink
Default theme: Tweak font and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Nov 16, 2022
1 parent 1cc2130 commit 46da8d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Removed

# 4.4.0 (16 November 2022)
- Fixxes and improvements for the `default` theme

# 4.3.0 (15 November 2022)
### Added
- New theme (beta)! Try it out by setting `theme` in your config to `elements`. ([#559](https://github.com/knuckleswtf/scribe/pull/559))
Expand Down
8 changes: 4 additions & 4 deletions resources/css/theme-default.style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

html {
font-family: 'PT Sans', sans-serif;
font-family: 'Open Sans', sans-serif;
font-size: 1.2em;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
Expand Down Expand Up @@ -223,7 +223,7 @@ th {

body,
html {
font-family: 'PT Sans', Helvetica Neue, Helvetica, Arial, Microsoft Yahei, 微软雅黑, STXihei, 华文细黑, sans-serif;
font-family: 'Open Sans', Helvetica Neue, Helvetica, Arial, Microsoft Yahei, 微软雅黑, STXihei, 华文细黑, sans-serif;
font-size: 16px;
}

Expand All @@ -233,7 +233,7 @@ html {
.content h4,
.content h5,
.content h6 {
font-family: 'PT Sans', Helvetica Neue, Helvetica, Arial, Microsoft Yahei, 微软雅黑, STXihei, 华文细黑, sans-serif;
font-family: 'Open Sans', Helvetica Neue, Helvetica, Arial, Microsoft Yahei, 微软雅黑, STXihei, 华文细黑, sans-serif;
}

.content h1,
Expand Down Expand Up @@ -264,7 +264,7 @@ html {
.content aside.success:before,
.content aside.warning:before,
.tocify-wrapper>.search:before {
font-family: 'PT Sans', sans-serif;
font-family: 'Open Sans', sans-serif;
speak: none;
font-style: normal;
font-variant: normal;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/themes/default/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{!! $metadata['title'] !!}</title>

<link href="https://fonts.googleapis.com/css?family=PT+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">

<link rel="stylesheet" href="{!! $assetPathPrefix !!}css/theme-default.style.css" media="screen">
<link rel="stylesheet" href="{!! $assetPathPrefix !!}css/theme-default.print.css" media="print">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/default/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@

<ul class="toc-footer" id="toc-footer">
@if($metadata['postman_collection_url'])
<li><a href="{!! $metadata['postman_collection_url'] !!}">View Postman collection</a></li>
<li style="padding-bottom: 5px;"><a href="{!! $metadata['postman_collection_url'] !!}">View Postman collection</a></li>
@endif
@if($metadata['openapi_spec_url'])
<li><a href="{!! $metadata['openapi_spec_url'] !!}">View OpenAPI spec</a></li>
<li style="padding-bottom: 5px;"><a href="{!! $metadata['openapi_spec_url'] !!}">View OpenAPI spec</a></li>
@endif
<li><a href="http://github.com/knuckleswtf/scribe">Documentation powered by Scribe ✍</a></li>
</ul>
Expand Down

0 comments on commit 46da8d6

Please sign in to comment.