summaryrefslogtreecommitdiffstats
path: root/core/css/public.scss
blob: e0ca670fcdbb667ddad42212f41eb9cb34b5f671 (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
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
#body-public {
	min-height: 100vh;
	display: flex;
	flex-direction: column;

	#content {
		flex-grow: 2;
		min-height: initial;

		/** Center the shared content inside the page */
		&.app-files_sharing {
			#app-content {
				min-height: 100%;
				display: flex;
			}

			#files-public-content {
				flex-grow: 2;
				display: grid;
			}

			#preview {
				justify-self: center;
				align-self: center;
				padding-left: 1rem;
				padding-right: 1rem;
			}
		}
	}

	.header-right {
		#header-primary-action a {
			color: var(--color-primary-text);
		}

		#header-secondary-action {
			ul li {
				min-width: 270px;
			}
			#header-actions-toggle {
				background-color: transparent;
				border-color: transparent;

				&:hover,
				&:focus,
				&:active {
					opacity: 1;
				}
			}
			#external-share-menu-item {
				form {
					display: flex;
				}
				.hidden {
					display: none;
				}
				#save-button-confirm {
					flex-grow: 0;
				}
			}
		}
	}

	/** don't apply content header padding on the base layout */
	&.layout-base #content {
		padding-top: 0;
	}

	/* force layout to make sure the content element's height matches its contents' height */
	.ie #content {
		display: inline-block;
	}


	p.info {
		margin: 20px auto;
		text-shadow: 0 0 2px rgba(0, 0, 0, .4);
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}
	p.info, form fieldset legend,
	#datadirContent label,
	form fieldset .warning-info,
	form input[type='checkbox']+label {
		text-align: center;
	}

	/* public footer */
	footer {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		padding: 0.5rem;
		p {
			text-align: center;
			color: var(--color-text-lighter);
			a {
				color: var(--color-text-lighter);
				font-weight: bold;
				white-space: nowrap;
				/* increasing clickability to more than the text height */
				padding: 10px;
				margin: -10px;
				line-height: 200%;
			}
		}
	}
}