Blob: style.css

Blob id: fd4e063a64b78b615c854e25ab7576b9398e9914

Size: 2.3 KB

  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
129
130
:root { 
  --kpedu: #01a4e4;  /*Matti nimes muuttujat*/
  --Pääharmaa: #3d3d3d;
  color-scheme: light dark;
  --MUSTA: 	#40444b;
  --MUSTA2: #c2c2c2;
  --MUSTA3:  #2f3136;
  --Valkoinen: white;
  --Porche-911: #999999;
  
}

* {
    font-family: sans-serif;
    
}
body{
    background-color: light-dark(var(--Valkoinen),var(--MUSTA));
}

a {
    text-decoration: none;
    color: light-dark(blue, var(--kpedu));
}

button {
    border: none;
	background-color: var(--kpedu);
    color: var(--Valkoinen);
    padding: 6px 8px;
    border-radius: 10%;
    cursor: pointer;
}

input {
    padding: 5px 10px;
}

select {
    padding: 5px 10px;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  border-top: 1px solid var(--Porche-911);
  border-bottom: 1px solid var(--Porche-911);
}

th,
td {
  vertical-align: top;
  padding: 0.6em;
}

tbody tr:nth-child(odd) {
  background-color: light-dark(var(--Valkoinen),var(--MUSTA));;
}

thead tr th:nth-child(1), /* Siivoa jos osaat css */
tbody tr td:nth-child(1) {
	position: sticky;
	left: 0;
	z-index: 0;
	background-color: light-dark(var(--kpedu),var(--MUSTA));
}

.table-container{
    width: 100%;
    overflow-x: auto;
}

.searchInput {
    margin-bottom: 5px;
}

table .muokkaus-column {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

footer{
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: light-dark(var(--Valkoinen), var(--MUSTA3));
    color: light-dark (var(--Valkoinen), var(--MUSTA3));
    text-align: center;
}

header {
	z-index: 10;
}

.navigaatio {
    background-color:light-dark(var(--Valkoinen),var(--MU));
    position: sticky; 
    top: 0;
    overflow: hidden;
}

.navigaatio nav{
    display: flex;
    justify-content: space-between;
	flex-flow: row wrap;
    max-width: 100%;
}

.navigaatio-osio {
    display: flex;
    flex-direction: row;
    gap: 4px;
    color: light-dark( var(--Pääharmaa),#c2c2c2);
}

.navigaatio-osio a {
    color:  light-dark( var(--Pääharmaa),#c2c2c2);
}

.navigaatio-osio a:hover {
    color:  light-dark( var(--Pääharmaa),#c2c2c2);
}

footer {
    color:  light-dark( var(--Pääharmaa),#c2c2c2);
}
body