diff --git a/src/components/ApprendimentoSistemiArtificiali/Styles.less b/src/components/ApprendimentoSistemiArtificiali/Styles.less new file mode 100644 index 0000000..cabed8e --- /dev/null +++ b/src/components/ApprendimentoSistemiArtificiali/Styles.less @@ -0,0 +1,5 @@ +@import "../../styles/constants.less"; + +.tick { + color: @cyan; +} diff --git a/src/components/PageSpecific/ApprendimentoSistemiArtificiali/Tick.js b/src/components/ApprendimentoSistemiArtificiali/Tick.js similarity index 100% rename from src/components/PageSpecific/ApprendimentoSistemiArtificiali/Tick.js rename to src/components/ApprendimentoSistemiArtificiali/Tick.js diff --git a/src/components/Elements/Box.js b/src/components/Elements/Box.js deleted file mode 100644 index fa9e199..0000000 --- a/src/components/Elements/Box.js +++ /dev/null @@ -1,25 +0,0 @@ -import style from "./Box.less"; - -export const BoxColors = Object.freeze({ - RED: style.red, - ORANGE: style.orange, - YELLOW: style.yellow, - LIME: style.lime, - CYAN: style.cyan, - BLUE: style.blue, - MAGENTA: style.magenta, - DEFAULT: style.default -}) - -export default function (props) { - let color = BoxColors.DEFAULT; - if(props.color) { - color = props.color; - } - - return ( -
- {props.children} -
- ); -} diff --git a/src/components/Elements/Box.less b/src/components/Elements/Box.less deleted file mode 100644 index 68f0d72..0000000 --- a/src/components/Elements/Box.less +++ /dev/null @@ -1,49 +0,0 @@ -@import "../../styles/constants.less"; - -.box { - padding: 8px; - border-radius: 4px; - margin: 4px; - height: calc(100% - 8px); - min-width: 256px; -} - -.default { - background-color: fade(@fg, 5%); - color: @fg; -} - -.red { - background-color: fade(@red, 5%); - color: @red; -} - -.orange { - background-color: fade(@orange, 5%); - color: @orange; -} - -.yellow { - background-color: fade(@yellow, 5%); - color: @yellow; -} - -.lime { - background-color: fade(@lime, 5%); - color: @lime; -} - -.cyan { - background-color: fade(@cyan, 5%); - color: @cyan; -} - -.blue { - background-color: fade(@blue, 5%); - color: @blue; -} - -.magenta { - background-color: fade(@magenta, 5%); - color: @magenta; -} diff --git a/src/components/Elements/Example.js b/src/components/Elements/Example.js deleted file mode 100644 index ae58bce..0000000 --- a/src/components/Elements/Example.js +++ /dev/null @@ -1,10 +0,0 @@ -import style from "./Example.less"; -import {Component} from "preact"; - -export default function(props) { - return ( -
- {props.children} -
- ); -} diff --git a/src/components/Elements/Example.less b/src/components/Elements/Example.less deleted file mode 100644 index befa023..0000000 --- a/src/components/Elements/Example.less +++ /dev/null @@ -1,31 +0,0 @@ -@import "../../styles/constants.less"; - -@eplus: fade(@example, 5%); -@eplusplus: fade(@example, 10%); - -.example { - color: @example; - background-color: @eplus; - padding: 4px; - border-radius: 4px; - margin: 4px 0; - - table { - border-spacing: 0; - border: 2px solid @eplusplus; - background-color: @eplus; - border-collapse: collapse; - - thead, tbody { - th, td { - padding: 4px; - border: 1px solid @eplusplus; - } - } - - thead { - background-color: @eplusplus; - color: @accent; - } - } -} diff --git a/src/components/Elements/Image.js b/src/components/Elements/Image.js deleted file mode 100644 index ecb64d2..0000000 --- a/src/components/Elements/Image.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function(props) { - return ( - {props.alt}/ - ) -} diff --git a/src/components/Elements/Link.js b/src/components/Elements/Link.js deleted file mode 100644 index c83cb55..0000000 --- a/src/components/Elements/Link.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function (props) { - return ( - {props.children} - ); -} diff --git a/src/components/Elements/Panel.js b/src/components/Elements/Panel.js deleted file mode 100644 index b5f4016..0000000 --- a/src/components/Elements/Panel.js +++ /dev/null @@ -1,15 +0,0 @@ -import style from "./Panel.less"; -import Box from "./Box"; - -export default function(props) { - return ( - -

- {props.title} -

-
- {props.children} -
-
- ); -} diff --git a/src/components/Elements/Panel.less b/src/components/Elements/Panel.less deleted file mode 100644 index d76c023..0000000 --- a/src/components/Elements/Panel.less +++ /dev/null @@ -1,10 +0,0 @@ -@import "../../styles/constants.less"; - -.title { - font-family: @title; - -} - -.contents { - font-family: @text; -} diff --git a/src/components/Elements/Section.js b/src/components/Elements/Section.js deleted file mode 100644 index 9d497a9..0000000 --- a/src/components/Elements/Section.js +++ /dev/null @@ -1,15 +0,0 @@ -import Split from "../Layout/Split"; -import {Fragment} from "preact"; - -export default function (props) { - return ( - -

- {props.title} -

- - {props.children} - -
- ); -} diff --git a/src/components/Elements/TablePanel.js b/src/components/Elements/TablePanel.js deleted file mode 100644 index 8812c3d..0000000 --- a/src/components/Elements/TablePanel.js +++ /dev/null @@ -1,9 +0,0 @@ -import style from "./TablePanel.less"; - -export default function (props) { - return ( - - {props.children} -
- ); -} diff --git a/src/components/Elements/TablePanel.less b/src/components/Elements/TablePanel.less deleted file mode 100644 index ef14a84..0000000 --- a/src/components/Elements/TablePanel.less +++ /dev/null @@ -1,6 +0,0 @@ -@import "../../styles/constants.less"; - -.tablepanel { - margin: 4px; - width: calc(100% - 8px); -} diff --git a/src/components/Elements/Timer.js b/src/components/Elements/Timer.js deleted file mode 100644 index 3dfd540..0000000 --- a/src/components/Elements/Timer.js +++ /dev/null @@ -1,97 +0,0 @@ -import {Component} from 'preact' -import style from "./Timer.less" - - -export default class Timer extends Component { - constructor() { - super(); - this.state = { - "now": Date.now() - }; - this.timer = null; - } - - componentDidMount() { - this.timer = setInterval(() => { - this.setState({"now": Date.now()}) - }, 1000) - } - - componentWillUnmount() { - if(this.timer !== null) { - clearInterval(this.timer) - } - } - - render() { - let dateTo = "Unknown date"; - let className = style.timer; - - let parts = { - milliseconds: "?", - seconds: "?", - minutes: "?", - hours: "?", - days: "?", - }; - - if(this.props.to) { - dateTo = new Date(this.props.to); - let timeLeft = dateTo - this.state.now; - - if(timeLeft > 0) { - parts = { - milliseconds: timeLeft % 1000, - seconds: Math.floor(timeLeft / 1000) % 60, - minutes: Math.floor(timeLeft / 60000) % 60, - hours: Math.floor(timeLeft / 3600000) % 24, - days: Math.floor(timeLeft / 86400000), - }; - } - - else { - parts = { - milliseconds: 0, - seconds: 0, - minutes: 0, - hours: 0, - days: 0, - }; - - className += " " + style.expired; - } - } - else { - className += " " + style.unknown; - } - - return ( -
-
- {parts.days} -
-
- giorni -
-
- {parts.hours} -
-
- ore -
-
- {parts.minutes} -
-
- minuti -
-
- {parts.seconds} -
-
- secondi -
-
- ) - } -} diff --git a/src/components/Elements/Timer.less b/src/components/Elements/Timer.less deleted file mode 100644 index 9dbc8d9..0000000 --- a/src/components/Elements/Timer.less +++ /dev/null @@ -1,59 +0,0 @@ -@import "../../styles/constants"; - -.timer { - display: grid; - text-align: center; - align-items: center; - justify-content: center; - margin-top: 8px; - margin-bottom: 8px; - padding: 8px; - grid-template-columns: 80px 80px 80px 80px; - border: 2px solid @plusplus; - border-radius: 4px; -} - -.days { - grid-column: 1; -} - -.hours { - grid-column: 2; -} - -.minutes { - grid-column: 3; -} - -.seconds { - grid-column: 4; -} - -.count { - grid-row: 1; - font-size: xx-large; - color: @accent; -} - -.text { - grid-row: 2; - font-size: small; -} - -.unknown { - color: @magenta; - border: 2px solid fade(@magenta, 20%); - - .count { - color: @magenta; - } -} - -.expired { - color: @red; - border: 2px solid fade(@red, 20%); - - .count { - color: @red; - } -} diff --git a/src/components/Elements/Todo.js b/src/components/Elements/Todo.js deleted file mode 100644 index 78a5d06..0000000 --- a/src/components/Elements/Todo.js +++ /dev/null @@ -1,10 +0,0 @@ -import style from "./Todo.less"; - -export default function (props) { - if(process.env.NODE_ENV === "development") { - return {props.children}; - } - else { - return null; - } -} diff --git a/src/components/Elements/Todo.less b/src/components/Elements/Todo.less deleted file mode 100644 index 3268d79..0000000 --- a/src/components/Elements/Todo.less +++ /dev/null @@ -1,9 +0,0 @@ -@import "../../styles/constants.less"; - -.todo { - border: 1px yellow solid; - border-radius: 2px; - padding: 1px; - background-color: black; - color: yellow; -} diff --git a/src/components/PageSpecific/Fisica/Minus.js b/src/components/Fisica/Minus.js similarity index 100% rename from src/components/PageSpecific/Fisica/Minus.js rename to src/components/Fisica/Minus.js diff --git a/src/components/Fisica/Minus.less b/src/components/Fisica/Minus.less new file mode 100644 index 0000000..83e8d37 --- /dev/null +++ b/src/components/Fisica/Minus.less @@ -0,0 +1,5 @@ +@import "../../styles/constants"; + +.minus { + color: @blue; +} diff --git a/src/components/PageSpecific/Fisica/Plus.js b/src/components/Fisica/Plus.js similarity index 100% rename from src/components/PageSpecific/Fisica/Plus.js rename to src/components/Fisica/Plus.js diff --git a/src/components/Fisica/Plus.less b/src/components/Fisica/Plus.less new file mode 100644 index 0000000..3660a29 --- /dev/null +++ b/src/components/Fisica/Plus.less @@ -0,0 +1,5 @@ +@import "../../styles/constants"; + +.plus { + color: @red; +} diff --git a/src/components/Layout/Footer.js b/src/components/Footer.js similarity index 100% rename from src/components/Layout/Footer.js rename to src/components/Footer.js diff --git a/src/components/Layout/Footer.less b/src/components/Footer.less similarity index 70% rename from src/components/Layout/Footer.less rename to src/components/Footer.less index a884f8d..f148cb7 100644 --- a/src/components/Layout/Footer.less +++ b/src/components/Footer.less @@ -1,4 +1,4 @@ -@import "../../styles/constants.less"; +@import "../styles/constants.less"; .footer { margin-top: 8px; diff --git a/src/components/Layout/Split.js b/src/components/Layout/Split.js deleted file mode 100644 index 4f04e58..0000000 --- a/src/components/Layout/Split.js +++ /dev/null @@ -1,28 +0,0 @@ -import style from "./Split.less"; - -export default function (props) { - let children; - - if(Array.isArray(props.children)) { - children = props.children.map(element => { - return ( -
- {element} -
- ); - }); - } - - else { - children = ( -
- {props.children} -
- ); - } - return ( -
-
{children}
-
- ); -} diff --git a/src/components/Layout/Split.less b/src/components/Layout/Split.less deleted file mode 100644 index 5f655f4..0000000 --- a/src/components/Layout/Split.less +++ /dev/null @@ -1,16 +0,0 @@ -@import "../../styles/constants.less"; - -.split { - -} - -.splitparent { - display: flex; - flex-wrap: wrap; -} - -.splitchild { - flex-grow: 1; - flex-shrink: 0; - flex-basis: 0; -} diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Empty.js b/src/components/OttimizzazioneLineare/Empty.js similarity index 100% rename from src/components/PageSpecific/OttimizzazioneLineare/Empty.js rename to src/components/OttimizzazioneLineare/Empty.js diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Finite.js b/src/components/OttimizzazioneLineare/Finite.js similarity index 100% rename from src/components/PageSpecific/OttimizzazioneLineare/Finite.js rename to src/components/OttimizzazioneLineare/Finite.js diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Max.js b/src/components/OttimizzazioneLineare/Max.js similarity index 100% rename from src/components/PageSpecific/OttimizzazioneLineare/Max.js rename to src/components/OttimizzazioneLineare/Max.js diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Min.js b/src/components/OttimizzazioneLineare/Min.js similarity index 100% rename from src/components/PageSpecific/OttimizzazioneLineare/Min.js rename to src/components/OttimizzazioneLineare/Min.js diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Styles.less b/src/components/OttimizzazioneLineare/Styles.less similarity index 77% rename from src/components/PageSpecific/OttimizzazioneLineare/Styles.less rename to src/components/OttimizzazioneLineare/Styles.less index 1c7d834..57ed2ef 100644 --- a/src/components/PageSpecific/OttimizzazioneLineare/Styles.less +++ b/src/components/OttimizzazioneLineare/Styles.less @@ -1,4 +1,4 @@ -@import "../../../styles/constants.less"; +@import "../../styles/constants.less"; .unbounded { color: @blue; diff --git a/src/components/PageSpecific/OttimizzazioneLineare/Unbounded.js b/src/components/OttimizzazioneLineare/Unbounded.js similarity index 100% rename from src/components/PageSpecific/OttimizzazioneLineare/Unbounded.js rename to src/components/OttimizzazioneLineare/Unbounded.js diff --git a/src/components/PageSpecific/ApprendimentoSistemiArtificiali/Styles.less b/src/components/PageSpecific/ApprendimentoSistemiArtificiali/Styles.less deleted file mode 100644 index 8ceea18..0000000 --- a/src/components/PageSpecific/ApprendimentoSistemiArtificiali/Styles.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "../../../styles/constants.less"; - -.tick { - color: @cyan; -} diff --git a/src/components/PageSpecific/Fisica/Minus.less b/src/components/PageSpecific/Fisica/Minus.less deleted file mode 100644 index d3f2c53..0000000 --- a/src/components/PageSpecific/Fisica/Minus.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "../../../styles/constants"; - -.minus { - color: @blue; -} diff --git a/src/components/PageSpecific/Fisica/Plus.less b/src/components/PageSpecific/Fisica/Plus.less deleted file mode 100644 index 7fae5a0..0000000 --- a/src/components/PageSpecific/Fisica/Plus.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "../../../styles/constants"; - -.plus { - color: @red; -} diff --git a/src/components/Rendering/BLatex.js b/src/components/Rendering/BLatex.js deleted file mode 100644 index a7e3c27..0000000 --- a/src/components/Rendering/BLatex.js +++ /dev/null @@ -1,7 +0,0 @@ -import Latex, {LatexDisplay} from "./Latex"; - -export default function (props) { - return ( - {props.children} - ); -} diff --git a/src/components/Rendering/Code.js b/src/components/Rendering/Code.js deleted file mode 100644 index 772e9eb..0000000 --- a/src/components/Rendering/Code.js +++ /dev/null @@ -1,11 +0,0 @@ -import SyntaxHighlighter from 'react-syntax-highlighter' -import {monokai} from "react-syntax-highlighter/dist/cjs/styles/hljs"; -import stripTabs from "../../utils/stripTabs"; - -export default function(props) { - return ( - - {stripTabs(String(props.children))} - - ) -} diff --git a/src/components/Rendering/ILatex.js b/src/components/Rendering/ILatex.js deleted file mode 100644 index a2f7a62..0000000 --- a/src/components/Rendering/ILatex.js +++ /dev/null @@ -1,7 +0,0 @@ -import Latex, {LatexDisplay} from "./Latex"; - -export default function (props) { - return ( - {props.children} - ); -} diff --git a/src/components/Rendering/Latex.js b/src/components/Rendering/Latex.js deleted file mode 100644 index 3cb1845..0000000 --- a/src/components/Rendering/Latex.js +++ /dev/null @@ -1,59 +0,0 @@ -import style from './Latex.less'; -import {useContext} from "preact/hooks"; -import LatexRenderColor from "../../contexts/LatexRenderColor"; -import LatexDefaultInline from "../../contexts/LatexDefaultInline"; -import LatexDefaultDisplay from "../../contexts/LatexDefaultDisplay"; - -export const LatexDisplay = Object.freeze({ - INLINE: style.inline, - BLOCK: style.block, -}) - -export default function(props) { - // black, blue, brown, cyan, darkgray, gray, green, lightgray, lime, magenta, olive, orange, pink, purple, red, teal, violet, white, yellow - let renderColor = useContext(LatexRenderColor); - let defaultInline = useContext(LatexDefaultInline); - let defaultDisplay = useContext(LatexDefaultDisplay); - - let inline; - if(props.inline === undefined) { - inline = defaultInline; - } - else { - inline = props.inline; - } - - let display; - if(props.display === undefined) { - if(defaultDisplay === null) { - display = LatexDisplay.INLINE; - } - else { - display = defaultDisplay; - } - } - else { - display = props.display; - } - - if(inline) { - let equation = `\\inline {\\color{${renderColor}} ${props.children} }`; - return ( - {props.children} - ); - } - else { - let equation = `{\\color{${renderColor}} ${props.children} }`; - return ( - {props.children} - ); - } -} diff --git a/src/components/Rendering/Latex.less b/src/components/Rendering/Latex.less deleted file mode 100644 index a23792e..0000000 --- a/src/components/Rendering/Latex.less +++ /dev/null @@ -1,14 +0,0 @@ -@import "../../styles/constants.less"; - -.latex { - -} - -.inline { - display: inline-block; - vertical-align: middle; -} - -.block { - display: block; -} diff --git a/src/components/Rendering/Markdown.js b/src/components/Rendering/Markdown.js deleted file mode 100644 index 160381b..0000000 --- a/src/components/Rendering/Markdown.js +++ /dev/null @@ -1,14 +0,0 @@ -import showdown from "showdown"; -import stripTabs from "../../utils/stripTabs"; -import style from "./Markdown.less"; - -export default function(props) { - let converter = new showdown.Converter({ - "tables": true, - }); - converter.setFlavor("github"); - - let html = converter.makeHtml(stripTabs(String(props.children))); - - return
; -} diff --git a/src/components/Rendering/Markdown.less b/src/components/Rendering/Markdown.less deleted file mode 100644 index ee7249a..0000000 --- a/src/components/Rendering/Markdown.less +++ /dev/null @@ -1,12 +0,0 @@ -@import "../../styles/constants.less"; - -.markdown { - h1, h2, h3, h4, h5, h6 { - text-align: left; - } - - h1 { - padding-bottom: 2px; - border-bottom: 1px solid @plusplusplus; - } -} diff --git a/src/components/Rendering/PLatex.js b/src/components/Rendering/PLatex.js deleted file mode 100644 index 9425ed1..0000000 --- a/src/components/Rendering/PLatex.js +++ /dev/null @@ -1,9 +0,0 @@ -import BLatex from "./BLatex"; - -export default function (props) { - return ( -

- {props.children} -

- ); -} diff --git a/src/contexts/LatexDefaultDisplay.js b/src/contexts/LatexDefaultDisplay.js deleted file mode 100644 index c59493c..0000000 --- a/src/contexts/LatexDefaultDisplay.js +++ /dev/null @@ -1,3 +0,0 @@ -import {createContext} from "preact"; - -export default createContext(null); diff --git a/src/contexts/LatexDefaultInline.js b/src/contexts/LatexDefaultInline.js deleted file mode 100644 index f38b214..0000000 --- a/src/contexts/LatexDefaultInline.js +++ /dev/null @@ -1,3 +0,0 @@ -import {createContext} from "preact"; - -export default createContext(true); diff --git a/src/contexts/LatexRenderColor.js b/src/contexts/LatexRenderColor.js deleted file mode 100644 index 0c25062..0000000 --- a/src/contexts/LatexRenderColor.js +++ /dev/null @@ -1,3 +0,0 @@ -import {createContext} from "preact"; - -export default createContext("White"); diff --git a/src/index.js b/src/index.js index 4824b97..5af3508 100644 --- a/src/index.js +++ b/src/index.js @@ -37,13 +37,12 @@ import Home from './routes/Home'; import Fisica from './routes/Fisica'; import VlDiGeometria from './routes/VlDiGeometria'; import MingwInstall from './routes/MingwInstall'; -import Footer from './components/Layout/Footer'; +import Footer from './components/Footer'; import Statistica from './routes/Statistica'; import OttimizzazioneLineare from "./routes/OttimizzazioneLineare"; import BasiDiDati from './routes/BasiDiDati'; import CalcoloNumerico from './routes/CalcoloNumerico'; import ApprendimentoSistemiArtificiali from "./routes/ApprendimentoSistemiArtificiali"; -import LatexRenderColor from "./contexts/LatexRenderColor"; import NetLogo from "./routes/NetLogo"; import AlgoritmiEStruttureDati from "./routes/AlgoritmiEStruttureDati"; @@ -51,23 +50,21 @@ import AlgoritmiEStruttureDati from "./routes/AlgoritmiEStruttureDati"; export default function(props) { return (
- -

Appuntiweb di Steffo

- - - - - - - - - - - - - -
); } diff --git a/src/index.less b/src/index.less index c2e36ff..fe5f987 100644 --- a/src/index.less +++ b/src/index.less @@ -1,154 +1,2 @@ @import "styles/constants.less"; -* { - box-sizing: border-box; -} - -body { - background-color: @bg; - color: @fg; - font-family: @sans; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 4px; - margin-bottom: 4px; - color: @accent; - font-family: @title; - font-weight: normal; - text-align: center; -} - -// By default h1 are as large as h2 -h1 { - font-size: xx-large; -} - -a { - color: @link; - text-decoration: none; - - &:hover { - color: @linkhover; - } - - &:active { - color: @linkactive; - } -} - -img, iframe { - max-width: 100%; - max-height: 300px; - border-radius: 4px; -} - -pre, code { - font-family: @mono; - font-size: 14px; -} - -blockquote { - color: @fg; - border-left: 3px solid @plusplusplusplus; - background-color: @plus; - padding: 4px 4px 4px 8px; - margin: 8px 0; -} - -input[type="text"], input[type="password"] { - color: @fg; - background-color: @bg; - border: 1px solid @plusplus; - border-radius: 4px; - padding: 4px; - font-size: medium; - - &:disabled, &.disabled { - color: @disabledfg; - background-color: @disabledbg; - border-style: dotted; - cursor: not-allowed; - } -} - -button { - color: @fg; - background-color: @bg; - border: 1px solid @plusplus; - border-radius: 4px; - padding: 4px; - font-size: medium; - - &:hover, &.hover { - background-color: @plusplus; - border: 1px solid @fg; - color: @fg; - } - - &:active, &.active { - background-color: fade(@accent, 20%); - border: 1px solid @accent; - color: @accent; - } - - &:disabled, &.disabled { - color: @disabledfg; - background-color: @disabledbg; - border-style: dotted; - cursor: not-allowed; - } -} - -hr { - border: 1px solid @plusplusplusplus; - margin-top: 24px; - margin-bottom: 24px; -} - -table { - border-spacing: 0; - border: 2px solid @plusplus; - background-color: @plus; - border-collapse: collapse; - - thead, tbody { - th, td { - padding: 4px; - border: 1px solid @plusplus; - } - } - - thead { - background-color: @plusplus; - color: @accent; - } -} - -li { - margin: 10px 0; -} - -p:first-child { - margin-top: 0; -} - -p:last-child { - margin-bottom: 0; -} - -b { - color: @accent; -} - -abbr[title] { - cursor: help; -} - -aside { - margin: 4px 0; - padding: 4px; - font-size: smaller; - background-color: @plus; - border-radius: 4px; -} diff --git a/src/routes/ApprendimentoSistemiArtificiali.js b/src/routes/ApprendimentoSistemiArtificiali.js index e436fae..b282b25 100644 --- a/src/routes/ApprendimentoSistemiArtificiali.js +++ b/src/routes/ApprendimentoSistemiArtificiali.js @@ -7,7 +7,7 @@ import ILatex from "../components/Rendering/ILatex"; import TablePanel from "../components/Elements/TablePanel"; import BLatex from "../components/Rendering/BLatex"; import PLatex from "../components/Rendering/PLatex"; -import Tick from "../components/PageSpecific/ApprendimentoSistemiArtificiali/Tick"; +import Tick from "../components/ApprendimentoSistemiArtificiali/Tick"; const r = String.raw; diff --git a/src/routes/Fisica.js b/src/routes/Fisica.js index a20d0e1..a04c252 100644 --- a/src/routes/Fisica.js +++ b/src/routes/Fisica.js @@ -2,8 +2,8 @@ import { Component } from 'preact'; import Latex, {LatexDisplay} from '../components/Rendering/Latex'; import Panel from '../components/Elements/Panel'; import Section from "../components/Elements/Section"; -import Plus from '../components/PageSpecific/Fisica/Plus'; -import Minus from '../components/PageSpecific/Fisica/Minus'; +import Plus from '../components/Fisica/Plus'; +import Minus from '../components/Fisica/Minus'; import Todo from "../components/Elements/Todo"; import LatexDefaultInline from "../contexts/LatexDefaultInline"; import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay"; diff --git a/src/routes/OttimizzazioneLineare.js b/src/routes/OttimizzazioneLineare.js index 9ea9ae4..cb30fce 100644 --- a/src/routes/OttimizzazioneLineare.js +++ b/src/routes/OttimizzazioneLineare.js @@ -4,14 +4,14 @@ import Panel from "../components/Elements/Panel"; import Example from "../components/Elements/Example"; import Todo from "../components/Elements/Todo"; import Timer from "../components/Elements/Timer"; -import Empty from "../components/PageSpecific/OttimizzazioneLineare/Empty"; -import Unbounded from "../components/PageSpecific/OttimizzazioneLineare/Unbounded"; -import Min from "../components/PageSpecific/OttimizzazioneLineare/Min"; -import Max from "../components/PageSpecific/OttimizzazioneLineare/Max"; +import Empty from "../components/OttimizzazioneLineare/Empty"; +import Unbounded from "../components/OttimizzazioneLineare/Unbounded"; +import Min from "../components/OttimizzazioneLineare/Min"; +import Max from "../components/OttimizzazioneLineare/Max"; import PLatex from "../components/Rendering/PLatex"; import LatexDefaultInline from "../contexts/LatexDefaultInline"; import TablePanel from "../components/Elements/TablePanel"; -import Finite from "../components/PageSpecific/OttimizzazioneLineare/Finite"; +import Finite from "../components/OttimizzazioneLineare/Finite"; const r = String.raw; diff --git a/src/routes/Statistica.js b/src/routes/Statistica.js index 1f2bd71..6fe258d 100644 --- a/src/routes/Statistica.js +++ b/src/routes/Statistica.js @@ -2,8 +2,8 @@ import Latex, {LatexDisplay} from '../components/Rendering/Latex'; import Panel from '../components/Elements/Panel'; import Section from "../components/Elements/Section"; import Example from "../components/Elements/Example"; -import Plus from "../components/PageSpecific/Fisica/Plus"; -import Minus from "../components/PageSpecific/Fisica/Minus"; +import Plus from "../components/Fisica/Plus"; +import Minus from "../components/Fisica/Minus"; import LatexDefaultInline from "../contexts/LatexDefaultInline"; import LatexDefaultDisplay from "../contexts/LatexDefaultDisplay"; diff --git a/src/styles/override-easymde.less b/src/styles/override-easymde.less deleted file mode 100644 index 919e508..0000000 --- a/src/styles/override-easymde.less +++ /dev/null @@ -1,121 +0,0 @@ -@import "constants.less"; - -.CodeMirror { - font-family: "Consolas", monospace !important; - background-color: @bg !important; - color: @fg !important; - border-top: 0 !important; - border-bottom: 0 !important; - border-left: 1px solid @bg-lighter !important; - border-right: 1px solid @bg-lighter !important; - border-radius: 0 !important; - caret-color: white; - - .cm-link { - color: @cyan !important; - } - - .cm-url { - color: @link !important; - } - - .cm-tag { - color: @magenta !important; - } - - .cm-strong { - color: @yellow !important; - } - - .cm-em { - color: @orange !important; - } - - .cm-quote { - color: @lime !important; - } - - .cm-comment { - color: lightgray !important; - } - - .cm-header { - color: @accent !important; - } - - .CodeMirror-cursor { - border-left: 1px solid @fg !important; - } -} -.editor-toolbar, .editor-statusbar { - background-color: @bg-light !important; - color: @fg !important; - opacity: 1 !important; - - a { - color: @fg !important; - border: 0 !important; - - &:hover { - background-color: @bg-lighter !important; - color: lighten(@fg, 25%) !important; - } - - &.active { - background-color: fade(@fg, 30%) !important; - color: white !important; - - &:hover { - background-color: @bg-lighter !important; - color: lighten(@fg, 25%) !important; - } - } - } - - .fas, .far, .fab { - color: @fg !important; - - &:hover { - color: @fg !important; - } - - &:active { - color: white !important; - } - } -} - -.editor-toolbar { - border-top: 1px solid @bg-lighter !important; - border-left: 1px solid @bg-lighter !important; - border-right: 1px solid @bg-lighter !important; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - - button { - color: @fg; - - &:hover { - background-color: @bg-lighter; - border: none; - } - - &:active, &.active { - background-color: @bg-lighter; - border: none; - color: @accent; - } - } - - i.separator { - border-color: @bg-lighter; - } -} - -.editor-statusbar { - border-bottom: 1px solid @bg-lighter !important; - border-left: 1px solid @bg-lighter !important; - border-right: 1px solid @bg-lighter !important; - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; -}