<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Manage_CSS</id>
	<title>Dataform Manage CSS - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Dataform_Manage_CSS"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Manage_CSS&amp;action=history"/>
	<updated>2026-05-06T18:33:10Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Manage_CSS&amp;diff=3317&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Manage_CSS&amp;diff=3317&amp;oldid=prev"/>
		<updated>2024-10-18T06:37:34Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:37, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Dataform_Manage_CSS&amp;diff=3316&amp;oldid=prev</id>
		<title>1&gt;Itamart в 18:30, 17 марта 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Dataform_Manage_CSS&amp;diff=3316&amp;oldid=prev"/>
		<updated>2015-03-17T18:30:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Dataform | innertrail =  ► Creating an Activity  ► [[Dataform Activity administration|Activity administration]] }}&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
You can use CSS to manipulate the layout and styles of entries and content in any of the Dataform views. Any html element in the designated view, that has an id or a CSS class can be assigned specialized styles by including the style definitions in the CSS tab.&lt;br /&gt;
&lt;br /&gt;
 [[File:df-css-settings.png|700px]]&lt;br /&gt;
&lt;br /&gt;
==Settings==&lt;br /&gt;
===Include external CSS===&lt;br /&gt;
You can specify a list of urls to external CSS files and these files will be loaded to the Dataform view page.&lt;br /&gt;
&lt;br /&gt;
=== Enter CSS code===&lt;br /&gt;
You can enter CSS definitions directly.&lt;br /&gt;
&lt;br /&gt;
===Upload CSS files===&lt;br /&gt;
You can upload CSS files into the Dataform files area in Moodle&amp;#039;s file system. These files become part of the Dataform instance to which they are uploaded and are included in Dataform presets and backups.&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
===Expand/Collapse content===&lt;br /&gt;
You can make content in the Dataform view collapsible by a combination of html and css.&lt;br /&gt;
&lt;br /&gt;
The html part will typically be in the view templates. We need a designated container element. It can be a div or a table cell (td). We assign to the container element the class &amp;quot;collapsiblecontent&amp;quot;. Then we add in this container a label, a checkbox element and a div element where we put all the content which we want to make collapsible. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;collapsiblecontent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;label for=&amp;quot;node1[[entryid]]&amp;quot;&amp;gt;Click to show/hide content&amp;lt;/label&amp;gt;&lt;br /&gt;
    &amp;lt;input type=&amp;quot;checkbox&amp;quot; id=&amp;quot;node1[[entryid]]&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;div&amp;gt;&lt;br /&gt;
        ... Collapsible content goes here ...&lt;br /&gt;
    &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the css tab we add the following css. We hide the immediate sibling element of the checkbox input element. We show this element if the checkbox is checked. We hide the checkbox input. We assign a pointer cursor to the label so that it feels like a clickable element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code css&amp;gt;&lt;br /&gt;
/* Collapsible content */&lt;br /&gt;
.collapsiblecontent &amp;gt; input + * {&lt;br /&gt;
    display: none;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.collapsiblecontent &amp;gt; input:checked + * {&lt;br /&gt;
    display: block;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.collapsiblecontent &amp;gt; input {&lt;br /&gt;
    display: none;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.collapsiblecontent &amp;gt; label {&lt;br /&gt;
    cursor: pointer;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The way it works is quite simple. When the label is clicked the hidden checkbox is checked/unchecked and the content is expanded/collapsed respectively.&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve extracted this approach from the internet. Further more complex variations are also available.&lt;/div&gt;</summary>
		<author><name>1&gt;Itamart</name></author>
	</entry>
</feed>