CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/course/styles.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { CSSProperties } from "react";
7
8
import { merge, types } from "@cocalc/util/misc";
9
10
export const entry_style: CSSProperties = {};
11
12
export const selected_entry: CSSProperties = merge(
13
{
14
border: "1px solid #aaa",
15
boxShadow: "5px 5px 5px #999",
16
borderRadius: "3px",
17
marginBottom: "10px",
18
},
19
entry_style,
20
);
21
22
export const note: CSSProperties = {
23
borderTop: "3px solid #aaa",
24
marginTop: "10px",
25
paddingTop: "5px",
26
};
27
28
export function show_hide_deleted(opts): CSSProperties {
29
types(opts, { needs_margin: types["bool"]?.isRequired });
30
31
return {
32
marginTop: opts.needs_margin ? "15px" : "0px",
33
float: "right",
34
};
35
}
36
37