~stephen-stewart/ulysses/tidy-up-dropdown

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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
.ues-button {
    background-color: #dedede;
    background-image: linear-gradient(to bottom, #f7f7f7 0%, #e6e6e6 100%);
    border-radius: 3px;
    display:inline-block;
    font-weight:300;
    font-size:13px;
    line-height:20px;
    padding:5px 19px;
    text-align:center;
    vertical-align:baseline;
    text-transform:uppercase;
    border: 1px solid #ccc;
}

.ues-button:hover {
    background-color: #e6e6e6;
    background-image: linear-gradient(to bottom, #fff 0%, #e6e6e6 100%);
}

.ues-button:focus {
    box-shadow: #f7f6f5 0 0 0 1px;
}

.ues-button:focus,
.ues-button:active {
    background-color: #e6e6e6;
    background-image: linear-gradient(to bottom, #e6e6e6 0%, #cdcdcd 90%, #fff 100%);
}


.ues-button-primary {
    background-color: #dd4814;
    background-image: linear-gradient(to bottom, #f39455 0%, #ef5e1f 5%, #dd4814 100%);
    color:#fff;
    border-color:#ad2e03;
}

.ues-button-primary:hover {
    background-color: #f28a45;
    background-image: linear-gradient(to bottom, #f39455 0%, #f28a45 5%, #dd4814 100%);
}

.ues-button-primary:focus,
.ues-button-primary:active {
    background-color: #dd4814;
    background-image: linear-gradient(to bottom, #dd4814 0%, #bf3b0d 5%, #f39455 100%);
    border-color:#333;
}

.ues-button-tertiary {
    background-color:white;
    background-image: none;
    border: 1px solid #c8c8c8;
}
.ues-button-tertiary:hover {
    background-color:#e6e6e6;
    background-image: none;
    border-color:#cdcdcd;
}
.ues-button-tertiary:focus,
.ues-button-tertiary:active {
    background-color: #e6e6e6;
    background-image: none;
    border-color:#dd4814;
}

.ues-button-search {
    background-color:white;
    background-image:none;
    border: none;
    border-left: 1px solid #eee;
}
.ues-button-search:hover {
    background-color:#f0f0f0;
    border-color: #dedede;
}
.ues-button-search:focus,
.ues-button-search:active {
    border-color: #c8c8c8;
    background-color:#dedede;
}

a.ues-button {
    color:inherit;
}

.ues-button-small {
    border-radius:3px;
    font-size:11px;
    padding:0 5px;
    font-weight:400;
}

.ues-button-large {
    font-size:16px;
    padding:14px 38px;
    border-radius:7px;
}

.ues-button-block {
    margin:0.5em 0;
    display:block;
    width:100%;
}

/** a non text button needs less padding */
.ues-button-icon {
    padding-left:7px;
    padding-right:7px;
}

.ues-button-group  {
    position:relative;
    display:inline-block;
    vertical-align:middle;
}

.ues-button-group:before,
.ues-button-group:after {
    content: ' ';
    display: table;
}

.ues-button-group:after {
    clear: both;
}

.ues-button-group .ues-button,
.ues-button-group input[type="search"] {
    float:left;
}

/** first child of >1 buttons **/
.ues-button-group > input[type="search"]:first-child:not(:last-child):not(.ues-dropdown-toggle),
.ues-button-group > .ues-button:first-child:not(:last-child):not(.ues-dropdown-toggle) {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-right:none;
}

/** last child of >1 buttons **/
.ues-button-group > input[type="search"]:last-child:not(:first-child),
.ues-button-group > .ues-button:last-child:not(:first-child),
.ues-button-group > .ues-dropdown-toggle:not(:first-child) {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

/** any button surrounded by other buttons **/
.ues-button-group > .ues-button:not(:first-child):not(:last-child):not(.ues-dropdown-toggle) {
    border-radius:0px;
    border-right:none;
}