oslo-red-cross-bootstrap-3-theme 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_base.scss ADDED
@@ -0,0 +1,158 @@
1
+ @font-face {
2
+ font-family: 'myriad-pro-bold';
3
+ src: url('/fonts/myriad-pro-bold.ttf');
4
+ }
5
+
6
+ @font-face {
7
+ font-family: 'myriad-pro-regular';
8
+ src: url('/fonts/myriad-pro-regular.ttf');
9
+ }
10
+
11
+ [x-cloak] {
12
+ display: none;
13
+ }
14
+
15
+ input, textarea {
16
+ border-width: 1px !important;
17
+ }
18
+
19
+ textarea {
20
+ resize: vertical;
21
+ }
22
+
23
+ input:active, input:focus,
24
+ textarea:active, textarea:focus {
25
+ border: 1px solid $brand-info !important;
26
+ }
27
+
28
+ hr {
29
+ margin: 15px 0;
30
+ }
31
+
32
+ .badge {
33
+ margin-top: -3px;
34
+ margin-bottom: 3px;
35
+ }
36
+
37
+ .badge-default {
38
+ background-color: $gray;
39
+ }
40
+
41
+ .label {
42
+ display: inline-block;
43
+ position: relative;
44
+ top: -1px;
45
+ }
46
+
47
+ .labels {
48
+ line-height: 1.4em !important;
49
+ }
50
+
51
+ .link-muted {
52
+ color: $gray !important;
53
+ text-decoration: underline !important;
54
+ }
55
+
56
+ .decoration-none {
57
+ text-decoration: none !important;
58
+ }
59
+
60
+ .help-block {
61
+ color: $text-color;
62
+ }
63
+
64
+ .help-block-inline {
65
+ @extend .help-block;
66
+ display: inline;
67
+ }
68
+
69
+ .breadcrumb {
70
+ background: none;
71
+ margin-bottom: 15px;
72
+ }
73
+
74
+ .opacity-50 {
75
+ opacity: 0.5 !important;
76
+ }
77
+
78
+ details summary {
79
+ font-weight: bold;
80
+ list-style: none;
81
+ cursor: pointer;
82
+ }
83
+
84
+ summary::-webkit-details-marker {
85
+ display: none
86
+ }
87
+
88
+ summary::after {
89
+ content: '►';
90
+ }
91
+
92
+ details[open] summary:after {
93
+ content: '▼';
94
+ }
95
+
96
+ .btn, .form-control {
97
+ border-width: 1px !important;
98
+ }
99
+
100
+ .inline-block {
101
+ display: inline-block;
102
+ }
103
+
104
+ .alert > a {
105
+ color: #fff !important;
106
+ text-decoration: underline;
107
+ }
108
+
109
+ .alert > a:hover {
110
+ color: #fff !important;
111
+ text-decoration: none;
112
+ }
113
+
114
+ .nowrap {
115
+ white-space: nowrap;
116
+ }
117
+
118
+ .lists-compressed ul {
119
+ padding-left: 15px !important;
120
+ }
121
+
122
+ h1 > .label {
123
+ margin-left: 0.5em;
124
+ }
125
+
126
+ .collapsable.in,
127
+ .collapsable.collapsing {
128
+ display: block !important;
129
+ }
130
+
131
+ @media screen and (min-width: 992px) {
132
+ .collapsable {
133
+ display: block !important;
134
+ visibility: visible !important;
135
+ height: auto !important;
136
+ }
137
+ }
138
+
139
+ @media (max-width: $screen-sm-min) {
140
+ .container {
141
+ margin-right: 0 !important;
142
+ margin-left: 0 !important;
143
+ }
144
+ }
145
+
146
+ @media screen and (max-width: $screen-sm-min) and (-webkit-min-device-pixel-ratio: 0) {
147
+ select,
148
+ textarea,
149
+ input {
150
+ font-size: 16px !important;
151
+ }
152
+ }
153
+
154
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
155
+ input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control {
156
+ line-height: 21px !important;
157
+ }
158
+ }
@@ -0,0 +1,123 @@
1
+ /*
2
+ Include this after bootstrap.css. Add class of
3
+ vert-offset-top-value or vert-offset-bottom-value
4
+ to your Bootstrap 3 default rows to prevent row content
5
+ from touching the row content above or below.
6
+ */
7
+
8
+ /* Vertical Offset Bottom */
9
+ .vert-offset-top-12 {
10
+ margin-top: 180px !important;
11
+ }
12
+ .vert-offset-top-11 {
13
+ margin-top: 165px !important;
14
+ }
15
+ .vert-offset-top-10 {
16
+ margin-top: 150px !important;
17
+ }
18
+ .vert-offset-top-9 {
19
+ margin-top: 135px !important;
20
+ }
21
+ .vert-offset-top-8 {
22
+ margin-top: 120px !important;
23
+ }
24
+ .vert-offset-top-7 {
25
+ margin-top: 70px !important;
26
+ }
27
+ .vert-offset-top-6 {
28
+ margin-top: 60px !important;
29
+ }
30
+ .vert-offset-top-5 {
31
+ margin-top: 50px !important;
32
+ }
33
+ .vert-offset-top-4 {
34
+ margin-top: 40px !important;
35
+ }
36
+ .vert-offset-top-3 {
37
+ margin-top: 30px !important;
38
+ }
39
+ .vert-offset-top-2 {
40
+ margin-top: 20px !important;
41
+ }
42
+ .vert-offset-top-1 {
43
+ margin-top: 10px !important;
44
+ }
45
+ .vert-offset-top-0 {
46
+ margin-top: 0px !important;
47
+ }
48
+ /* Vertical Offset Bottom */
49
+ .vert-offset-bottom-12 {
50
+ margin-bottom: 180px !important;
51
+ }
52
+ .vert-offset-bottom-11 {
53
+ margin-bottom: 165px !important;
54
+ }
55
+ .vert-offset-bottom-10 {
56
+ margin-bottom: 150em !important;
57
+ }
58
+ .vert-offset-bottom-9 {
59
+ margin-bottom: 135px !important;
60
+ }
61
+ .vert-offset-bottom-8 {
62
+ margin-bottom: 120px !important;
63
+ }
64
+ .vert-offset-bottom-7 {
65
+ margin-bottom: 105px !important;
66
+ }
67
+ .vert-offset-bottom-6 {
68
+ margin-bottom: 60px !important;
69
+ }
70
+ .vert-offset-bottom-5 {
71
+ margin-bottom: 50px !important;
72
+ }
73
+ .vert-offset-bottom-4 {
74
+ margin-bottom: 40px !important;
75
+ }
76
+ .vert-offset-bottom-3 {
77
+ margin-bottom: 30px !important;
78
+ }
79
+ .vert-offset-bottom-2{
80
+ margin-bottom: 20px !important;
81
+ }
82
+ .vert-offset-bottom-1 {
83
+ margin-bottom: 10px !important;
84
+ }
85
+ .vert-offset-bottom-0 {
86
+ margin-bottom: 0px !important ;
87
+ }
88
+
89
+ @media (max-width: $screen-md-max) {
90
+ .vert-offset-top-md-1 {
91
+ margin-top: 15px;
92
+ }
93
+ .vert-offset-top-md-2 {
94
+ margin-top: 30px;
95
+ }
96
+ .vert-offset-bottom-md-1 {
97
+ margin-bottom: 25px;
98
+ }
99
+ }
100
+
101
+ @media (max-width: $screen-sm-max) {
102
+ .vert-offset-top-sm-1 {
103
+ margin-top: 15px;
104
+ }
105
+ .vert-offset-top-sm-2 {
106
+ margin-top: 30px;
107
+ }
108
+ .vert-offset-bottom-sm-1 {
109
+ margin-bottom: 25px;
110
+ }
111
+ }
112
+
113
+ @media (max-width: $screen-xs-max) {
114
+ .vert-offset-bottom-xs-1 {
115
+ margin-bottom: 15px;
116
+ }
117
+ .vert-offset-top-xs-2 {
118
+ margin-top: 30px;
119
+ }
120
+ .vert-offset-bottom-xs-1 {
121
+ margin-bottom: 15px;
122
+ }
123
+ }
@@ -0,0 +1,117 @@
1
+ // --------------------------------------------------
2
+ // Margins
3
+ // --------------------------------------------------
4
+
5
+ .margin-none {
6
+ margin: 0;
7
+ }
8
+
9
+ .margin-right {
10
+ margin-right: 5px;
11
+ }
12
+
13
+ .margin-xs-right {
14
+ margin-left: 3px;
15
+ }
16
+
17
+ .margin-sm-right {
18
+ margin-right: 15px;
19
+ }
20
+
21
+ .margin-sm-left {
22
+ margin-left: 15px;
23
+ }
24
+
25
+ .margin-md-right {
26
+ margin-right: 30px;
27
+ }
28
+
29
+ .margin-left {
30
+ margin-left: 5px;
31
+ }
32
+
33
+ .margin-xs-left {
34
+ margin-left: 5px;
35
+ }
36
+
37
+ .margin-md-left {
38
+ margin-left: 15px;
39
+ }
40
+
41
+ .margin-lg-left {
42
+ margin-left: 30px;
43
+ }
44
+
45
+ // --------------------------------------------------
46
+ // Borders
47
+ // --------------------------------------------------
48
+
49
+ .border-right {
50
+ border-right: 1px solid $gray-light;
51
+ }
52
+
53
+ .border-left {
54
+ border-left: 1px solid $gray-light;
55
+ }
56
+
57
+ .border-top {
58
+ border-top: 1px solid $gray-light;
59
+ }
60
+
61
+ .border-bottom {
62
+ border-bottom: 1px solid $gray-light;
63
+ }
64
+
65
+ .border-bottom-red {
66
+ border-bottom: 2px solid $brand-danger !important;
67
+ }
68
+
69
+ // --------------------------------------------------
70
+ // Paddings
71
+ // --------------------------------------------------
72
+
73
+ .no-padding {
74
+ padding: 0 !important;
75
+ }
76
+
77
+ .padding-right {
78
+ padding-right: 7px;
79
+ }
80
+
81
+ .padding-left {
82
+ padding-left: 7px;
83
+ }
84
+
85
+ .valign-middle > * {
86
+ vertical-align: middle !important;
87
+ }
88
+
89
+ .pl-0 {
90
+ padding-left: 0 !important;
91
+ }
92
+
93
+ .pl-1 {
94
+ padding-left: 15px !important;
95
+ }
96
+
97
+ .ml-0 {
98
+ margin-left: 0 !important;
99
+ }
100
+
101
+ .ml-25 {
102
+ margin-left: 10px !important;
103
+ }
104
+
105
+ .pt-1 {
106
+ padding-top: 15px !important;
107
+ }
108
+
109
+ .pt-2 {
110
+ padding-top: 30px !important;
111
+ }
112
+
113
+ @media (min-width: $screen-sm-min) {
114
+ .margin-left-sm-1 {
115
+ margin-left: 7px;
116
+ }
117
+ }
package/_flex-box.scss ADDED
@@ -0,0 +1,84 @@
1
+ .flex {
2
+ display: flex;
3
+ }
4
+
5
+ .flex-container {
6
+ height: 100%;
7
+ min-height: 100%;
8
+ display: flex;
9
+ flex-direction: column;
10
+ }
11
+
12
+ .flex-box {
13
+ text-align: center;
14
+ display: flex;
15
+ flex-direction: column;
16
+ justify-content: center;
17
+ padding: 0 10px;
18
+ flex: 1;
19
+ }
20
+
21
+ .space-between {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ }
25
+
26
+ .flex-center {
27
+ display: flex;
28
+ justify-content: center;
29
+ text-align: center;
30
+ }
31
+
32
+ .flex-middle {
33
+ display: flex;
34
+ align-items: center;
35
+ }
36
+
37
+ .flex-top {
38
+ display: flex;
39
+ align-items: top;
40
+ }
41
+
42
+ .center-right {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: flex-start;
46
+ }
47
+
48
+ .flex {
49
+ display: -ms-flexbox; /* TWEENER - IE 10 */
50
+ display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
51
+ display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
52
+ align-items: center;
53
+ -webkit-align-items: center;
54
+ }
55
+
56
+ .flex-space-around {
57
+ -webkit-justify-content: space-around;
58
+ justify-content: space-around;
59
+ }
60
+
61
+ .flex-space-between {
62
+ -webkit-justify-content: space-between;
63
+ justify-content: space-between;
64
+ }
65
+
66
+ .flex-end {
67
+ justify-content: flex-end;
68
+ }
69
+
70
+ .flex-start {
71
+ align-items: flex-start;
72
+ }
73
+
74
+ .flex-direction-column {
75
+ flex-direction: column;
76
+ }
77
+
78
+ .flex-align-items-stretch {
79
+ align-items: stretch;
80
+ }
81
+
82
+ .flex-align-items-start {
83
+ align-items: start;
84
+ }
package/_images.scss ADDED
@@ -0,0 +1,28 @@
1
+ .img-xs {
2
+ width: 25px;
3
+ }
4
+
5
+ .img-sm {
6
+ width: 35px;
7
+ }
8
+
9
+ .img-md {
10
+ width: 50px;
11
+ margin-right: 0.5em;
12
+ }
13
+
14
+ .img-lg {
15
+ width: 70px;
16
+ }
17
+
18
+ .img-xl {
19
+ width: 95px;
20
+ }
21
+
22
+ .img-list {
23
+ margin-right: 5px;
24
+ }
25
+
26
+ .avatar {
27
+ width: 28px;
28
+ }