date-paginator.less 1.94 KB
Newer Older
Percy Quispe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
/* ------------------------------------------------------------------------------
 *
 *  # Date paginator
 *
 *  A jQuery plugin which adds date selection to the Bootstrap pagination component
 *
 *  Version: 1.0
 *  Latest update: May 25, 2015
 *
 * ---------------------------------------------------------------------------- */


// Core
// ------------------------------

.datepaginator {
	height: 72px;
	text-align: center;
}
.datepaginator-sm {
	height: 68px;
}
.datepaginator-lg {
	height: 76px;
}


// Pagination styling
// ------------------------------

.datepaginator {
	.pagination {
		white-space: nowrap;

		// List items
		> li {
			display: inline-block;

			// All links
			> a {
				min-width: auto;
				text-align: center;
				border-radius: @border-radius-base;
				margin-left: 0;
				border: 0;
			}

			// Square corners
			.dp-nav-square-edges {
				border-radius: 0;
			}

			// Day off
			.dp-off {
				background-color: #fafafa;
			}

			// No select
			.dp-no-select {
				color: #ccc;
				background-color: #fafafa;

				&:hover {
					background-color: #fafafa;
				}
			}

			// Calendar
			#dp-calendar {
				position: absolute;
				right: 6px;
				top: 6px;
			}

			// Nav arrows
			> .dp-nav {
				height: 72px;
				padding: 29px 0;
				width: 38px;
				line-height: 1;
				border-radius: @border-radius-base;
			}
			> a.dp-nav-sm {
				height: 68px;
				padding: 27px 0;
			}
			> a.dp-nav-lg {
				height: 76px;
				padding: 31px 0;
			}

			// Items
			> a.dp-item {
				height: 72px;
				padding: 15px 0;
				width: 35px;
			}

			> a.dp-item-sm {
				height: 68px;
				padding: 13px 0;
			}
			> a.dp-item-lg {
				height: 76px;
				padding: 17px 0;
			}

			// Dates highlight
			> .dp-today {
				&,
				&:hover,
				&:focus {
					background-color: @brand-primary;
					color: #fff;
				}
			}
			> .dp-selected {
				&,
				&:hover,
				&:focus {
					background-color: @color-teal-400;
					color: #fff;
					width: 140px;
				}
			}
		}
	}
}