Border radius fix, forecast example, disabled classes, tabs example, buttons example

This commit is contained in:
Vinícius Biavatti
2021-01-06 20:34:44 +00:00
parent 2fcb4261e9
commit d91cd6a15a
20 changed files with 352 additions and 19 deletions

View File

@@ -10,7 +10,11 @@
cursor: pointer;
text-align: center;
box-shadow: 10px 10px black;
border-radius: 0px;
@include disable-select;
&.disabled {
text-decoration: line-through;
}
}
.tui-button:active {
background-color: rgb(0, 168, 168)!important;

View File

@@ -8,6 +8,9 @@
color: white;
padding-left: 30px;
@include disable-select;
&.disabled {
color: rgb(168, 168, 168)
}
}
.tui-checkbox input {
position: absolute;
@@ -15,6 +18,7 @@
cursor: pointer;
top: 0px;
left: 0px;
pointer-events: none;
}
.tui-checkbox span {
position: absolute;

View File

@@ -3,7 +3,11 @@
color: white;
outline:0;
border: none;
padding: 1px;
border-radius: 0px;
&.disabled {
background-color: rgb(168, 168, 168);
color: black;
}
}
.tui-input:focus {
background-color: rgb(255, 255, 0)!important;

View File

@@ -8,6 +8,9 @@
color: white;
padding-left: 30px;
@include disable-select;
&.disabled {
color: rgb(168, 168, 168)
}
}
.tui-radio input {
position: absolute;
@@ -15,6 +18,7 @@
cursor: pointer;
top: 0px;
left: 0px;
pointer-events: none;
}
.tui-radio span {
position: absolute;

View File

@@ -20,6 +20,9 @@
background-color: rgb(168, 168, 168);
color: rgb(0, 0, 168);
}
&.disabled {
text-decoration: line-through;
}
}
.tui-tab-content {
display: none;

View File

@@ -4,4 +4,8 @@
padding: 0px;
color: rgb(255, 255, 0);
outline: none;
&.disabled {
background-color: rgb(168, 168, 168);
color: black;
}
}

View File

@@ -30,6 +30,12 @@ function tabsController() {
for (const tab of tabs) {
// Add click listeners to them.
tab.addEventListener('click', function (e) {
// Check if the clicked tab is disabled
if(e.target.classList.contains("disabled")) {
return;
}
// Remove the 'active' class from any and all tabs.
for (const otherTab of tabs) {
otherTab.classList.remove('active');

View File

@@ -65,6 +65,9 @@
.no-padding {
padding: 0px!important;
}
.no-border {
border: none!important;
}
.content {
padding: 12px;
}
@@ -77,4 +80,8 @@
}
.cursor-default {
cursor: default !important;
}
.disabled {
cursor: not-allowed!important;
}