• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jackyliang/Material-Design-For-Full-Calendar: Material Design CSS theme for Full ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jackyliang/Material-Design-For-Full-Calendar

开源软件地址(OpenSource Url):

https://github.com/jackyliang/Material-Design-For-Full-Calendar

开源编程语言(OpenSource Language):

CSS 100.0%

开源软件介绍(OpenSource Introduction):

Material Design for jQuery Full Calendar

A Material Design theme for the jQuery Full Calendar plugin

What the actual Android Material Design calendar looks like:

This is what default FullCalendar looks like. Ew!

While FullCalendar is pretty awesome, it looks pretty terrible without any styling. I was inspired by Google's Material Design, while coincidentally I needed a fitting theme for my Drexel Schedulizer service. Doing some basic research, it didn't seem like there were any Material Design calendar plugins or themes that were as flexible as FullCalendar's functionality, so I took matters to my own hands and put this together.

Setup Full Calendar

Initialize your FullCalendar object using the following settings

editable: false, // Don't allow editing of events
handleWindowResize: true,
weekends: false, // Hide weekends
defaultView: 'agendaWeek', // Only show week view
header: false, // Hide buttons/titles
minTime: '07:30:00', // Start time for the calendar
maxTime: '22:00:00', // End time for the calendar
columnFormat: {
    week: 'ddd' // Only show day of the week names
},
displayEventTime: true, // Display event time

Usage

Compile _materialFullCalendar.scss using your favorite SASS compiler, or simply change the file extension to .css. There's little to no actual SASS elements in here.

Pushing and adding new events is still the same, although you apply a color attribute.

events.push({
    title: 'This is a Material Design event!',
    start: 'someStartDate',
    end: 'someEndDate',
    color: '#C2185B'
});

Applying Material Design Colors

Color palette was pulled from the Google Material Design documentation.

Highly recommend the 700 level palette to achieve the same color effect as I do.

An opacity of 0.65 is automatically applied to each event to achieve a softer look.

Please Note

This theme is in no way complete. I did not test it in the monthly or daily views, since for my purposes, I only needed it to be used in an agendaWeek. It might also be buggy when used in other contexts. Feel free to contribute using the instructions below.

How to Contribute:

  1. Pull/Fork

  2. Issue pull requests

  3. Make issues

License:

MIT. Just credit me.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap