_btn-group.scss2.html
2.9 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
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
<script type="text/javascript">
function highlight() {
document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
}
</script>
</head>
<body onload="prettyPrint(); highlight();">
<pre class="prettyprint lang-js"><span id='Ext-container-ButtonGroup-css_mixin-extjs-btn-group'>/**
</span> * Creates the base structure of a button group.
* @member Ext.container.ButtonGroup
*/
@mixin extjs-btn-group {
.#{$prefix}btn-group {
position: relative;
overflow: hidden;
}
.#{$prefix}btn-group-body {
position: relative;
zoom: 1;
padding: $btn-group-padding;
.#{$prefix}table-layout-cell {
vertical-align: top;
}
}
.#{$prefix}btn-group-header-text {
white-space: nowrap;
}
@include extjs-btn-group-ui('default');
}
<span id='Ext-container-ButtonGroup-css_mixin-extjs-btn-group-ui'>/**
</span> * Creates a visual theme of a button group.
* @member Ext.container.ButtonGroup
*/
@mixin extjs-btn-group-ui(
$ui-label,
$ui-base-color: null,
// background
$ui-background-color: $btn-group-background-color,
// borders
$ui-border-color: $btn-group-border-color,
$ui-border-width: $btn-group-border-width,
$ui-border-radius: $btn-group-border-radius,
$ui-inner-border-color: $btn-group-inner-border-color,
//header
$ui-header-background-color: $btn-group-header-background-color,
$ui-header-font: $btn-group-header-font,
$ui-header-color: $btn-group-header-color
){
@include x-frame(
'btn-group',
$ui: '#{$ui-label}-framed',
/* Radius, width, padding and background-color */
$border-radius: $ui-border-radius,
$border-width: $ui-border-width,
$padding: $btn-group-padding,
$background-color: $ui-background-color
);
.#{$prefix}btn-group-#{$ui-label}-framed {
border-color: $ui-border-color;
@include inner-border(
$width: $btn-group-inner-border-width,
$color: $ui-inner-border-color
);
}
.#{$prefix}btn-group-header-#{$ui-label}-framed {
margin: $btn-group-header-margin;
}
.#{$prefix}btn-group-header-body-#{$ui-label}-framed {
padding: $btn-group-header-padding;
background: $ui-header-background-color;
@include border-top-radius($ui-border-radius);
}
.#{$prefix}btn-group-header-text-#{$ui-label}-framed {
font: $ui-header-font;
color: $ui-header-color;
}
}
</pre>
</body>
</html>