Skip to content
Snippets Groups Projects
Commit 122e46ce authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Change icons style location in a sass file. ALso overcome the issue...

[REF]: Change icons style location in a sass file. ALso overcome the issue when Mui sets box-sizing=inherit
parent fce8e3c0
Branches
Tags
No related merge requests found
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
} }
//// ICONS //// ICONS
.files-ui-file-icon { /* .files-ui-file-icon {
font-size: 0.7rem; font-size: 0.7rem;
min-width: 19px; min-width: 19px;
min-height: 19px; min-height: 19px;
...@@ -229,6 +229,7 @@ ...@@ -229,6 +229,7 @@
border-radius: 50%; border-radius: 50%;
background-color: rgba(32, 33, 36, 0.65); background-color: rgba(32, 33, 36, 0.65);
word-break: break-word; word-break: break-word;
box-sizing: content-box;
&:hover { &:hover {
background-color: rgba(32, 33, 36, 0.85); background-color: rgba(32, 33, 36, 0.85);
} }
...@@ -238,4 +239,4 @@ ...@@ -238,4 +239,4 @@
background-color: rgba(154, 160, 166, 0.85); background-color: rgba(154, 160, 166, 0.85);
} }
} }
} } */
\ No newline at end of file \ No newline at end of file
import * as React from "react"; import * as React from "react";
import { FileCardProps } from "./FileCardProps"; import { FileCardProps } from "./FileCardProps";
import "./FileCard.scss"; import "./FileCard.scss";
import "./../icons/IconStyles.scss";
import "./components/FileCardPaper.scss"; import "./components/FileCardPaper.scss";
import { fileSizeFormater, getLocalFileItemData, handleClickUtil, shrinkWord } from "../../core"; import { fileSizeFormater, getLocalFileItemData, handleClickUtil, shrinkWord } from "../../core";
import useProgress from "../file-mosaic/hooks/useProgress"; import useProgress from "../file-mosaic/hooks/useProgress";
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
} }
//// ICONS //// ICONS
.files-ui-file-icon { /* .files-ui-file-icon {
font-size: 0.7rem; font-size: 0.7rem;
min-width: 19px; min-width: 19px;
min-height: 19px; min-height: 19px;
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
border-radius: 50%; border-radius: 50%;
background-color: rgba(32, 33, 36, 0.65); background-color: rgba(32, 33, 36, 0.65);
word-break: break-word; word-break: break-word;
box-sizing: content-box;
&:hover { &:hover {
background-color: rgba(32, 33, 36, 0.85); background-color: rgba(32, 33, 36, 0.85);
} }
...@@ -192,3 +193,4 @@ ...@@ -192,3 +193,4 @@
} }
} }
} }
*/
\ No newline at end of file
...@@ -5,8 +5,9 @@ import { ...@@ -5,8 +5,9 @@ import {
getLocalFileItemData, getLocalFileItemData,
handleClickUtil, handleClickUtil,
} from "../../../../core"; } from "../../../../core";
import { FileMosaicProps } from "./FileMosaicProps";
import "./FileMosaic.scss"; import "./FileMosaic.scss";
import "./../../../icons/IconStyles.scss";
import { FileMosaicProps } from "./FileMosaicProps";
import LayerContainer from "../file-mosaic-layer/LayerContainer"; import LayerContainer from "../file-mosaic-layer/LayerContainer";
import Layer from "../file-mosaic-layer/Layer"; import Layer from "../file-mosaic-layer/Layer";
import FileMosaicName from "../FileMosaicName/FileMosaicName"; import FileMosaicName from "../FileMosaicName/FileMosaicName";
...@@ -115,7 +116,7 @@ const FileMosaic: React.FC<FileMosaicProps> = (props: FileMosaicProps) => { ...@@ -115,7 +116,7 @@ const FileMosaic: React.FC<FileMosaicProps> = (props: FileMosaicProps) => {
); );
//The size formatted and rounded in 2 decimals //The size formatted and rounded in 2 decimals
const sizeFormatted: string| undefined = fileSizeFormater(localSize); const sizeFormatted: string | undefined = fileSizeFormater(localSize);
//alwaysActive //alwaysActive
const [showInfo, setShowInfo] = React.useState<boolean>(false); const [showInfo, setShowInfo] = React.useState<boolean>(false);
......
import React, { FC } from "react"; import * as React from "react";
import { parseSize } from "../utils/utils"; import { parseSize } from "../utils/utils";
import { CancelProps } from "./CancelProps"; import { CancelProps } from "./CancelProps";
import { handleClickUtil } from "../../../core"; import { handleClickUtil } from "../../../core";
const Cancel: FC<CancelProps> = (props: CancelProps) => { const Cancel: React.FC<CancelProps> = (props: CancelProps) => {
const { size, color, colorFill, onClick, style, className } = props; const { size, color, colorFill, onClick, style, className } = props;
const finalSize = parseSize(size); const finalSize = parseSize(size);
const finalStyle = style ? style : {}; const finalStyle = style ? style : {};
......
.files-ui-file-icon {
font-size: 0.7rem;
min-width: 19px;
min-height: 19px;
margin: 0;
padding: 2px 2px;
border-radius: 50%;
background-color: rgba(32, 33, 36, 0.65);
word-break: break-word;
box-sizing: content-box;
&:hover {
background-color: rgba(32, 33, 36, 0.85);
}
&.dark-mode {
background-color: rgba(154, 160, 166, 0.65);
&:hover {
background-color: rgba(154, 160, 166, 0.85);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment