src/pyams_skin/resources/less/buttons.less
changeset 0 bb4aabe07487
child 66 7a2d69fe8f6c
equal deleted inserted replaced
-1:000000000000 0:bb4aabe07487
       
     1 /*
       
     2  * Buttons
       
     3  */
       
     4 
       
     5 .customfile-button {
       
     6 	padding: 6px 12px;
       
     7 	margin-bottom: 0;
       
     8 	font-size: 14px;
       
     9 	font-weight: 400;
       
    10 	line-height: 1.428571429;
       
    11 	text-align: center;
       
    12 	white-space: nowrap;
       
    13 	vertical-align: middle;
       
    14 	cursor: pointer;
       
    15 	border: 1px solid #ccc;
       
    16 	-webkit-user-select: none;
       
    17 	-moz-user-select: none;
       
    18 	-ms-user-select: none;
       
    19 	-o-user-select: none;
       
    20 	user-select: none;
       
    21 }
       
    22 
       
    23 .btn,
       
    24 a:link,
       
    25 button {
       
    26 	-webkit-tap-highlight-color: rgba(169, 3, 41, .5);
       
    27 }
       
    28 
       
    29 button {
       
    30 	background-color: #ddd;
       
    31 }
       
    32 button:hover {
       
    33 	background-color: #cccccc;
       
    34 }
       
    35 
       
    36 .btns {
       
    37 	margin:0;
       
    38 	padding:0;
       
    39 	list-style:none;
       
    40 
       
    41 	>li {
       
    42 		display:inline-block;
       
    43 		margin-bottom:7px;
       
    44 	}
       
    45 }
       
    46 
       
    47 .btn {
       
    48 	padding: 6px 12px;
       
    49 	border-radius: 2px;
       
    50 	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
       
    51 	-webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
       
    52 
       
    53 	&:active {
       
    54 		position: relative;
       
    55 		top: 1px;
       
    56 		left: 1px;
       
    57 	}
       
    58 	&.btn-ribbon {
       
    59 		background-color: #5b6771;
       
    60 		color: #fff;
       
    61 		padding: 1px 5px;
       
    62 		line-height: 20px;
       
    63 		vertical-align: middle;
       
    64 		height: 21px;
       
    65 		display: block;
       
    66 		border: 0;
       
    67 		float: left;
       
    68 		margin: 0 8px 0 0;
       
    69 		cursor: pointer;
       
    70 	}
       
    71 	&.btn-ribbon>i {
       
    72 		font-size: 111%;
       
    73 	}
       
    74 }
       
    75 
       
    76 .btn-xs {
       
    77 	padding: 1px 5px;
       
    78 	line-height: 1.3em;
       
    79 }
       
    80 .btn-sm {
       
    81 	padding: 3px 10px;
       
    82 }
       
    83 .btn-lg {
       
    84 	padding: 9px 15px;
       
    85 }
       
    86 .btn-xl {
       
    87 	padding: 11px 15px;
       
    88 }
       
    89 
       
    90 .btn-circle {
       
    91 	width: 30px;
       
    92 	height: 30px;
       
    93 	text-align: center;
       
    94 	padding: 7px 0 5px;
       
    95 	font-size: 12px;
       
    96 	line-height: 18px;
       
    97 	border-radius: 50%;
       
    98 
       
    99 	&.btn-lg {
       
   100 		width: 50px;
       
   101 		height: 50px;
       
   102 		padding: 9px 15px 7px;
       
   103 		font-size: 18px;
       
   104 		line-height: 30px;
       
   105 		border-radius: 50%;
       
   106 	}
       
   107 	&.btn-xl {
       
   108 		width: 70px;
       
   109 		height: 70px;
       
   110 		padding: 11px 15px 9px;
       
   111 		font-size: 24px;
       
   112 		line-height: 50px;
       
   113 		border-radius: 50%;
       
   114 	}
       
   115 }
       
   116 
       
   117 .btn-metro {
       
   118 	margin: 0 0 20px;
       
   119 	padding-top: 15px;
       
   120 	padding-bottom: 15px;
       
   121 
       
   122 	>span {
       
   123 		display: block;
       
   124 		vertical-align: bottom;
       
   125 		margin-top: 10px;
       
   126 		text-transform: uppercase;
       
   127 
       
   128 		>span.label {
       
   129 			position: absolute;
       
   130 			top: 0;
       
   131 			right: 0;
       
   132 		}
       
   133 	}
       
   134 }
       
   135 
       
   136 /*.btn-primary {
       
   137 	background-color: #627685;
       
   138 	border-color: #46545e;
       
   139 
       
   140 	&:hover,
       
   141 	&:focus,
       
   142 	&:active,
       
   143 	&.active,
       
   144 	.open .dropdown-toggle& {
       
   145 		background-color: rgba(91, 103, 113, 0.8);
       
   146 		border-color: #46545e;
       
   147 	}
       
   148 }*/
       
   149 
       
   150 .btn-label {
       
   151 	position: relative;
       
   152 	left: -12px;
       
   153 	display: inline-block;
       
   154 	padding: 7px 12px 5px;
       
   155 	background: rgba(0, 0, 0, .15);
       
   156 	border-radius: 3px 0 0 3px;
       
   157 }
       
   158 
       
   159 .btn-labeled {
       
   160 	padding-top: 0;
       
   161 	padding-bottom: 0;
       
   162 }
       
   163 
       
   164 .btn-select-tick {
       
   165 	i {
       
   166 		display: none;
       
   167 	}
       
   168 	.btn:hover i {
       
   169 		opacity: .3;
       
   170 		display: block;
       
   171 	}
       
   172 	.active i {
       
   173 		display: block;
       
   174 		opacity: 1!important;
       
   175 	}
       
   176 }
       
   177 
       
   178 .btn-header {
       
   179 	&.pull-right {
       
   180 		margin-left: 6px;
       
   181 	}
       
   182 	a {
       
   183 		@media (min-width:768px) and (max-width:979px) {
       
   184 			margin-top: 9px!important;
       
   185 			/*width: 40px!important;*/
       
   186 		}
       
   187 		@media (min-width:768px) and (max-width:880px) {
       
   188 			margin-top: 9px!important;
       
   189 			/*width: 40px!important;*/
       
   190 			/*height: 39px!important;*/
       
   191 			line-height: 26px!important;
       
   192 		}
       
   193 		@media (max-width:767px) {
       
   194 			margin-top: 5px!important;
       
   195 			width: 40px!important;
       
   196 			height: 39px!important;
       
   197 			line-height: 34px!important;
       
   198 		}
       
   199 		@media only screen and (min-width:0) and (max-width:679px) {
       
   200 			margin-top: 5px!important;
       
   201 			width: 40px!important;
       
   202 			height: 39px!important;
       
   203 			line-height: 34px!important;
       
   204 		}
       
   205 		@media only screen and (min-width:320px) and (max-width:479px) {
       
   206 			margin-top: 5px!important;
       
   207 			width: 40px!important;
       
   208 			height: 39px!important;
       
   209 			line-height: 34px!important;
       
   210 		}
       
   211 		>span {
       
   212 			font-size: 13px;
       
   213 			font-weight: 400;
       
   214 			line-height: 30px;
       
   215 			height: 30px;
       
   216 			display: inline-block;
       
   217 		}
       
   218 	}
       
   219 	&.transparent {
       
   220 		@media (min-width:768px) and (max-width:880px) {
       
   221 			a {
       
   222 				border: 0!important;
       
   223 				background: 0 0;
       
   224 				margin-left: 0;
       
   225 				width: 25px!important;
       
   226 				-webkit-box-shadow: none!important;
       
   227 				box-shadow: none!important;
       
   228 
       
   229 				&:hover {
       
   230 					color: #a90329;
       
   231 				}
       
   232 			}
       
   233 		}
       
   234 		@media (max-width:767px) {
       
   235 			a:hover {
       
   236 				color: #a90329;
       
   237 			}
       
   238 		}
       
   239 		@media only screen and (min-width:0) and (max-width:679px) {
       
   240 			a {
       
   241 				border: 0!important;
       
   242 				background: 0 0;
       
   243 				margin-left: 0;
       
   244 				width: 25px!important;
       
   245 				-webkit-box-shadow: none!important;
       
   246 				box-shadow: none!important;
       
   247 
       
   248 				&:hover {
       
   249 					color: #a90329;
       
   250 				}
       
   251 			}
       
   252 		}
       
   253 		@media only screen and (min-width:320px) and (max-width:479px) {
       
   254 			a {
       
   255 				border: 0!important;
       
   256 				background: 0 0;
       
   257 				margin-left: 0;
       
   258 				width: 25px!important;
       
   259 				-webkit-box-shadow: none!important;
       
   260 				box-shadow: none!important;
       
   261 
       
   262 				&:hover {
       
   263 					color: #a90329;
       
   264 				}
       
   265 			}
       
   266 		}
       
   267 	}
       
   268 	>:first-child >a {
       
   269 		border-radius: 2px;
       
   270 		cursor: default!important;
       
   271 		display: inline-block;
       
   272 		font-weight: 700;
       
   273 		height: 30px;
       
   274 		min-width: 30px;
       
   275 		padding: 3px;
       
   276 		text-align: center;
       
   277 		text-decoration: none!important;
       
   278 		-moz-user-select: none;
       
   279 		-webkit-user-select: none;
       
   280 		background-color: #f8f8f8;
       
   281 		background-image: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f1f1f1));
       
   282 		background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1);
       
   283 		background-image: -webkit-gradient(linear, top left, bottom left, from(#f8f8f8), to(#f1f1f1));
       
   284 		background-image: -webkit-linear-gradient(top, #f8f8f8, #f1f1f1);
       
   285 		background-image: linear-gradient(top, #f8f8f8, #f1f1f1);
       
   286 		border: 1px solid #bfbfbf;
       
   287 		color: #6D6A69;
       
   288 		font-size: 17px;
       
   289 		margin: 10px 0 0;
       
   290 
       
   291 		&:hover {
       
   292 			border: 1px solid #bfbfbf;
       
   293 			color: #222;
       
   294 			-webkit-transition: all 0s;
       
   295 			transition: all 0s;
       
   296 			cursor: pointer;
       
   297 			-webkit-box-shadow: inset 0 0 4px 1px rgba(0, 0, 0, .08);
       
   298 			box-shadow: inset 0 0 4px 1px rgba(0, 0, 0, .08);
       
   299 		}
       
   300 		&:active {
       
   301 			background-color: #e8e8e8;
       
   302 			background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #e8e8e8), color-stop(100%, #ededed));
       
   303 			background-image: -webkit-linear-gradient(top, #e8e8e8 0, #ededed 100%);
       
   304 			background-image: -webkit-gradient(linear, top left, bottom left, from(#e8e8e8), to(#ededed));
       
   305 			background-image: -webkit-linear-gradient(top, #e8e8e8 0, #ededed 100%);
       
   306 			background-image: linear-gradient(to bottom, #e8e8e8 0, #ededed 100%);
       
   307 			filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e8e8',  endColorstr='#ededed',  GradientType=0);
       
   308 			-webkit-box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, .15);
       
   309 			box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, .15);
       
   310 		}
       
   311 	}
       
   312 }
       
   313 
       
   314 .ribbon-button-alignment {
       
   315 	padding-top: 10px;
       
   316 	display: inline-block;
       
   317 
       
   318 	&.pull-right >.btn.btn-ribbon {
       
   319 		margin: 0 0 0 8px;
       
   320 	}
       
   321 }
       
   322 
       
   323 .header-btn {
       
   324 	margin-top: 5px;
       
   325 }