_base.sass 3.82 KB
Newer Older
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
// Link styles for Liferay web content and RSS portlet
.journal-content-article,
.portlet-rss,
.tgrep
	a
		@extend %link
		border-bottom: $border-width solid transparent

		+hover
			border-color: $link-hover-color

		> img
			vertical-align: bottom

	article,
	aside,
	details,
	figcaption,
	figure,
	footer,
	header,
	hgroup,
	menu,
	nav,
	section,
	main
		display: block

// Common styles for Liferay web content portlet
.journal-content-article,
.tgrep
	h1
		+heading(1)
		padding-top: $grid

		&:first-child
			padding-top: 0

	h2
		+heading(2)
		padding-top: $grid

		&:first-child
			padding-top: 0

	h1 + h2
		padding-top: 0

	h3,
	h4,
	h5,
	h6
		+heading(3)
		margin: 0 // .aui override

	h1,
	h2,
	p,
	table,
	ul,
	ol,
	form,
	blockquote,
	dl,
	address,
	audio,
	fieldset,
	figure,
	pre,
	video
		margin: 0 0 $line-height

	ol ol,
	ol ul,
	ul ol,
	ul ul
		margin: 0

	small
		font-size: .8125em // i.e. 13px with 16px base font size

	code,
	pre
		font-family: $font-family-code

	code
		color: $text-color // .aui override
		line-height: 1
		vertical-align: middle

	hr
		border: 0
		height: $border-width
		background: linear-gradient(to right, rgba(#000, 0), rgba(#000, .18), rgba(#000, 0))
		margin: ($line-height - $border-width) 0 $line-height

	em,
	i
		font-style: italic

	strong,
	b
		font-weight: bold

	small
		font-size: .8125em
		line-height: 1

	sub,
	sup
		font-size: .75em
		line-height: 0
		position: relative
		vertical-align: baseline

	sup
		top: -.5em

	sub
		bottom: -.25em

	table
		border-bottom: $border-width solid $border-color
		margin: 0 0 ($line-height - $border-width)
		width: 100%

	tr
		border-bottom: $border-width solid $border-color

	th,
	td,
	.table th,
	.table td
		line-height: inherit // .aui override
		padding: ($line-height / 2) .5em ($line-height / 2 - $border-width)
		text-align: left

	th
		font-weight: bold

// Additional content list styles
.journal-content-article
	ol,
	ul
		padding-left: $grid

	ol
		list-style: decimal outside

	ul
		list-style: disc outside

.tgrep
	ol,
	ul
		list-style: none

// Form styles for Liferay web content and web form portlet
.journal-content-article,
.portlet-body > form,
.tgrep
	legend
		+heading(2)
		border: 0
		margin-bottom: $grid

	label
		display: inline
		font-size: inherit
		line-height: inherit
		margin-bottom: 0

	// Need to specify element name and type for .aui override
	input[type=color]
	input[type=date],
	input[type=datetime],
	input[type=datetime-local],
	input[type=email],
	input[type=file],
	input[type=month],
	input[type=number],
	input[type=password],
	input[type=search],
	input[type=tel],
	input[type=text],
	input[type=time],
	input[type=url],
	input[type=week],
	select,
	textarea
		@extend %text-input
		margin: 0
		vertical-align: baseline

		label &
			margin-left: .5em

	input[type=number]
		width: 5em

	input[type=checkbox],
	input[type=radio]
		position: absolute
		visibility: hidden

		+ label:before
			color: $link-color
			width: 1em

			+hover
				color: $link-hover-color

	input[type=checkbox]
		+ label
			+icon('square-o')

		&:checked + label
			+icon('check-square-o')

	input[type=radio]
		+ label
			+icon('circle-o')

		&:checked + label
			+icon('dot-circle-o')

	// Bootstrap
	.control-group
		margin-bottom: $grid

		input[type=color]
		input[type=date],
		input[type=datetime],
		input[type=datetime-local],
		input[type=email],
		input[type=file],
		input[type=month],
		input[type=number],
		input[type=password],
		input[type=search],
		input[type=tel],
		input[type=text],
		input[type=time],
		input[type=url],
		input[type=week],
		select,
		textarea
			max-width: none
			width: 100%

	button,
	[type=button],
	[type=reset],
	[type=submit],
	.btn // Bootstrap
		@extend %button
257
258
259
260

/* markdown docs */
.markdown-doc
	img
261
		max-width: 95%
262
263
264
		display: block
		margin-left: auto
		margin-right: auto
Ubbo Veentjer's avatar
Ubbo Veentjer committed
265
266
267
268

.info-link
	+icon('info-circle', false)
	text-indent: 0