Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
ffde4225
T
Tabler
项目概览
Dashboards
/
Tabler
大约 1 年 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ffde4225
编写于
10月 30, 2019
作者:
C
codecalm
提交者:
Alex Safian
10月 31, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fullcalendar ui fixes
上级
da32be13
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
142 addition
and
16 deletion
+142
-16
pages/_includes/layout/page-title.html
pages/_includes/layout/page-title.html
+8
-4
pages/_includes/ui/fullcalendar.html
pages/_includes/ui/fullcalendar.html
+62
-6
pages/calendar.html
pages/calendar.html
+1
-0
scss/_variables.scss
scss/_variables.scss
+6
-6
scss/tabler.scss
scss/tabler.scss
+1
-0
scss/ui/_nav.scss
scss/ui/_nav.scss
+1
-0
scss/vendor/_fullcalendar.scss
scss/vendor/_fullcalendar.scss
+63
-0
未找到文件。
pages/_includes/layout/page-title.html
浏览文件 @
ffde4225
...
...
@@ -25,10 +25,14 @@
<!-- Page title actions -->
<div
class=
"col-auto ml-auto"
>
{% if page.page-title-actions == 'users' %}
<div
class=
"d-flex"
>
<input
type=
"search"
class=
"form-control d-inline-block w-9 mr-3"
placeholder=
"Search user…"
/>
{% include ui/button.html text="New user" color="primary" icon="plus" %}
</div>
<div
class=
"d-flex"
>
<input
type=
"search"
class=
"form-control d-inline-block w-9 mr-3"
placeholder=
"Search user…"
/>
{% include ui/button.html text="New user" color="primary" icon="plus" %}
</div>
{% elsif page.page-title-actions == 'calendar' %}
<div
class=
"d-flex"
>
{% include ui/button.html text="Add event" color="primary" icon="plus" %}
</div>
{% else %}
<span
class=
"d-none d-sm-inline"
>
{% include ui/button.html text="New view" color="secondary" icon="plus" %}
...
...
pages/_includes/ui/fullcalendar.html
浏览文件 @
ffde4225
{% assign calendar-id = include.calendar-id | default: 'main' %}
<div
id=
"calendar-{{ calendar-id }}"
></div>
<div
id=
"calendar-{{ calendar-id }}"
class=
"card-calendar"
></div>
{% capture_global scripts %}
<script>
document
.
addEventListener
(
'
DOMContentLoaded
'
,
function
()
{
{
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_calendar
=
window
.
tabler_calendar
||
{};{
%
endif
%
}
var
calendarEl
=
document
.
getElementById
(
'
calendar-{{ calendar-id }}
'
);
var
calendarEl
=
document
.
getElementById
(
'
calendar-{{ calendar-id }}
'
),
today
=
new
Date
(),
y
=
today
.
getFullYear
(),
m
=
today
.
getMonth
(),
d
=
today
.
getDate
();
window
.
FullCalendar
&&
({
%
if
jekyll
.
environment
==
'
development
'
%
}
window
.
tabler_calendar
[
"
calendar-{{ calendar-id }}
"
]
=
{
%
endif
%
}
new
FullCalendar
.
Calendar
(
calendarEl
,
{
plugins
:
[
'
interaction
'
,
'
dayGrid
'
,
'
timeGrid
'
,
'
list
'
],
plugins
:
[
'
interaction
'
,
'
dayGrid
'
],
themeSystem
:
'
standard
'
,
header
:
{
left
:
'
prev,next today
'
,
center
:
'
title
'
,
right
:
'
dayGridMonth,timeGridWeek,timeGridDay
'
left
:
'
title
'
,
center
:
''
,
right
:
'
prev,next
'
},
selectable
:
true
,
selectHelper
:
true
,
nowIndicator
:
true
,
views
:
{
dayGridMonth
:
{
buttonText
:
'
month
'
},
timeGridWeek
:
{
buttonText
:
'
week
'
},
timeGridDay
:
{
buttonText
:
'
day
'
}
},
defaultView
:
'
dayGridMonth
'
,
timeFormat
:
'
H(:mm)
'
,
events
:
[
{
title
:
'
All Day Event
'
,
start
:
new
Date
(
y
,
m
,
1
),
className
:
'
bg-blue-lt
'
},
{
id
:
999
,
title
:
'
Repeating Event
'
,
start
:
new
Date
(
y
,
m
,
7
,
6
,
0
),
allDay
:
false
,
className
:
'
bg-blue-lt
'
},
{
id
:
999
,
title
:
'
Repeating Event
'
,
start
:
new
Date
(
y
,
m
,
14
,
6
,
0
),
allDay
:
false
,
className
:
'
bg-lime-lt
'
},
{
title
:
'
Meeting
'
,
start
:
new
Date
(
y
,
m
,
4
,
10
,
30
),
allDay
:
false
,
className
:
'
bg-green-lt
'
},
{
title
:
'
Lunch
'
,
start
:
new
Date
(
y
,
m
,
5
,
12
,
0
),
end
:
new
Date
(
y
,
m
,
5
,
14
,
0
),
allDay
:
false
,
className
:
'
bg-red-lt
'
},
{
title
:
'
LBD Launch
'
,
start
:
new
Date
(
y
,
m
,
19
,
12
,
0
),
allDay
:
true
,
className
:
'
bg-azure-lt
'
},
{
title
:
'
Birthday Party
'
,
start
:
new
Date
(
y
,
m
,
16
,
19
,
0
),
end
:
new
Date
(
y
,
m
,
16
,
22
,
30
),
allDay
:
false
,
className
:
'
bg-orange-lt
'
}
]
})).
render
();
});
</script>
...
...
pages/calendar.html
浏览文件 @
ffde4225
---
title: Calendar
page-title: Calendar
page-title-actions: calendar
menu: calendar
---
...
...
scss/_variables.scss
浏览文件 @
ffde4225
...
...
@@ -128,12 +128,12 @@ $headings-font-weight: 600 !default;
$small-font-size
:
87
.5%
!
default
;
$h1-font-size
:
(
26em
/
16
)
!
default
;
$h2-font-size
:
(
21em
/
16
)
!
default
;
$h3-font-size
:
(
18em
/
16
)
!
default
;
$h4-font-size
:
(
16em
/
16
)
!
default
;
$h5-font-size
:
(
14em
/
16
)
!
default
;
$h6-font-size
:
(
12em
/
16
)
!
default
;
$h1-font-size
:
(
26
r
em
/
16
)
!
default
;
$h2-font-size
:
(
21
r
em
/
16
)
!
default
;
$h3-font-size
:
(
18
r
em
/
16
)
!
default
;
$h4-font-size
:
(
16
r
em
/
16
)
!
default
;
$h5-font-size
:
(
14
r
em
/
16
)
!
default
;
$h6-font-size
:
(
12
r
em
/
16
)
!
default
;
$blockquote-font-size
:
$h4-font-size
!
default
;
...
...
scss/tabler.scss
浏览文件 @
ffde4225
...
...
@@ -54,6 +54,7 @@
@import
"vendor/jqvmap"
;
@import
"vendor/apexcharts"
;
@import
"vendor/sparkline"
;
@import
"vendor/fullcalendar"
;
@import
"utils/border"
;
@import
"utils/background"
;
...
...
scss/ui/_nav.scss
浏览文件 @
ffde4225
...
...
@@ -46,6 +46,7 @@
.icon
{
display
:
block
;
stroke-width
:
1
.5
;
}
}
...
...
scss/vendor/_fullcalendar.scss
0 → 100644
浏览文件 @
ffde4225
.fc-unthemed
{
.fc-content
,
.fc-divider
,
.fc-list-heading
td
,
.fc-list-view
,
.fc-popover
,
.fc-row
,
tbody
,
td
,
th
,
thead
{
border-color
:
$border-color
;
}
.fc-toolbar
{
h2
{
font-size
:
$h2-font-size
;
margin
:
0
;
}
}
.fc-button
{
@include
button-variant
(
#ffffff
,
$border-color
,
$text-muted
);
@include
button-size
(
$btn-padding-y
,
$btn-padding-x
,
$btn-font-size
,
$btn-border-radius
);
@include
transition
(
$btn-transition
);
}
.fc-widget-header
{
border
:
0
;
}
.fc-day-header
{
padding-bottom
:
.25rem
;
font-weight
:
600
;
}
&
.card-calendar
{
.fc-day-grid-container
{
border-bottom
:
0
;
border-left
:
0
;
td
:last-child
{
//border-right: 0;
}
td
:first-child
{
//border-left: 0;
}
}
}
.fc-time
{
font-weight
:
600
;
}
.fc-event
{
border-color
:
rgba
(
0
,
0
,
0
,
.05
);
color
:
$primary
;
background-color
:
theme-color-lighter
(
$primary
);
padding
:
0
.25rem
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录