JSFiddle - React, Tailwind, and code Playground
by cmruser
CSS
.widget {
flex: 1;
background-color: #fff;
border: none;
border-radius: 4px;
margin-bottom: 2rem;
box-shadow: 0 0 0 1px rgba(63,63,68,.05), 0 1px 3px 0 rgba(63,63,68,.15);
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.widget > header {
border-radius: 4px 4px 0 0;
background: #1e66a0;
}
.widget > main {
padding: 1rem;
min-height: 150px;
max-height: 150px;
overflow-y: auto;
}
.widget .title {
font-size: 14px;
font-weight: bold;
color: #fff;
margin-right: auto;
text-transform: uppercase;
z-index: 2;
}
.widget > header .icon:before {
color: #fff;
font-size: 32px;
margin-right: .5rem;
}
.widget > footer {
align-items: center;
vertical-align: middle;
}
.widget > footer a {
display: inline-block;
text-transform: uppercase;
color: #0699dc;
font-size: 12px;
}
.widget .list li {
padding: .5rem 0;
color: #737373;
}
.widget .list span {
font-size: 12px;
color: #737373;
}
.widget-questionsanswers header .icon:before {
content: "help_outline";
}
.widget-documents header .icon:before {
content: "folder_open";
}
.widget-events header .icon:before {
content: "place";
}
.widget-questionsanswers .list li a {
display: inline-flex;
align-items: center;
padding: .2rem .5rem;
color: #fff;
background-color: #4caf50;
text-transform: uppercase;
font-size: 10px;
border-radius: 4px;
}
.widget-documents .list li a {
display: flex;
align-items: center;
color: #737373;
text-decoration: none;
}
.widget-documents .list li a:before,
.widget-documents .list li a:after,
.widget-dealregistration .list li a:first-child:before {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
display: inline-block;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
-webkit-font-smoothing: antialiased;
...