# 錯誤與沖突收集
樣式沖突:

造成這個的原因是:

#sidebar這個樣式沖突了。追蹤來源:
~~~
// Horizon
@import "/dashboard/scss/horizon.scss";
~~~
在horizon\openstack_dashboard\static\dashboard\scss\horizon.scss這個文件里:
~~~
......
// Main Page Layout
@import "layout";
.......
@import "components/sidebar";
......
~~~
分別指的是:horizon\openstack_dashboard\static\dashboard\scss\_layout.scss 和 horizon\openstack_dashboard\static\dashboard\scss\components\_sidebar.scss。這兩個文件中都存在 #sidebar 這個樣式。
**從上面的沖突可見,horizon.scss 這個文件我們也不能放個它,里面的東西該刪就刪。但刪除了會影響其它的主題,這里我們應該怎樣處理?**
研究了半天,難道只能改這個文件???
**直接注釋掉這行代碼:
//width: $sidebar-width;**
### 2

解決辦法:X:\horizon\openstack_dashboard\static\dashboard\scss\_layout.scss里注釋這行代碼:
/*html,
body:not(#splash) {
height: 100%;
}*/
- 1.概述
- 2.CSS樣式引入
- 2.1 My Themes
- 2.2 Horizon
- 2.3 Angular
- 2.4 HORIZON_CONFIG.scss_files
- 2.5 Custom Styles
- 3. JS文件引入
- 31. iframe_embed_settings 標簽
- 3.2 horizon/_conf.html
- 3.3 _script_loader.html
- 3.4 _custom_head_js.html
- 3.5 horizon/_scripts.html
- 4. 主題替換
- 4.1 ACE主題
- 4.2 引入ACE主題的CSS樣式
- 4.3 引入ACE主題的JS文件
- 4.4 收集和壓縮
- 4.5 總結
- 4.6 錯誤與沖突收集
- 5.錯誤修正
- 6.openstack里所有功能瀏覽
- 7.前端hightchart.js分析
- 8.命令使用