Files
tbbank-frontend/assets/css/app.css

365 lines
6.0 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Basic styles */
.title-logo {
color: #ffd700;
text-shadow: 1px 1px #b87500;
}
#page-content a[href="https://ib.tbbank.gov.tm/ib/"],
#page-content a[href^="https://tbbank.gov.tm/pdf/"] {
background-color: #67b03d;
color: white;
padding: 0.6em;
border-radius: 5px;
}
#page-content tbody a {
text-decoration: underline;
color: #67b03d;
}
.news-img-size {
object-fit: contain;
object-position: center;
width: 100%;
height: 100%;
}
#menu-items {
transition: top, opacity 1s ease-in-out, top, opacity 1s ease-in-out;
}
nav {
border: 1px solid #67b03d;
}
table,
th,
td,
tbody {
border: 0.5px solid white;
border-collapse: collapse;
}
.min-w-td {
min-width: 200px;
text-align: start;
}
.bg-green {
background-color: #67b03d;
}
.green-color {
color: #67b03d;
}
.menu :where(li ul):first-of-type:before {
width: 0 !important;
}
blockquote {
margin-top: 20px;
margin-bottom: 20px;
background: #f5f5f5!important;
border: 1px solid #ededed!important;
color: #67b03d!important;
font-size: 18px!important;
font-weight: 400!important;
line-height: 31.2px!important;
padding: 11px 0!important;
text-align: center!important;
text-transform: uppercase!important;
}
#page-content p {
margin-bottom: 20px;
}
#page-content table {
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 20px;
max-width: 100%;
width: 100%;
}
#page-content table tbody tr td {
border: 1px solid silver;
height: 37px;
line-height: 1.42857143;
padding: 8px;
vertical-align: top;
width: 56px;
}
@media screen and (min-width: 1024px) {
.bg-green-nav {
background-color: #67b03d;
}
}
@media screen and (min-width:1024px) {
.dropbtn {
color: white;
padding: 12px 8px;
font-size: 14px;
border: none;
text-transform: uppercase;
}
}
@media screen and (max-width:1024px) {
#page-content {
width: 80%;
margin: auto;
}
.dropbtn {
color: #67b03d;
padding: 10px;
font-size: 16px;
border: none;
margin-bottom: 5px;
}
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 230px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a {
color: #67b03d;
padding: 12px 16px;
text-decoration: none;
display: block;
font-size: 14px;
text-transform: uppercase;
border-bottom: 1px solid rgb(165, 165, 165);
}
/*.dropdown-content li a:last-child {
border-bottom: none;
}*/
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown:hover .dropdown-content {
display: block !important;
visibility: inherit;
opacity: 1;
}
/* END Basic styles */
/* Main homepage slider */
.images {
overflow: hidden;
width: 100%;
}
.custom-slider {
overflow: hidden;
width: 100%;
position: relative;
touch-action: pan-y;
cursor: grab;
max-height: 640px;
max-width: 1280px;
margin: 0 auto;
}
.custom-slider:active {
cursor: grabbing;
}
.custom-slider .slider-track {
display: flex;
align-items: flex-start;
width: 100%;
transition: transform 0.6s ease;
will-change: transform;
}
.custom-slider .slider-track.is-dragging {
transition: none;
}
.custom-slider .slider-slide {
flex: 0 0 100%;
width: 100%;
min-width: 100%;
max-height: 640px;
user-select: none;
-webkit-user-drag: none;
}
.custom-slider .slider-slide img {
display: block;
width: 100%;
max-width: 100%;
max-height: 640px;
height: auto;
object-fit: contain;
margin: 0 auto;
pointer-events: none;
-webkit-user-drag: none;
}
.custom-slider .slider-slide a {
display: block;
-webkit-user-drag: none;
}
/* END main homepage slider */
/* Slider */
.mySlides {
display: none
}
img {
vertical-align: middle;
}
/* Slideshow container */
.slideshow-container {
max-width: 100%;
position: relative;
margin: auto;
}
/* Next & previous buttons */
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Caption text */
.text {
color: #f2f2f2;
font-size: 20px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
.active,
.dot:hover {
background-color: #717171;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {
opacity: .4
}
to {
opacity: 1
}
}
@keyframes fade {
from {
opacity: .4
}
to {
opacity: 1
}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.prev,
.next,
.text {
font-size: 11px
}
.dot {
height: 10px;
width: 10px;
}
@media only screen and (max-width: 500px) {
.prev,
.next,
.text {
font-size: 14px
}
}
}
/* END Slider */