-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path_buttons.scss
More file actions
93 lines (75 loc) · 1.82 KB
/
Copy path_buttons.scss
File metadata and controls
93 lines (75 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@use "provider/colors" as *;
@use "provider/typography" as *;
@use "sass:math";
.button,
a {
&.next {
float: right;
}
}
// TODO: remove this class
.button-bar {
position: relative;
fieldset {
margin: 0;
}
& > fieldset {
& > ol > li {
display: inline-block;
}
&.actions:first-child {
float: left;
margin: line-height-times(.5) 0 0;
padding: 0;
text-align: left !important;
& > ol > li {
margin-right: var(--pf-global--spacer--sm);
}
}
&.actions:last-child:not(:first-child) {
float: right;
margin: line-height-times(.5) 0 0;
padding: 0;
& > ol > li {
margin-left: var(--pf-global--spacer--sm);
}
}
}
display: flow-root;
}
// TODO: remove outline-button
@mixin outline-button($color: $font-color, $border-color: $border-color) {
color: $color;
display: inline-block;
font-size: $font-size-base;
line-height: 1;
border: $border-width solid $border-color;
border-radius: $border-radius-sm;
margin-top: -$border-width;
padding: line-height-times(math.div(1,3)) line-height-times(.5);
height: line-height-times(1.5);
background-color: transparent;
cursor: pointer;
&:hover {
color: $link-color;
border-color: $link-color;
}
}
.outline-button {
@include outline-button;
}
.outline-button-thin {
@include outline-button;
padding: line-height-times(.25) line-height-times(math.div(1,3)) !important;
height: line-height-times(1.25);
}
.outline-button-thin--negative {
@include outline-button($error-color, $error-color);
padding: line-height-times(.25) !important;
height: line-height-times(1.25);
}
.outline-button-thin--positive {
@include outline-button($success-color, $success-color);
padding: line-height-times(.25) !important;
height: line-height-times(1.25);
}