UNPKG

4.11 kBtext/lessView Raw
1@meteor-accounts-base-padding: 8px;
2@meteor-accounts-dialog-border-width: 1px;
3@login-buttons-accounts-dialog-width: 250px;
4@login-buttons-color: #596595;
5@login-buttons-color-border: darken(@login-buttons-color, 10%);
6@login-buttons-color-active: lighten(@login-buttons-color, 10%);
7@login-buttons-color-active-border: darken(@login-buttons-color-active, 10%);
8
9.box-sizing-by-border () {
10 -webkit-box-sizing: border-box;
11 -moz-box-sizing: border-box;
12 box-sizing: border-box;
13}
14
15.box-shadow (...) {
16 box-shadow: @arguments;
17 -webkit-box-shadow: @arguments; // For Android
18}
19
20.login-buttons {
21 position: relative;
22 display: inline-block;
23
24 .dropdown-toggle {
25 span {
26 cursor: pointer;
27 }
28 }
29
30 .accounts-close {
31 position: absolute;
32 top: 0;
33 right: 5px;
34 cursor: pointer;
35
36 font-weight: bold;
37 line-height: 20px;
38 text-decoration: underline;
39 opacity: 0.8;
40
41 &:hover {
42 opacity: 1;
43 }
44 }
45
46 .content-container {
47 position:absolute; top: 0; left: 0;
48
49 border: @meteor-accounts-dialog-border-width solid #ccc;
50 z-index: 1000;
51 background: white;
52 border-radius: 4px;
53
54 padding: 8px 12px;
55 margin: -8px -12px 0 -12px;
56
57 width: @login-buttons-accounts-dialog-width;
58
59 .box-shadow(0 0 3px 0 rgba(0, 0, 0, 0.2));
60
61 // Labels and links inherit app's font with this line commented out:
62 //font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
63 font-size: 16px;
64 color: #333;
65
66 // XXX Make the dropdown and dialogs look good without a top-level
67 // line-height: 1.6. For now, we apply it to everything except
68 // the "Close" link, which we want to have the same line-height
69 // as the "Sign in" link.
70 & > * { line-height: 1.6; }
71 & > .login-close-text {
72 line-height: inherit;
73 font-size: inherit;
74 font-family: inherit;
75 }
76
77 label, .title {
78 font-size: 80%;
79 margin-top: 7px;
80 margin-bottom: -2px;
81 }
82
83 label {
84 // Bootstrap sets labels as 'display: block;'. Undo that.
85 display: inline;
86 }
87
88 input[type=text], input[type=email], input[type=password] {
89 // Be pixel-accurate in IE 8+ regardless of our borders and
90 // paddings, at the expense of IE 7.
91 // Any heights or widths applied to this element will set the
92 // size of the border box (including padding and borders)
93 // instead of the content box. This makes it possible to
94 // do width 100%.
95 .box-sizing-by-border();
96 width: 100%;
97 // A fix purely for the "meteor add bootstrap" experience.
98 // Bootstrap sets "height: 20px" on form fields, which is too
99 // small when applied to the border box. People have complained
100 // that Bootstrap takes this approach for the sake of IE 7:
101 // https://github.com/twitter/bootstrap/issues/2935
102 // Our work-around is to override Bootstrap's rule (with higher
103 // precedence).
104 &[type] { height: auto; }
105 }
106 }
107
108 .loading {
109 line-height: 1;
110 background-image: url(data:image/gif;base64,R0lGODlhEAALAPQAAP///wAAANra2tDQ0Orq6gYGBgAAAC4uLoKCgmBgYLq6uiIiIkpKSoqKimRkZL6+viYmJgQEBE5OTubm5tjY2PT09Dg4ONzc3PLy8ra2tqCgoMrKyu7u7gAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA);
111 width: 16px;
112 background-position: center center;
113 background-repeat: no-repeat;
114 }
115}
\No newline at end of file