javascript - FullCalendar Scheduler : Parallelogram Shaped Events -


i change event shape square parallelogram, see image below example:

enter image description here

i tried changing css

.fc-event-container{     background-color:rgba(2,2,2,0.9);     float:left;      skew      -webkit-transform: skew(-60deg);      -moz-transform: skew(-60deg);      -o-transform: skew(-60deg);     transform: skew(-60deg);  }

but distorted event container, see image

enter image description here

using info here how skew element keep text normal (unskewed)

.fc-content {   skew -webkit-transform: skew(60deg);   -moz-transform: skew(60deg);   -o-transform: skew(60deg);   transform: skew(60deg); } 

seems work

https://jsfiddle.net/qjls3tfa/

the float: left may cause shrink event though seen in month view in fiddle


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -