Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
margin: 40px 60px 0 300px;
}

.komponent-code {
background-color: #333;
color: #fff;
margin: 10px 0;
padding: 10px;
}
.komponent-footer .komponent-code {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolas-brousse Why do you add .komponent-footer?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.komponent-footer .komponent-code {
.komponent-container .komponent-code {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a mistake, too mush copy and paste ...

background-color: #333;
color: #fff;
margin: 10px 0;
padding: 10px;
}

/* stylelint-enable */
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
position: fixed;
right: 30px;
text-align: center;
}

&,
a {
color: #999;
}
.komponent-footer,
.komponent-footer a {
color: #999;
}

a {
text-decoration: none;
.komponent-footer a {
text-decoration: none;
}

&:hover,
&:focus {
color: #0038ea;
}
}
.komponent-footer a:hover,
.komponent-footer a:focus {
color: #0038ea;
}

/* stylelint-enable */
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<div class="komponent-header">
<div class="logo">Styleguide</div>
<div class="logo">
<%= link_to "Styleguide", styleguide_index_path %>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
padding: 0 20px;
}

.komponent-header .logo a {
color: white;
text-decoration: none;
}

/* stylelint-enable */
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./style.css";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to name this file _defaults.css

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

import "components/komponent/container/komponent_container";
import "components/komponent/footer/komponent_footer";
import "components/komponent/header/komponent_header";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@
position: absolute;
top: 60px;
width: 240px;
}

&-title {
color: #0038ea;
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
margin: 0 0 20px;
text-transform: uppercase;
}
.komponent-sidebar-title {
color: #0038ea;
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
margin: 0 0 20px;
text-transform: uppercase;
}

&-items {
font-size: 14px;
letter-spacing: 0;
line-height: 1.25;
list-style: none;
margin: 0 0 30px;
padding: 0;
}
.komponent-sidebar-items {
font-size: 14px;
letter-spacing: 0;
line-height: 1.25;
list-style: none;
margin: 0 0 30px;
padding: 0;
}

&-item {
margin: 0 0 5px;
}
.komponent-sidebar-item {
margin: 0 0 5px;
}

a {
color: #333;
text-decoration: none;
}
.komponent-sidebar a {
color: #333;
text-decoration: none;
}

/* stylelint-enable */
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
margin: 0;
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import 'components';
import 'components/komponent';
import "components";
import "components/komponent";