Warning, /webapps/ocs-webserver/httpdocs/theme/flatui/less/modules/input.less is written in an unsupported language. File is not indexed.
0001 // 0002 // Inputs 0003 // -------------------------------------------------- 0004 0005 // Text fields 0006 textarea, 0007 input[type="text"], 0008 input[type="password"], 0009 input[type="datetime"], 0010 input[type="datetime-local"], 0011 input[type="date"], 0012 input[type="month"], 0013 input[type="time"], 0014 input[type="week"], 0015 input[type="number"], 0016 input[type="email"], 0017 input[type="url"], 0018 input[type="search"], 0019 input[type="tel"], 0020 input[type="color"], 0021 .uneditable-input { 0022 border: 2px solid @lightgray; 0023 color: @base; 0024 font-family: @base-font-family; 0025 font-size: @base-font-size; 0026 padding: 8px 5px; 0027 height: 21px; 0028 text-indent: 6px; 0029 -webkit-appearance: none; 0030 .border-radius(6px); 0031 .box-shadow(none); 0032 .placeholder-color(desaturate(lighten(@base, 45%), 15%)); 0033 .transition(~"border .25s linear, color .25s linear"); 0034 0035 // Alternate state 0036 // -------------------------------------------------- 0037 .control-group.focus &, 0038 &:focus { 0039 border-color: @firm; 0040 .box-shadow(none); 0041 } 0042 0043 .row-fluid & { 0044 height: 41px; 0045 width: 100%; 0046 } 0047 0048 // Flat (without border) 0049 &.flat { 0050 border-color: transparent; 0051 &:hover { 0052 border-color: @lightgray; 0053 } 0054 &:focus { 0055 border-color: @firm; 0056 } 0057 } 0058 0059 // Alternate Colors 0060 // -------------------------------------------------- 0061 .control-group.error & { .input-states(@danger) } 0062 .control-group.success & { .input-states(@success) } 0063 .control-group.warning & { .input-states(@warning) } 0064 .control-group.info & { .input-states(@info) } 0065 0066 .control-group & { margin-bottom: 0; } 0067 } 0068 0069 // INPUT ICONS 0070 // ---------------------- 0071 .control-group { 0072 position: relative; 0073 0074 > .input-icon { 0075 position: absolute; 0076 top: 2px; 0077 right: 2px; 0078 line-height: 37px; 0079 vertical-align: middle; 0080 font-size: @base-font-size * 1.428; /* 20px */ 0081 color: desaturate(lighten(@base, 45%), 15%); 0082 background-color: #ffffff; 0083 padding: 0 10px; 0084 .border-radius(6px); 0085 } 0086 0087 input:focus + .input-icon { color: @base; } 0088 0089 // Icon Sizes 0090 // -------------------------------------------------- 0091 0092 // Huge 0093 &.huge { 0094 > .input-icon { 0095 line-height: 49px; 0096 } 0097 } 0098 0099 //Large 0100 &.large { 0101 > .input-icon { 0102 line-height: 41px; 0103 } 0104 } 0105 0106 // Small 0107 &.small { 0108 > .input-icon { 0109 font-size: @base-font-size * 1.142; /* 16px */ 0110 line-height: 30px; 0111 } 0112 } 0113 0114 0115 // Icon Colors 0116 // -------------------------------------------------- 0117 &.success { 0118 > .input-icon, input + .input-icon { 0119 color: @success; 0120 } 0121 } 0122 &.warning { 0123 > .input-icon, input + .input-icon { 0124 color: @warning; 0125 } 0126 } 0127 &.error { 0128 > .input-icon, input + .input-icon { 0129 color: @danger; 0130 } 0131 } 0132 &.disabled { 0133 > .input-icon, input + .input-icon { 0134 color: mix(@gray, white, 40%); 0135 background-color: mix(@gray, white, 10%); 0136 } 0137 } 0138 0139 } 0140 0141 // Disabled state 0142 input[disabled], 0143 input[readonly], 0144 textarea[disabled], 0145 textarea[readonly] { 0146 background-color: mix(@gray, white, 10%); 0147 border-color: mix(@gray, white, 40%); 0148 color: mix(@gray, white, 40%); 0149 cursor: default; 0150 } 0151 0152 // Text field grids 0153 input, 0154 textarea, 0155 .uneditable-input { 0156 width: 192px; 0157 } 0158 0159 // Textarea 0160 textarea { 0161 height: auto; 0162 font-size: @base-font-size * 1.071; /* 15px */ 0163 line-height: 24px; 0164 padding: 5px 11px; 0165 text-indent: 0; 0166 0167 .row-fluid & { 0168 height: auto; 0169 width: 100% !important; 0170 } 0171 } 0172 textarea[class*="span"] { 0173 width: 100% !important; 0174 .box-sizing(border-box); 0175 }