π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
[docs] update copy button style (#1234)
Jian Shibda6c0382de8
diff --git a/docs/source/_static/css/copybtn.css b/docs/source/_static/css/copybtn.cssnew file mode 100644index 000000000..d7bb59738--- /dev/null+++ b/docs/source/_static/css/copybtn.css@@ -0,0 +1,23 @@+.highlight {+ position: relative;+}++.copybtn {+ position: absolute;+ top: 0;+ right: 0;+ width: 40px;+ padding: 0 10px;+ background-color: rgba(0, 0, 0, 0);+ border: 1px;+ border-style: solid;+ border-color: #DDD;+ border-top: 0;+ border-right: 0;+ border-radius: 0 0 0 5px;+}++.copybtn:hover {+ background-color: rgba(100, 30, 255, 0.1);+ opacity: 0.9;+}\ No newline at end of filediff --git a/docs/source/conf.py b/docs/source/conf.pyindex fa022b4da..6316cca46 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -137,7 +137,8 @@ html_static_path = ['_static']html_extra_path = ['_extra']# html_style_path = 'css/pytorch_theme.css'-html_context = {'css_files': ['https://fonts.googleapis.com/css?family=Lato', '_static/css/pytorch_theme.css']}+html_context = {'css_files': [+ 'https://fonts.googleapis.com/css?family=Lato', '_static/css/pytorch_theme.css', '_static/css/copybtn.css']}# -- Options for HTMLHelp output ------------------------------------------