Skip to content

Commit

Permalink
Merge pull request #45 from zendesk/asilva-fix-cph
Browse files Browse the repository at this point in the history
Compile CSS and small fixes
  • Loading branch information
augustocravosilva authored Jul 30, 2018
2 parents 31bc10e + 421cb56 commit e7be251
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 28 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Copenhagen",
"author": "Zendesk",
"version": "1.4.0",
"version": "1.4.1",
"api_version": 1,
"default_locale": "en-us",
"settings": [{
Expand Down
35 changes: 25 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,12 @@ ul {
text-decoration: none;
}

.form-field .hc-multiselect-toggle:focus {
outline: none;
border: 1px solid $brand_color;
text-decoration: none;
}

.form-field textarea {
vertical-align: middle;
}
Expand Down Expand Up @@ -480,9 +486,13 @@ ul {
}

.nav-wrapper .icon-menu {
border: 0;
color: $link_color;
cursor: pointer;
display: inline-block;
margin-right: 10px;
color: $link_color;
padding: 0;
width: auto;
}

@media (min-width: 768px) {
Expand All @@ -496,6 +506,11 @@ ul {
margin-right: 0;
}

.nav-wrapper .icon-menu:hover, .nav-wrapper .icon-menu:focus, .nav-wrapper .icon-menu:active {
background-color: transparent;
color: $link_color;
}

/***** User info in header *****/
.user-info {
display: inline-block;
Expand Down Expand Up @@ -561,7 +576,6 @@ ul {
.avatar {
display: inline-block;
position: relative;
margin-right: 10px;
}

.avatar img {
Expand Down Expand Up @@ -680,7 +694,7 @@ ul {
top: 50%;
transform: translateY(-50%);
background-color: #fff;
color: #ddd;
color: #777;
content: "\1F50D";
font-size: 18px;
position: absolute;
Expand Down Expand Up @@ -1157,11 +1171,10 @@ ul {

@media (min-width: 1024px) {
.article {
flex: 1;
flex: 1 0 66%;
max-width: 66%;
min-width: 640px;
padding: 0 30px;
margin: 0 auto;
}
}

Expand Down Expand Up @@ -1193,6 +1206,10 @@ ul {
}
}

.article-avatar {
margin-right: 10px;
}

.article-author {
margin-bottom: 10px;
}
Expand All @@ -1204,10 +1221,6 @@ ul {
}
}

.article-title.no-author {
margin-bottom: 0.067em;
}

.article-title .icon-lock::before {
content: "\1F512";
font-size: 20px;
Expand Down Expand Up @@ -2212,7 +2225,7 @@ ul {
}

.status-label-open {
background-color: #e03b30;
background-color: #cc3340;
}

.status-label-closed {
Expand Down Expand Up @@ -2341,6 +2354,7 @@ ul {
.post-meta {
display: inline-block;
flex: 1;
margin-left: 10px;
vertical-align: middle;
}

Expand Down Expand Up @@ -3453,6 +3467,7 @@ ul {
color: $brand_text_color;
line-height: normal;
padding: 8px 20px;
outline-color: $brand_color;
}

.profile-header .description {
Expand Down
5 changes: 4 additions & 1 deletion styles/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
margin-top: 20px;
}

&-avatar {
margin-right: 10px;
}

&-author {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -68,7 +72,6 @@

&-meta {
display: inline-block;
margin-left: 10px;
vertical-align: middle;
}

Expand Down
32 changes: 16 additions & 16 deletions templates/article_page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
</nav>

<div class="article-container" id="article-container">
{{#if settings.show_articles_in_section}}
<section class="article-sidebar">
<section class="article-sidebar">
{{#if settings.show_articles_in_section}}
<section class="section-articles collapsible-sidebar">
<h3 class="collapsible-sidebar-title sidenav-title">{{t 'articles_in_section'}}</h3>
<ul>
{{#each section.articles}}
<li>
<a href="{{url}}" class="sidenav-item {{#is id ../article.id}}current-article{{/is}}">{{title}}</a>
</li>
{{/each}}
</ul>
{{#if section.more_articles}}
<a href="{{section.url}}" class="article-sidebar-item">{{t 'see_more'}}</a>
{{/if}}
<h3 class="collapsible-sidebar-title sidenav-title">{{t 'articles_in_section'}}</h3>
<ul>
{{#each section.articles}}
<li>
<a href="{{url}}" class="sidenav-item {{#is id ../article.id}}current-article{{/is}}">{{title}}</a>
</li>
{{/each}}
</ul>
{{#if section.more_articles}}
<a href="{{section.url}}" class="article-sidebar-item">{{t 'see_more'}}</a>
{{/if}}
</section>
</section>
{{/if}}
{{/if}}
</section>

<article class="article">
<header class="article-header">
<h1 title="{{article.title}}" class="article-title {{#unless settings.show_article_author}}no-author{{/unless}}">
<h1 title="{{article.title}}" class="article-title">
{{article.title}}
{{#if article.internal}}
<span class="icon-lock" title="{{t 'internal'}}"></span>
Expand Down

0 comments on commit e7be251

Please sign in to comment.