Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
420360f8
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
420360f8
编写于
10月 04, 2017
作者:
W
Winnie Hellmann
提交者:
Annabel Dunstone Gray
10月 04, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cleanup Select2 dropdown styles
上级
2e5af6ff
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
46 addition
and
99 deletion
+46
-99
app/assets/stylesheets/framework/selects.scss
app/assets/stylesheets/framework/selects.scss
+46
-99
未找到文件。
app/assets/stylesheets/framework/selects.scss
浏览文件 @
420360f8
...
...
@@ -48,31 +48,24 @@
}
&
:hover
{
background-color
:
$white-normal
;
border-color
:
$border-white-normal
;
border-color
:
$gray-darkest
;
color
:
$gl-text-color
;
}
}
}
.select2-drop
{
box-shadow
:
$select2-drop-shadow1
0
0
1px
0
,
$select2-drop-shadow2
0
2px
18px
0
;
border-radius
:
$border-radius-default
;
border
:
none
;
.select2-drop
,
.select2-drop.select2-drop-above
{
box-shadow
:
0
2px
4px
$dropdown-shadow-color
;
border-radius
:
$border-radius-base
;
border
:
1px
solid
$dropdown-border-color
;
min-width
:
175px
;
color
:
$gl-text-color
;
}
.select2-results
.select2-result-label
,
.select2-more-results
{
padding
:
10px
15px
;
}
.select2-drop
{
color
:
$gl-grayish-blue
;
}
.select2-highlighted
{
background
:
$gl-link-color
!
important
;
.select2-drop.select2-drop-above.select2-drop-active
{
border-top
:
1px
solid
$dropdown-border-color
;
margin-top
:
-6px
;
}
.select2-results
li
.select2-result-with-children
>
.select2-result-label
{
...
...
@@ -87,13 +80,11 @@
}
}
.select2-dropdown-open
{
.select2-dropdown-open
,
.select2-dropdown-open.select2-drop-above
{
.select2-choice
{
border-color
:
$
border-white-normal
;
border-color
:
$
gray-darkest
;
outline
:
0
;
background-image
:
none
;
background-color
:
$white-dark
;
box-shadow
:
$gl-btn-active-gradient
;
}
}
...
...
@@ -131,28 +122,14 @@
}
}
}
&
.select2-container-active
.select2-choices
,
&
.select2-dropdown-open
.select2-choices
{
border-color
:
$border-white-normal
;
box-shadow
:
$gl-btn-active-gradient
;
}
}
.select2-drop-active
{
margin-top
:
6px
;
margin-top
:
$dropdown-vertical-offset
;
font-size
:
14px
;
&
.select2-drop-above
{
margin-bottom
:
8px
;
}
.select2-results
{
max-height
:
350px
;
.select2-highlighted
{
background
:
$gl-primary
;
}
}
}
...
...
@@ -186,19 +163,35 @@
background-size
:
16px
16px
!
important
;
}
.select2-results
.select2-no-results
,
.select2-results
.select2-searching
,
.select2-results
.select2-ajax-error
,
.select2-results
.select2-selection-limit
{
background
:
$gray-light
;
display
:
list-item
;
padding
:
10px
15px
;
}
.select2-results
{
margin
:
0
;
padding
:
10px
0
;
padding
:
#{
$gl-padding
/
2
}
0
;
.select2-no-results
,
.select2-searching
,
.select2-ajax-error
,
.select2-selection-limit
{
background
:
transparent
;
padding
:
#{
$gl-padding
/
2
}
$gl-padding
;
}
.select2-result-label
,
.select2-more-results
{
padding
:
#{
$gl-padding
/
2
}
$gl-padding
;
}
.select2-highlighted
{
background
:
transparent
;
color
:
$gl-text-color
;
.select2-result-label
{
background
:
$dropdown-item-hover-bg
;
}
}
.select2-result
{
padding
:
0
1px
;
}
}
.ajax-users-select
{
...
...
@@ -265,56 +258,10 @@
min-width
:
250px
!
important
;
}
// TODO: change global style
.ajax-project-dropdown
,
.ajax-users-dropdown
,
body
[
data-page
=
"projects:edit"
]
#select2-drop
,
body
[
data-page
=
"projects:new"
]
#select2-drop
,
body
[
data-page
=
"projects:merge_requests:edit"
]
#select2-drop
,
body
[
data-page
=
"projects:blob:new"
]
#select2-drop
,
body
[
data-page
=
"profiles:show"
]
#select2-drop
,
body
[
data-page
=
"admin:groups:show"
]
#select2-drop
,
body
[
data-page
=
"projects:issues:show"
]
#select2-drop
,
body
[
data-page
=
"projects:blob:edit"
]
#select2-drop
{
&
.select2-drop
{
border
:
1px
solid
$dropdown-border-color
;
border-radius
:
$border-radius-base
;
color
:
$gl-text-color
;
}
&
.select2-drop-above
{
border-top
:
none
;
margin-top
:
-4px
;
}
.select2-results
{
.select2-no-results
,
.select2-searching
,
.select2-ajax-error
,
.select2-selection-limit
{
background
:
transparent
;
}
.select2-result
{
padding
:
0
1px
;
.select2-match
{
font-weight
:
$gl-font-weight-bold
;
text-decoration
:
none
;
}
.select2-result-label
{
padding
:
#{
$gl-padding
/
2
}
$gl-padding
;
}
&
.select2-highlighted
{
background-color
:
transparent
!
important
;
color
:
$gl-text-color
;
.select2-result-label
{
background-color
:
$dropdown-item-hover-bg
;
}
}
}
.select2-result-selectable
,
.select2-result-unselectable
{
.select2-match
{
font-weight
:
$gl-font-weight-bold
;
text-decoration
:
none
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录