Skip to content

Commit 5a68e21

Browse files
committed
Split styles in different files
1 parent a5ae795 commit 5a68e21

5 files changed

Lines changed: 230 additions & 226 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
a:focus, .button:focus {
2+
outline: none;
3+
}
4+
5+
th.cell-label {
6+
white-space: nowrap;
7+
}
8+
9+
.app-container {
10+
@extend .container;
11+
12+
display: block;
13+
max-width: initial;
14+
padding: 0;
15+
}
16+
17+
.flash-notice {
18+
@extend .blue, .lighten-4;
19+
}
20+
21+
.main-content {
22+
border-radius: 0;
23+
padding-bottom: 0;
24+
}
25+
26+
.main-content__body {
27+
overflow-x: scroll;
28+
padding-bottom: $navbar-height;
29+
}
30+
31+
.main-content__header {
32+
min-height: 6.2rem;
33+
34+
>h1 {
35+
margin-top: auto;
36+
margin-bottom: auto;
37+
}
38+
}
39+
40+
.navigation {
41+
padding: 0 0.7rem;
42+
43+
>.navigation__link {
44+
@extend .white-text;
45+
border-radius: 0;
46+
display: inline-block;
47+
margin: 0;
48+
padding: 1rem;
49+
&:hover {
50+
background: darken($primary-color, 5%);
51+
}
52+
}
53+
>.navigation__link--active {
54+
background: darken($primary-color, 15%);
55+
font-weight: normal;
56+
}
57+
}
58+
59+
@media #{$small-and-down} {
60+
.app-container {
61+
width: 100%;
62+
}
63+
}
64+
65+
@media #{$medium-and-up} {
66+
.navigation >.navigation__link {
67+
height: $navbar-height;
68+
line-height: $navbar-height;
69+
padding: 0 1rem;
70+
}
71+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
.button, [type="submit"] {
2+
@extend .btn;
3+
}
4+
5+
.field-unit--boolean [type="checkbox"] {
6+
opacity: initial;
7+
pointer-events: initial;
8+
position: initial;
9+
}
10+
11+
.field-unit__label >label {
12+
display: inline-block;
13+
font-weight: normal;
14+
vertical-align: super;
15+
}
16+
17+
.field-unit--belongs-to input.select-dropdown, .field-unit--has-many input.select-dropdown {
18+
display: none;
19+
}
20+
21+
.field-unit--nested {
22+
@extend .card;
23+
24+
margin: 0 auto;
25+
}
26+
27+
.field-unit--text textarea {
28+
min-height: 10rem;
29+
}
30+
31+
.timepicker {
32+
.btn {
33+
@extend .btn-flat;
34+
}
35+
36+
.glyphicon {
37+
margin-bottom: 0;
38+
margin-top: -12px;
39+
40+
&:hover {
41+
background: transparent;
42+
}
43+
}
44+
}
45+
46+
#error_explanation {
47+
@extend .card;
48+
49+
margin-bottom: 3rem;
50+
51+
h2 {
52+
@extend h6;
53+
@extend .center-align;
54+
55+
background: lighten($primary-color, 33%);
56+
margin: 0;
57+
padding: 1rem 0 0.6rem 0;
58+
}
59+
60+
ul {
61+
@extend .collection;
62+
63+
margin-top: 0;
64+
}
65+
66+
li {
67+
@extend .collection-item;
68+
69+
color: $error-color;
70+
}
71+
}
72+
73+
@media #{$small-and-down} {
74+
.field-unit {
75+
display: block;
76+
}
77+
78+
.field-unit__label, .field-unit__field {
79+
float: initial;
80+
margin-left: 0;
81+
max-width: initial;
82+
text-align: left;
83+
width: 100%;
84+
}
85+
86+
.field-unit__label >label {
87+
vertical-align: initial;
88+
}
89+
90+
.main-content__header {
91+
display: block;
92+
text-align: center;
93+
94+
h1 {
95+
margin-bottom: 1rem;
96+
}
97+
98+
.button {
99+
transform: scale(0.8);
100+
}
101+
}
102+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
nav.pagination {
2+
margin-top: 3rem;
3+
}
4+
5+
#search {
6+
padding: 0.5rem 2.5rem 0 2.5rem;
7+
width: calc(100% - 5rem);
8+
}
9+
10+
@media #{$small-and-down} {
11+
#search {
12+
height: 2rem;
13+
padding-top: 0;
14+
}
15+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.attribute-data {
2+
clear: none;
3+
display: inline-block;
4+
float: none;
5+
margin-left: 1rem;
6+
vertical-align: top;
7+
}
8+
9+
.attribute-label {
10+
clear: none;
11+
display: inline-block;
12+
float: none;
13+
}
14+
15+
@media #{$small-and-down} {
16+
.attribute-data {
17+
display: block;
18+
margin-left: 0;
19+
width: 100%;
20+
}
21+
22+
.attribute-label {
23+
border-bottom: 1px solid #eee;
24+
display: block;
25+
text-align: left;
26+
width: 100%;
27+
}
28+
29+
table {
30+
td:first-child, th:first-child {
31+
padding-left: 0;
32+
}
33+
td:last-child, th:last-child {
34+
padding-right: 0;
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)