aboutsummaryrefslogtreecommitdiffstats
path: root/theme/default/rsrc/css/import/_responsive.scss
blob: d248bf41bb00d4b6c9abe7d1b5ec6d260478185f (plain)
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
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Responsive Level #1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@media only screen and (max-width: 50em) {
	html {
		font-size: 1.125rem; /*18px*/
		background-image: none !important;
	}

	body {
		line-height: 1.2rem;
	}

	#container {
		margin: 0;
		border-right: none;
		border-left: none;
	}
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Responsive Level #2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
@media only screen and (max-width: 37.5em) {
	main, #main-header > div {
		padding: 1rem;
	}

	#main-navi {
		padding: 0.25rem 1rem;
	}

	#main-navi a {
		border: 0.05rem solid transparent;
	}

	#main-navi a:hover, #main-navi a:focus {
		border: 0.05rem solid #BBB;
	}

	#main-navi > ul {
		display: none;
		float: none;
	}

	#main-navi > ul > li a {
		display: block;
		text-align: left;
		padding: 0 0.25rem;
	}

	#main-navi {
		overflow: hidden;
	}

	#toogle-nav-label {
		display: block;
	}

	#toogle-nav:checked + ul {
		display: block;
	}

	#main-navi li:last-child {
		float: none;
	}

	.item > header {
		text-align: center;
	}

	.item > header > h2,
	.item > header > .info {
		float: none;
		display: block;
	}
}