に国境を退治質問は短いです:どのように私は私のCSSの亜種の数百人を試した後、完全に無力だブートストラップ入力要素in this example ?の周りにこのグレーの境界線を取り除くありません。は、ブートストラップ入力
私はbox-shadow: none;
を含めるだけで成功しましたが、このオプションは、境界線を削除するだけでなく、要素がフォーカスを取得したときに青い輝きの効果も削除します。私はこの効果を残しておきたい!
HTML:
<table class = 'form table zeon zeon-row-hover'>
<thead>
<th>My column A</th>
<th>My column B</th>
<th>My column C</th>
</thead>
<tr>
<td>Smokey</td>
<td class='zeon_input_table_cell'>
<input class="form-control input-sm" value="8.0" />
</td>
<td>Brown</td>
</tr>
<tr>
<td>Rey</td>
<td class='zeon_input_table_cell'>
<input class="form-control input-sm" value="8.0" />
</td>
<td>Poe</td>
</tr>
<tr>
<td>Sting</td>
<td class='zeon_input_table_cell'>
<input class="form-control input-sm" value="8.0" />
</td>
<td>Iglesias</td>
</tr>
</table>
CSS:SE
table.zeon tbody tr td
{
color:rgb(103, 130, 158);
font-size:12;
border:none;
}
table.zeon tbody tr td.zeon_input_table_cell
{
padding: 0;
border:none;
}
td.zeon_input_table_cell input
{
display:table-cell;
width:100%;
border:none;
background-color: transparent;
padding-top:5px;
padding-bottom:5px;
padding-left:5px;
border-color: red;
}
td.zeon_input_table_cell .form-control {
border: 0;
/* If I write "box-shadow: none;", borders go away, but I like the blue color when the input
is selected and I DO want this effect to stay */
}
Vucko、1つのマイナーな要求は、それだけでtd.zeon_input_table_cell要素内にあるこれらのコントロールに適用されるように、私は.FORM制御セレクタを狭くする方法を説明してくださいだろうか?私はtd.zeon_input_table_cell .FORM制御を記述する場合は、境界が消え、しかし影が同様に消える:( –
私は質問を更新しました - それは 'td.foo'は、より具体的である'として、CSSの特異性によりです.fooという:active'あなたは 'td.zeon_input_table_cell .FORM-control'を使用することができますが、その後はまた' td.zeon_input_table_cell .FORM制御を使用する必要があります。focus'は、これらの_blue borders_を返すために、第1のセレクタは、ブートストラップを上書きしてデフォルトのもの。 – Vucko
パーフェクト、まさに私が望むもの –